Uploaded image for project: 'DokuWiki tools'
  1. DokuWiki tools
  2. DOKUWIKI-32

Only files that are in the same namespace as the page are imported

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.0
    • 1.3.6
    • Import
    • 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

          Activity

            People

              MichaelHamann Michael Hamann
              MichaelHamann Michael Hamann
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: