OpenEngSB
  1. OpenEngSB
  2. OPENENGSB-1814

Json-Marshalling: Event class string-representation incorrent

    Details

      Description

      org.openengsb.core.api.Event gets marshalled to:

      {"name":"xxxx","type":"Event","processId":0}

      but should be:

      {"name":"xxxx","processId":0}

      Maybe because BeanInfo.getPropertyDescriptors() returns an additional "type"-PropertyDescriptor.

        Gliffy Diagrams

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

          Hide
          Andreas Pieber added a comment -

          interesting; still, additional shouldn't hurt afaik? do they?

          Show
          Andreas Pieber added a comment - interesting; still, additional shouldn't hurt afaik? do they?
          Hide
          Xiaolin Zhang added a comment -

          Well, it's not possible to unmarshall Events. Therefore e.g. AuditDomain.audit(...) can't be called.

          Show
          Xiaolin Zhang added a comment - Well, it's not possible to unmarshall Events. Therefore e.g. AuditDomain.audit(...) can't be called.
          Hide
          Andreas Pieber added a comment -

          wuha; also on java or only on .net. What is the exception?

          Show
          Andreas Pieber added a comment - wuha; also on java or only on .net. What is the exception?
          Hide
          Andreas Pieber added a comment -

          related to OPENENGSB-2843 which describes the fix in the master; for 2.x we need to add json API reference to the API package and set the field to @JsonIgnore

          Show
          Andreas Pieber added a comment - related to OPENENGSB-2843 which describes the fix in the master; for 2.x we need to add json API reference to the API package and set the field to @JsonIgnore

            People

            • Assignee:
              Christoph Gritschenberger
              Reporter:
              Xiaolin Zhang
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: