-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Medium
-
Affects Version/s: 5.4.5
-
Component/s: Assets - Core experiences
-
None
-
3
-
Severity 3 - Minor
-
21
Issue Summary
Linking confluence pages in assets attribute of type "confluence" that has confluence pageId greater than INT range (2192574717) fails with error "The value provided is invalid"
This is reproducible on Data Center: (yes)
Steps to Reproduce
This cannot be reproduced directly from UI unless the confluence instance that is linked has PageID greater than 2192574717. Hence we use rest calls to update the already created object with a pageID greater than the range.
- Set up a Jira instance linked to confluence.
- Create a new Assets schema, and add an attribute of type confluence.
- Create an assets object and add entry in confluence attribute by searching for the confluence pages.
- Create the object.
- Now, make the rest PUT call to update the attribute of confluence.
PUT http://localhost:8940/j940/rest/insight/1.0/object/<objectID>
body:{ "objectTypeId": 172, "attributes": [ { "objectTypeAttributeId": 876, "objectAttributeValues": [ { "value": "2147483649" } ] } ] }
Expected Results
The object is updated with the new page ID.
Actual Results
The call fails with a 400 error, with below error message.
{
"errorMessages": [],
"errors": {
"rlabs-insight-attribute-876": "The value provided is invalid"
}
}
Workaround
Currently, there is no exact workaround that could fix this. Meanwhile, customers can create a URL type attribute in the objectType and use it to link confluence pages.