Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-7818

links with XWiki 2.1 syntax never call setQueryString() for queryString parameters

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.5, 4.0
    • Fix Version/s: 4.1-milestone-1, 4.0.1
    • Component/s: Old Core
    • Labels:
      None
    • Environment:
      Tomcat 7, XE 3.5
    • Tests:
      Unit
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      When I do the following in a XWiki 2.1 syntax document it doesn't work as expected:

      [[My Image>>attach:$doc@myimage.jpg||queryString="width=300"]]

      I would expect:

      <a href=".../myimage.jpg?width=300">My Image</a>

      but instead I get:

      <a href=".../myimage.jpg" querystring="width=300">My Image</a>

      According to vmassol:

      [14:17] <vmassol> public void setQueryString(String queryString)
      [14:17] <vmassol> in AttachmentResourceReference
      [14:17] <vmassol> is never called apparently

      Please fix!

        Attachments

          Activity

            People

            Assignee:
            tmortagne Thomas Mortagne
            Reporter:
            jamiem Jamie Maher
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: