WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
274695
[Cococa] Ensure temporary PDF file paths are written matching the meaning of their relevant file URLs
https://bugs.webkit.org/show_bug.cgi?id=274695
Summary
[Cococa] Ensure temporary PDF file paths are written matching the meaning of ...
Brent Fulgham
Reported
2024-05-24 17:26:43 PDT
NSFileManager creates file using the exact strings provided as paths. If a file URL with percent-encoded values is passed to it, the file paths are created without decoding the paths. For example, a file URL like "file:///tmp/some%20temp%20file.txt" will be created as the path "/tmp/some%20%temp%20file.txt", rather than "/tmp/some\ temp\ file.txt". When a file URL is passed to NSWorkspace to open a path, the path is decoded. This creates a mismatch, such that a request to create and then open a temporary file of "/tmp/some%20%temp%20file.txt" causes NSWorkspace to attempt to open the file "/tmp/some\ temp\ file.txt", which fails. This patch corrects this mis-match so that temporary PDF files can open properly.
Attachments
Add attachment
proposed patch, testcase, etc.
Brent Fulgham
Comment 1
2024-05-24 17:27:00 PDT
<
rdar://127379128
>
Brent Fulgham
Comment 2
2024-05-24 17:34:40 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/29099
EWS
Comment 3
2024-05-27 16:44:44 PDT
Committed
279359@main
(ae3780f0dcc3): <
https://commits.webkit.org/279359@main
> Reviewed commits have been landed. Closing PR #29099 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug