Uploaded image for project: 'Share Application'
  1. Share Application
  2. SHA-1573

Share Repository view for (Dynamic) Models: show error message on Edit Properties -> Save (if model is "invalid")

    Details

    • Type: Story
    • Status: Done
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 5.1.0
    • Fix Version/s: None
    • Component/s: Share Application
    • Labels:
      None

      Description

      Suggested minor improvement. Apologies if already logged, I couldn't see it.

      Using Share / Platform 5.1 or higher, there are currently two ways (other than via RM when adding record props) to manage dynamic models. It can be done via Model Manager, albeit with some known limitations on the supported model changes. Alternatively, the model can be "managed" via "Repository -> Data Dictionary -> Models" by editing the XML and using "Model isActive" property.

      In the case where the model is invalid, the edit form will not save (due to error) however this is not shown in the UI.

      Workaround: look at server log (if accessible to repo / model admin).

      Reference:

      http://localhost:8081/share/proxy/alfresco/api/node/workspace/SpacesStore/1918f6c6-aecf-4031-9026-9f8c5c270371/formprocessor

      {
        "status" : 
        {
          "code" : 500,
          "name" : "Internal Error",
          "description" : "An error inside the HTTP server which prevented it from fulfilling the request."
        },  
        "message" : "04180039 Failed to parse model",  
        "exception" : "",
        "callstack" : 
        [ 	   
        ],
        "server" : "Enterprise v5.1.1 (r123456-b0) schema 9,031",
        "time" : "18-May-2016 10:58:47"
      }
      

      Maybe these should be returned as 400 rather than 500 ?

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  jvonka Jan Vonka
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Structure Helper Panel