Partner requested JIRA:
The "classes" API correctly returns a JSON expression with the definition of the defined types, a specific type, or a specific property of a type. The defaultValue of each property is returned correctly when the API is used to retrieve all the types or a specific type. However, if the a type's property is queried, the default value will be returned as "defaultValues," and it will always return an empty string.
- Enter the following URL on a browser to inspect all types and aspects:
- Pick a type that contains a property that has defaultValue that is not an empty string. For example, for this reproduction instructions I picked the type hwf:cancelledCloudTask, which has a property named bpm:packageItemActionGroup. The property has a defaultValue = "read_package_item_actions"
- Enter the following URL on a browser to get the definition and properties of the type hwf:cancelledCloudTask:
http://localhost:8080/alfresco/service/api/classes/hwf_cancelledCloudTask. Search the property bpm:packageItemActionGroup. Notice the defaultValue of the property.
- Enter the following URL on a browser to inspect the type's property bpm:packageItemActionGroup:
On step 4 we should see that the attribute "defaultValue" is "read_package_item_actions", as shown below:
On step 4 we observe that the attribute "defaultValue" appears as "defaultValues", and its value is an empty string, as seen below. The attribute "defaultValues" is always returned as an empty string regardless of the actual value:
Analysis and observations
When a specific property is queried, the attribute "defaultValue" appears as "defaultValues" (in plural), and it is always an empty string (like "").