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

/downloadrev/ with no rev should return last rev

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 11.3
    • Old Core
    • None
    • Unknown

    Description

      It appears that several applications use $doc.getAttachmentURL('xxx') but then add parameters behind it.

      Since 11.3 $doc.getAttachmentURL('xxx') do not convert to /download/ but /downloadrev/. In principle this is good but if the applications add extra parameter, the rev parameter is not readable anymore, ignored and the request is redirected to /viewattachrev/ which is an html display of the various versions.

      Instead, one should explicitly evangelize that doc.getAttachmentURL should be complemented with parameters using the extra method parameter and the default should be to return the last version of the attachement (after redirecting to that).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              polx Paul Libbrecht
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: