-
Bug
-
Resolution: Fixed
-
Major
-
4.3.0
-
None
-
None
-
4.3 M5
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
- Est bloqué par
-
REPOSITORY-431 Delete old API's warnings on unversioned ametys object data
-
- Closed
-
[REPOSITORY-433] [DataHolder] getValue with a default value not consistent for string type
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Functional review OK [ 10207 ] | New: Resolved [ 5 ] |
Assignee | Original: Raphaël Franchet [ raphael ] | New: Cédric Damioli [ cedric ] |
Assignee | New: Raphaël Franchet [ raphael ] |
Assignee | Original: Caroline Bayle [ cbayle ] |
Status | Original: Available for review [ 10005 ] | New: Functional review OK [ 10207 ] |
Assignee | New: Caroline Bayle [ cbayle ] |
Assignee | Original: Caroline Bayle [ cbayle ] |
Status | Original: In Progress [ 3 ] | New: Available for review [ 10005 ] |
Description |
Original:
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 => {color:#00875a}*OK*{color} * Set an empty string data in the repository * Get this data with a default value via the new API * The retrieved value is empty => *{color:#de350b}KO{color}* 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 Migrate all calls to the old API to the new one |
New:
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 => {color:#00875a}*OK*{color} * Set an empty string data in the repository * Get this data with a default value via the new API * The retrieved value is empty => *{color:#de350b}KO{color}* 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 |