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

client side http error handling not reachable

XMLWordPrintable

    • ZK 9.5.1 S1

      Steps to Reproduce

      configure a client side error handler e.g. in zk.xml

          <client-config>
              <error-reload>
                  <device-type>ajax</device-type>
                  <error-code>403</error-code>
                  <reload-uri>/login</reload-uri>
              </error-reload>
          </client-config>
      

      respond with 403 to an /zkau request (e.g. in a servlet filter handling authentication)
      or respond a 403 from a zul file

      <zk>
          <button onClick="execution.getNativeRequest().sendError(403);execution.setVoided();"/>
      </zk>
      

      Current Result

      the client engine stops -> keeps showing the processing animation

      Expected Result

      the configured reload-uri should be triggered

      Debug Information

      the error handling code is not executed, the response.status.ok is false

      Workaround


            katherinelin katherinelin
            cor3000 cor3000
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 1 day, 4 hours
                1d 4h
                Remaining:
                Remaining Estimate - 1 day, 4 hours
                1d 4h
                Logged:
                Time Spent - Not Specified
                Not Specified