This discussion is archived
3 Replies Latest reply: Oct 3, 2013 2:16 AM by AnthonyRayner RSS

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

bb480d42-0173-48aa-b13a-d95ab8947c6c Newbie
Currently Being Moderated

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.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points