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

Desktop.setBookmark does not allow ? character

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 5.0.8
    • 5.0.6
    • General
    • None

      https://sourceforge.net/tracker/?func=detail&aid=3299425&group_id=152762&atid=785194

      Desktop.setBookmark("mybookmark?test=1") causes an exception:
      SEVERE: >>java.lang.IllegalArgumentException: Illegal character: # ?
      >> at org.zkoss.zk.ui.impl.DesktopImpl.setBookmark(DesktopImpl.java:482)

      According to http://tools.ietf.org/html/rfc3986#page-24 the URI fragment part allows ? to be used in the hash.
      Also, if I have an URL that contains ? in the hash part, Desktop.getBookmark() returns the value correctly, thus, I can get a hash with ? in, but it can't be set with setBookmark.

            SimonPai SimonPai
            asukachen asukachen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: