https://bugs.kde.org/show_bug.cgi?id=426976

            Bug ID: 426976
           Summary: kioclient5 exec / kde-open5 with URL fragment on PDF
           Product: kde-cli-tools
           Version: 5.19.5
          Platform: Archlinux Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: aleix...@kde.org
          Reporter: model...@outlook.com.au
  Target Milestone: ---

Created attachment 131941
  --> https://bugs.kde.org/attachment.cgi?id=131941&action=edit
Views seen when opening a PDF URl, (1): the top image, (2): the notification,
and (3) the created tmpfile

SUMMARY
Opening a PDF by clicking on a URL that contains a fragment causes okular to
fail to open the URL. As seen in the attachment, okular seems to open an
encoded URL as well.

kioclient5 seems to be able to download the file properly - `kioclient5 cat
"https://www.latex-project.org/help/documentation/source2e.pdf#subsection.68.3"`
works - but when saving this it seems to mess up.

STEPS TO REPRODUCE
`kioclient5 exec
"https://www.latex-project.org/help/documentation/source2e.pdf#subsection.68.3"`
OR
`kioclient5 exec
"http://www.docs.is.ed.ac.uk/skills/documents/3722/3722-2014.pdf\section.4.1"`
etc...

OBSERVED RESULT
Okular displays an error, as the attachment shows.
In addition, it creates an empty tmpfile.
Okular shows "fail to open <url-with-encoded-parts>"

EXPECTED RESULT
PDF opens in okular correctly. Ideally it should open to the specified
bookmark, but I don't know if Okular supports that.
Okular should also show the original URL if errored.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.19.5
KDE Frameworks Version: 5.74.0
Qt Version: 5.15.1
Kernel Version: 5.8.10-arch1-1
OS Type: 64-bit

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to