Uploaded image for project: '[Read Only] - Hippo Site Toolkit 2'
  1. [Read Only] - Hippo Site Toolkit 2
  2. HSTTWO-3644

When requesting to add a new component to a container, the error response should contain proper error codes

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0.0
    • Component/s: None
    • Labels:
    • Similar issues:
    • Sprint:
      Tiger Sprint 128

      Description

      Currently, the error response does not contain error code, which facilitates front-end to display localized error messages:

      
      {
         "success":false,
         "message":"Node '/hst:hst/hst:configurations/hap-preview/hst:workspace/hst:containers/homepage/main' cannot be locked due to someone else who has the lock (possibly a descendant or ancestor that is locked).",
         "errorCode":null,
         "data":[
      
         ]
      }
      

      It should container proper error code, so the frond-end can use these code to localize error messages.

      The current error messages in CM 3.x are attached.

      Updated:

      • Wrapper ExtResponseRepresentation should be removed because this API is used by AngularJs app
      • Change the API interface from @Path("/create/{itemUUID}") to @Path("/{itemUUID}") to align with REST APIs standardization

        Attachments

        1. page-locked-error-EN.png
          155 kB
          Canh Ngo
        2. page-locked-error-NL.png
          243 kB
          Canh Ngo

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                cngo Canh Ngo (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: