Linking confluence pages in assets attribute fails with invalid value

XMLWordPrintable

    • 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.

      1. Set up a Jira instance linked to confluence.
      2. Create a new Assets schema, and add an attribute of type confluence.
      3. Create an assets object and add entry in confluence attribute by searching for the confluence pages.
      4. Create the object. 
      5. Now, make the rest PUT call to update the attribute of confluence. 
        1. 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.

              Assignee:
              Tripta Kaur
              Reporter:
              Sireesha
              Votes:
              10 Vote for this issue
              Watchers:
              12 Start watching this issue

                Created:
                Updated:
                Resolved: