Uploaded image for project: 'Crucible'
  1. Crucible
  2. CRUC-5317

Can't Create Reviews via REST API using JSON

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • High
    • 2.4.5, 2.5-M8, 2.5.0
    • 2.4.0, 2.4.1, 2.4.2, 2.4.3, 2.5-M5
    • Integrations

    Description

      It appears that creating reviews using JSON in the latest version is broken. For example, the using the following request:

      POST /rest-service/reviews-v1 HTTP/1.1
      Authorization: Basic ZGhhbnNlbjp0ZXN0aW5n
      Accept: application/json
      Content-Type: application/json
      
      {"createReview": {"changesets": {"changesetData": [{"id": 37}], "repository": "SubversionHTTP"}, "reviewData": {"moderator": {"userName": "dhansen"}, "metricsVersion": 1, "description": "test", "allowReviewersToJoin": "true", "author": {"userName": "dhansen"}, "creator": {"userName": "dhansen"}, "projectKey": "CR", "name": "JSON Test"}}}
      

      Will result in the following error:

      {"status-code":500,"message":"Can not find a Value deserializer for abstract type [simple type, class com.atlassian.crucible.spi.data.CommentDataImpl]"}
      

      Attachments

        Issue Links

          Activity

            People

              cmacneill Conor
              dhansen@atlassian.com Dylan Hansen [Atlassian]
              Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Time Spent - 24h 17m Remaining Estimate - 2h
                  2h
                  Logged:
                  Time Spent - 24h 17m Remaining Estimate - 2h
                  24h 17m