Details
-
Improvement
-
Resolution: Unresolved
-
Major
-
None
-
11.3
-
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
- relates to
-
XWIKI-15450 Browser cache for attachments is never invalidated (needs browser clear cache)
- Closed