Bug 448735 - Bad path format for embedded documents
Summary: Bad path format for embedded documents
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 21.12.0
Platform: Other Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-18 18:43 UTC by fkosa
Modified: 2022-01-19 16:08 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screenshot (544.17 KB, image/png)
2022-01-18 18:43 UTC, fkosa
Details
attachment-3746-0.html (1.85 KB, text/html)
2022-01-18 19:32 UTC, fkosa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description fkosa 2022-01-18 18:43:26 UTC
Created attachment 145628 [details]
Screenshot

SUMMARY

STEPS TO REPRODUCE
1. Open a pdf with embedded pdf

OBSERVED RESULT
Can not open the embedded pdf, as the path is unix-formatted

EXPECTED RESULT
To open the embedded pdf

SOFTWARE/OS VERSIONS
Windows: 10
Comment 1 Oliver Sander 2022-01-18 19:29:09 UTC
Can you attach such a pdf file?

If the embedded file is truly embedded then its path shouldn't matter, should it?
Comment 2 fkosa 2022-01-18 19:32:53 UTC
Created attachment 145630 [details]
attachment-3746-0.html

I can not, as it is full of personal data.

Okular in fact extracts the embedded file to tmp folder, but afterwards it
can not open it as the path to tmp is unix-formated, not win-formatted.

So it matters indeed.


---
Kósa Ferenc
Mobilról küldve. / Sent from mobile device.


Oliver Sander <bugzilla_noreply@kde.org> ezt írta (időpont: 2022. jan. 18.,
K 20:29):

> https://bugs.kde.org/show_bug.cgi?id=448735
>
> Oliver Sander <oliver.sander@tu-dresden.de> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>                  CC|                            |
> oliver.sander@tu-dresden.de
>
> --- Comment #1 from Oliver Sander <oliver.sander@tu-dresden.de> ---
> Can you attach such a pdf file?
>
> If the embedded file is truly embedded then its path shouldn't matter,
> should
> it?
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.
> You reported the bug.
Comment 3 Oliver Sander 2022-01-19 09:46:56 UTC
I don't have a Windows machine to test with anyways.  Can you, by any chance, embed some file in a test pdf file on Windows and upload that?  That should fail on my Linux, right?
Comment 4 fkosa 2022-01-19 13:12:41 UTC
(In reply to Oliver Sander from comment #3)
> I don't have a Windows machine to test with anyways.  Can you, by any
> chance, embed some file in a test pdf file on Windows and upload that?  That
> should fail on my Linux, right?

The Linux version is working properly. The bug only affects the Windows version.
I can not provide you a sample file, as per I do not have Adobe Acrobat DC paid version.
Comment 5 Albert Astals Cid 2022-01-19 15:02:21 UTC
don't play with bug severity
Comment 6 Bug Janitor Service 2022-01-19 15:03:22 UTC
A possibly relevant merge request was started @ https://invent.kde.org/graphics/okular/-/merge_requests/543
Comment 7 Albert Astals Cid 2022-01-19 16:08:38 UTC
Git commit 6795ae7f2c02c388cbd6db619891c20477496139 by Albert Astals Cid.
Committed on 19/01/2022 at 15:03.
Pushed by aacid into branch 'release/21.12'.

Fix previewing embedded files on Windows

M  +1    -1    part/embeddedfilesdialog.cpp

https://invent.kde.org/graphics/okular/commit/6795ae7f2c02c388cbd6db619891c20477496139