3 Replies Latest reply: Oct 3, 2013 4:16 AM by Anthony Rayner-Oracle RSS

    Bug? Template based button with href="#LINK#" attribute creates invalid URL and checksum

    1043414

      Hi,

       

      We have a page that contains a template based button that redirects to another page with page access protection enabled.  The button template includes a href attribute:

       

      <button value="#LABEL#" href="#LINK#" onclick="#JAVASCRIPT#" class="button-default" type="button" #BUTTON_ATTRIBUTES# id="#BUTTON_ID#">

        <span>#LABEL#</span>

      </button>

       

      We've found that if one of the parameters passed in the URL contains spaces they are not being escaped correctly and the resulting checksum is invalid.  The spaces are being escaped with %2520 instead of %20.

       

      See http://apex.oracle.com/pls/apex/f?p=38271:1:0

       

      If we remove the href="#LINK#" from the button template the problem goes away, which is what we've done as a workaround.

       

      This sounds similar to bug #12971989 which was supposed to have been fixed.

       

      Cheers,

       

      Andy.