Chemistry
  1. Chemistry
  2. CMIS-405

ObjectFactoryImpl error with PropertyDecimalDefinition

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: OpenCMIS 0.4.0
    • Fix Version/s: OpenCMIS 0.5.0
    • Component/s: opencmis-client
    • Labels:
      None
    • Environment:

      CMIS Workbench 0.4.0

      Description

      I use workbench to test my server.
      On edit properties all works exceptly DECIMAL field when i debug workbench i see the methode ObjectFactoryImpl.convertProperties(Map<String, ?> properties, ObjectType type, Set<Updatability> updatabilityFilter) can't convert double or float to BigDecimal and throw IllegalArgumentException("Property '" + id + "' is a Decimal property!");.

      To solve it just adding a test for Double and Float.

        Activity

        Hide
        Florian Müller added a comment -

        Accepts now float, double, byte, short, integer and long as decimal values.

        Show
        Florian Müller added a comment - Accepts now float, double, byte, short, integer and long as decimal values.

          People

          • Assignee:
            Florian Müller
            Reporter:
            Florent Amaridon
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 0.25h
              0.25h
              Remaining:
              Remaining Estimate - 0.25h
              0.25h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development