Uploaded image for project: 'Jira Service Management Data Center'
  1. Jira Service Management Data Center
  2. JSDSERVER-16134

Decimal separator is removed when saving float values in Assets objects

      Issue Summary

      When saving an attribute value using comma as the decimal separator, the separator is removed, leading to a wrong value. The problem is inverted (dot is removed) when using locales that default to comma (such as Dutch or German).

      Steps to Reproduce

      Modality 1 - English locale

      1. Create an object type with a float attribute.
      2. Give it any value with a dot decimal separator, such as 1.5.
      3. In the list view, edit the value to use a comma as the decimal separator, such as 1,5.
      4. The separator is removed and the value is saved as 15.

      Modality 2 - German locale

      1. Create an object type with a float attribute.
      2. Give it any value with a comma decimal separator, such as 1,5.
      3. In the list view, edit the value to use a dot as the decimal separator, such as 1.5.
      4. The separator is removed and the value is saved as 15.

      (In the object edit view, the issue was not reproducible. In this case, the separator is replaced by a dot or comma, depending on the locale, but the value is not modified).

      Expected Results

      Assets should fully respect the usage of the default decimal separator, as some locale settings use commas instead of dots (for example, Dutch and German). Editing of float attributes should be saved correctly, and the values should also be consistently displayed depending on the locale.

      In previous versions, the error message "Number is not valid (Float)" would be displayed. Apparently, the "fix" on bug JSDSERVER-15703 resulted in this new behaviour.

      Actual Results

      The value is modified, as the separator is lost.

      Workaround

      Use a dot or comma as a decimal separator, depending on the case.

      Versions Tested

       

      Testing Requirements Version Affected Version
      Customers Reported Version 10.3.5 Yes
      Most Recent Bug-Fix Release 10.5.0 Yes
      Previous Major Release 10.3.3 No
      Most Recent LTS 10.3.5 Yes
      Previous Supported LTS 10.3.3 No

          Form Name

            [JSDSERVER-16134] Decimal separator is removed when saving float values in Assets objects

            Satej Mirpagar made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Waiting for Release [ 12075 ] New: Closed [ 6 ]
            Benjamin Suess made changes -
            Fix Version/s Original: 10.6.1 [ 111293 ]
            Fix Version/s New: 10.6.0 [ 110418 ]
            Benjamin Suess made changes -
            Fix Version/s New: 10.7.0 [ 111197 ]
            Fix Version/s New: 10.6.1 [ 111293 ]
            Fix Version/s New: 10.3.6 [ 111290 ]
            Benjamin Suess made changes -
            Status Original: In Progress [ 3 ] New: Waiting for Release [ 12075 ]
            Benjamin Suess made changes -
            Status Original: Short Term Backlog [ 12074 ] New: In Progress [ 3 ]
            Benjamin Suess made changes -
            Assignee New: Benjamin Suess [ c8bcca445054 ]
            SET Analytics Bot made changes -
            Support reference count New: 1
            Bartosz Ornatowski made changes -
            Priority Original: Low [ 4 ] New: Medium [ 3 ]
            Status Original: Needs Triage [ 10030 ] New: Short Term Backlog [ 12074 ]
            Security Metrics Bot made changes -
            Labels New: ril
            Security Metrics Bot made changes -
            Remote Link New: This issue links to "Internal ticket (Web Link)" [ 1003429 ]

              c8bcca445054 Benjamin Suess
              braymundo Bruno Raymundo
              Affected customers:
              1 This affects my team
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: