Uploaded image for project: 'Apps Development Framework'
  1. Apps Development Framework
  2. ADF-1704

Invalid characters breaks file upload widget

    Details

    • Type: Bug
    • Status: Done (View Workflow)
    • Resolution: Resolved
    • Affects Version/s: None
    • Fix Version/s: 2.0.0
    • Component/s: None
    • Labels:
      None
    • Bug Priority:
      Category 1
    • Sprint:
      ADF Sprint 29, ADF Sprint 30

      Description

      +https://github.com/Alfresco/alfresco-ng2-components/issues/2453+

       

      If a user uploads a file with the name

      Signed~!@#$%^&()_+}{[]7711form.pdf

      The upload completes but when the form is displayed again an error occurs

      URIError: URI malformed
      at decodeURI ()
      at UploadWidgetComponent.decode (eval at (vendor.f3ad766bbbf1251320f2.js:1), :6989:16)
      at Object.eval [as updateRenderer] (UploadWidgetComponent.html:17)
      at Object.debugUpdateRenderer [as updateRenderer] (eval at (vendor.f3ad766bbbf1251320f2.js:1), :13317:21)
      at checkAndUpdateView (eval at (vendor.f3ad766bbbf1251320f2.js:1), :12464:14)
      at callViewAction (eval at (vendor.f3ad766bbbf1251320f2.js:1), :12824:21)
      at execEmbeddedViewsAction (eval at (vendor.f3ad766bbbf1251320f2.js:1), :12782:17)
      at checkAndUpdateView (eval at (vendor.f3ad766bbbf1251320f2.js:1), :12460:5)
      at callViewAction (eval at (vendor.f3ad766bbbf1251320f2.js:1), :12824:21)
      at execEmbeddedViewsAction (eval at (vendor.f3ad766bbbf1251320f2.js:1), :12782:17)
      at checkAndUpdateView (eval at (vendor.f3ad766bbbf1251320f2.js:1), :12460:5)
      at callViewAction (eval at

      Expected behavior:
      Either don't let the user upload the file in the first place giving an appropriate message or fix the URL reference to the file.

      Steps to reproduce the issue:
      Create form with upload component.
      upload a file named

      Signed~!@#$%^&()_+}{[]7711form.pdf

      reload the form.

        TestRail: Results

          Attachments

            Structure

              Activity

                People

                • Assignee:
                  jdosti Jenny Dosti [X] (Inactive)
                  Reporter:
                  eromano Eugenio Romano
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    TestRail: Runs

                      TestRail: Cases

                        Structure Helper Panel