Bug 472440

Summary: If okular is reading pdf from stdin external links are not actioned.
Product: [Applications] okular Reporter: Deri James <deri>
Component: PDF backendAssignee: Okular developers <okular-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 23.04.1   
Target Milestone: ---   
Platform: Mageia RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: PDF with external link

Description Deri James 2023-07-20 17:10:43 UTC
Created attachment 160412 [details]
PDF with external link

SUMMARY
If okular is reading pdf from stdin external links are not actioned.

STEPS TO REPRODUCE
1. Using attached example pdf
2. cat okular_extlink_test.pdf | okular -
3. 

OBSERVED RESULT
The external web link on page 1 is shown as a "hotspot" and hovering mouse shows the url, but mouse click does not activate the link.

EXPECTED RESULT
Link should activate.

SOFTWARE/OS VERSIONS
(available in About System)
KDE Plasma Version: 
5.27.5
KDE Frameworks Version: 
5.105.0
Qt Version: 
5.15.7
ADDITIONAL INFORMATION

When using "okular okular_extlink_test.pdf" (rather than piping through stdin), the external link works normally. On page 2 there is an internal document link which works fine in both scenarios.
Comment 1 Bug Janitor Service 2023-07-23 16:29:23 UTC
A possibly relevant merge request was started @ https://invent.kde.org/graphics/okular/-/merge_requests/782
Comment 2 Albert Astals Cid 2023-07-23 16:44:31 UTC
Git commit 29810ad3dd5eca35e1f3b0f247e40e793966b8b2 by Albert Astals Cid.
Committed on 23/07/2023 at 18:28.
Pushed by aacid into branch 'master'.

Handle absolute urls in Document::processAction

M  +6    -1    core/document.cpp

https://invent.kde.org/graphics/okular/-/commit/29810ad3dd5eca35e1f3b0f247e40e793966b8b2
Comment 3 Albert Astals Cid 2023-07-23 16:45:29 UTC
Git commit d7ef3a113a018213e51e140f8c6ed20bbf33524f by Albert Astals Cid.
Committed on 23/07/2023 at 18:45.
Pushed by aacid into branch 'release/23.08'.

Handle absolute urls in Document::processAction
(cherry picked from commit 29810ad3dd5eca35e1f3b0f247e40e793966b8b2)

M  +6    -1    core/document.cpp

https://invent.kde.org/graphics/okular/-/commit/d7ef3a113a018213e51e140f8c6ed20bbf33524f