Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-3620

URLEncoder with parameter breaks dropupload workflow

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 8.0.5
    • Fix Version/s: 8.5.0
    • Component/s: None
    • Security Level: Jimmy
    • Labels:
      None

      Description

      Steps to Reproduce

      Add the attached CustomUrlEncoder to zk.xml
      open the attached dropupload.zul
      Send a file

      Current Result

      onUpload event is triggered but Event.getMedia is null

      Expected Result

      Event.getMedia should return the media

      Debug Info

      dropupload.start uses zk.ajaxURI to obtain a valid /dropupload uri
      If a URLEncoder adding a ?parameter=value to the default URI has been defined, the ajaxURI method will return:
      /context/dropupload?parameter=value
      Then, uuid, dtid and native parameters are added, which cause the url to be incorectly built as:
      /context/dropupload?parameter=value?uuid=XXX&dtid=XXX& native=XXX
      instead of
      /context/dropupload?parameter=value&uuid=XXX&dtid=XXX& native=XXX

      Root Cause

      Workaround

      commented in the attached zul file.

        Attachments

          Activity

            People

            Assignee:
            bobpeng bobpeng
            Reporter:
            MDuchemin MDuchemin
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 6 hours
                6h