Uploaded image for project: 'Repository'
  1. Repository
  2. REPOSITORY-433

[DataHolder] getValue with a default value not consistent for string type

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.3.0
    • Fix Version/s: 4.3.0
    • Component/s: None
    • Labels:
      None
    • Sprint:
      4.3 M5

      Description

      How to reproduce:

      • Set an empty long data in the repository
      • Get this data with a default value via the new API (dataHolder.getValue(dataPath,  defaultValue))
      • The retrieved value is the default one => OK
      • Set an empty string data in the repository
      • Get this data with a default value via the new API
      • The retrieved value is empty => KO

      With the old API (compositeMetadata.getString(dataPath, defaultValue)), the retrieved value was empty too. But the empty notion did not exist for other types.

      Look for all calls of the old or new API that really use the default value to choose the behavior of this method

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cedric Cédric Damioli
                Reporter:
                cbayle Caroline Bayle
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: