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

URLEncoder with parameter breaks dropupload workflow

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.5.0
    • 8.0.5
    • None
    • Security Level: Jimmy
    • None

      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.

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

              Created:
              Updated:
              Resolved:

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