Uploaded image for project: 'Xray for Jira'
  1. Xray for Jira
  2. XRAY-11043

Large evidence may fail to be uploaded on Jira10+ environments

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Waiting for Validation
    • Minor
    • Resolution: Unresolved
    • Xray DC 7.13.0
    • Continuous Delivery, FPC#20
    • REST API
    • None
    • Reproduced in the following Jira environments (could affect more versions)

      • 10.4.1
      • 10.6.1

    Description

      In Jira10+ versions (reproduced in Jira 10.4.1 and 10.6.1) evidence files may fail to be uploaded. 

       

      String value length (20000004) exceeds the maximum allowed (20000000, from `StreamReadConstraints.getMaxStringLength()`) (through reference chain: com.xpandit.raven.beans.execution.EvidenceBean["data"])
      

       

      This is due to a config change introduced in the library jackson-core version 2.15 where strings longer than 20,000,000 characters are no longer supported.

       

      This affects users who try to import evidence as base64 into JSON value properties.

       
      Postman collection: base64attachments.postman_collection.json

      Known affected endpoints:

      
      PUT /rest/raven/1.0/api/testrun/<test_run_id>/step/<step_result_id>
      
      POST /rest/raven/1.0/api/testrun/<test_run_id>/step/<step_result_id>/attachment
      
      PUT /rest/raven/1.0/api/testrun/<test_run_id>
      
      POST /rest/raven/1.0/api/testrun/<test_run_id>/attachment
      
      POST /rest/raven/2.0/api/testrun/<test_run_id>/attachment
      
      PUT /rest/raven/2.0/api/testrun/<test_run_id>
      
      PUT /rest/raven/2.0/api/testrun/<test_run_id>/iteration/<iteration_id>
      
      PUT /rest/raven/2.0/api/testrun/<test_run_id>/iteration/<iteration_id>/step/<step_result_id>
      
      POST /rest/raven/2.0/api/testrun/<test_run_id>/iteration/<iteration_id>/step/<step_result_id>/attachment
      
      PUT /rest/raven/1.0/api/test/<test_issue_key>/step/
      
      POST /rest/raven/1.0/api/test/<test_issue_key>/step/<step_id>
      
      POST /rest/raven/2.0/api/test/<test_issue_key>/steps/
      
      PUT /rest/raven/2.0/api/test/<test_issue_key>/steps/<step_id>
      
      POST /rest/raven/2.0/import/execution
      
      POST /rest/raven/1.0/import/execution
      

      Attachments

        Issue Links

          Activity

            People

              patricia.mateo Patricia Mateo
              dmdu David Duarte
              David Duarte, Patricia Mateo
              Votes:
              3 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 weeks, 3 hours, 50 minutes
                  2w 3h 50m