Details
-
Bug
-
Resolution: Fixed
-
Major
-
1.3.6
-
None
-
Integration
-
Unknown
-
N/A
-
Description
When looking for files to attach to a page, only media files that are in the same (DokuWiki) namespace as the page are considered. However, in DokuWiki there is absolutely no reason for a used file to be in the same namespace as the page, media files from any namespace can be used in any page.
This also creates the question how to name attachments: at the moment it is just the filename. However, this doesn't allow finding the right file to attach when the file is from a different namespace. Consider, for example, a file logo.png that exists in two different namespaces a and b. If a page references a:logo.png and b:logo.png, according to the first logic, the attachments would both be named logo.png. While the parser could create a mapping and re-name the second one, we would need to pass that mapping from the parser to the attachment finding step which is separate. While this could be solved, the question is how the conflict should be resolved. Something like logo.png and logo_1.png might completely remove the meaning of the namespaces.
Attachments
Issue Links
- relates to
-
DOKUWIKI-34 Files whose names occur in the content are attached regardless if they are part of an image syntax
- Closed