Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-19397

Create Folder Allows double click on Save Button resulting in Error 500

    Details

    • Bug Priority:
      Category 2
    • ACT Numbers:

      00958027, 00960848

    • Premier Customer:
      Yes
    • Sprint:
      Puccini
    • Work Funnel End:
      2019-02
    • Story Points:
      2
    • Prioritization Score:
      3.775

      Description

      When creating a folder, if a user accidentally double-clicks the save button and the system throws an error 500 and returns the following in the application to Developer Tools:

      Chrome:

      POST http://alfresco.deaconblu.com:8080/share/proxy/alfresco/api/type/cm%3Afolder/formprocessor 500 (Internal Server Error)
      asyncRequest @ yui-common_85fe398e5deaf2958d87495ebd1e083d.js:17
      request @ alfresco_16d6ab19ef893ce787dba847b324f713.js:1
      jsonRequest @ alfresco_16d6ab19ef893ce787dba847b324f713.js:1
      _submitInvoked @ forms-runtime_e249b4f9b1efd764036d2d7a0b430943.js:1
      n @ yui-common_85fe398e5deaf2958d87495ebd1e083d.js:13
      submitForm @ yui-common_85fe398e5deaf2958d87495ebd1e083d.js:47
      _onClick @ yui-common_85fe398e5deaf2958d87495ebd1e083d.js:47
      notify @ yui-common_85fe398e5deaf2958d87495ebd1e083d.js:13
      fire @ yui-common_85fe398e5deaf2958d87495ebd1e083d.js:13
      fireEvent @ yui-common_85fe398e5deaf2958d87495ebd1e083d.js:17
      fireEvent @ yui-common_85fe398e5deaf2958d87495ebd1e083d.js:48
      (anonymous) @ yui-common_85fe398e5deaf2958d87495ebd1e083d.js:38
      n @ yui-common_85fe398e5deaf2958d87495ebd1e083d.js:13

      IE:

      {
      "status" : 
      {
      "code" : 500,
      "name" : "Internal Error",
      "description" : "An error inside the HTTP server which prevented it from fulfilling the request."
      }, 
      
      "message" : "org.alfresco.service.cmr.repository.DuplicateChildNodeNameException: Duplicate child name not allowed: White""exception" : "",
      
      "callstack" : 
      [ 
      
      ],
      
      "server" : "Enterprise v5.2.3 (r852994b1-b12) schema 10,065",
      "time" : "Mar 18, 2018 11:58:23 PM"
      }

      Steps to Reproduce:

      1. Install ACS 5.2.3
      2. Install "stress" (the server must be loaded in order to delay enough to perform the following steps)
      3. Log in as Admin and create a site. 
      4. Create a load on the server by issuing the following command:
        "sudo stress --cpu 10 --hdd 10 --vm 3 --io 10"
      5. Open Developer tools to review the returns in the next step.
      6. Create a new folder.  In the final step, double-click the "Save" button

      Expected Result:

      "Save" button should only send one "POST" to the Server and the server should only attempt to create the folder once.

      Actual Result:

      "Save" button can be clicked multiple times and returns the above errors on each click until the page is actually submitted.  "500 error,  Duplicate child name not allowed" is returned.

      What is needed: After a click, the button should be non-clickable, thus saving from the duplicate call and avoiding 500 error.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                closedbugs Closed Bugs
                Reporter:
                mbynum Marc Bynum
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: