Uploaded image for project: 'Crowd Data Center'
  1. Crowd Data Center
  2. CWD-3939

Crowd entity search REST API does not support JSON restrictions

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 2.7.3, 2.8
    • 2.7.2
    • REST
    • None

    Description

      Crowd has a REST resource (/search) to make entity queries. It works fine with XML request bodies, but it does not support JSON request bodies because it cannot unmarshall instances of the abstract class SearchRestrictionEntity.

      {
          "message": "Can not construct instance of com.atlassian.crowd.plugin.rest.entity.SearchRestrictionEntity, problem: abstract types can only be instantiated with additional type information\n at [Source: org.apache.catalina.connector.CoyoteInputStream@680108cd; line: 1, column: 1]",
          "status-code": 500,
          "stack-trace": "org.codehaus.jackson.map.JsonMappingException: Can not construct instance of com.atlassian.crowd.plugin.rest.entity.SearchRestrictionEntity, problem: abstract types can only be instantiated with additional type information\n at [Source: org.apache.catalina.connector.CoyoteInputStream@680108cd; line: 1, column: 1]\n\tat org.codehaus.jackson.map.JsonMappingException.from(JsonMappingException.java:163)\n\tat
      

      Attachments

        Issue Links

          Activity

            People

              dberrueta Diego Berrueta
              dberrueta Diego Berrueta
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: