Uploaded image for project: 'Syncope'
  1. Syncope
  2. SYNCOPE-343

REST methods returning implementation classes might fail when there are no available

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1.0
    • Fix Version/s: 1.1.0
    • Component/s: client, core
    • Labels:
      None
    • Environment:
      Spring MVC

      Description

      There are some REST methods (PolicyController#getCorrelationRuleClasses or TaskController#getJobClasses) returning Set<String> containing the names of classes implementing a specific interface.
      Such methods are called by the admin console, for example, when defining a new policy or a new task.

      In case there are no custom implementation provided (this happens for SyncRule, currently), an exception is logged:

      org.codehaus.jackson.map.JsonMappingException: Can not deserialize instance of MyObject out of START_ARRAY token

      This problem does not affect CXF services since in that case the class names are wrapped in specific transfer objects.

        Attachments

          Activity

            People

            • Assignee:
              ilgrosso Francesco Chicchiriccò
              Reporter:
              ilgrosso Francesco Chicchiriccò
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: