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

/downloadrev/ with no rev should return last rev

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 11.3
    • Fix Version/s: None
    • Component/s: Old Core
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      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

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

                Dates

                • Created:
                  Updated:
                  Date of First Response: