Bug 13329 - PDF files saved with incorrect group id (gid)
Summary: PDF files saved with incorrect group id (gid)
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 523.x (Safari 3)
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2007-04-11 08:20 PDT by brian.aydemir
Modified: 2007-07-07 13:24 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description brian.aydemir 2007-04-11 08:20:42 PDT
When following a link to a PDF, the file is displayed in the browser window.  At this point, one may use Cmd-S to save the PDF file to some location on disk.  The file created has an incorrect gid, in the sense that the gid does not correspond in any way to the current user.  In my particular case, the current user can't even normally create a file with the observed gid, so it's not clear how the group id is being set.

Steps to reproduce (I'm picking a particular PDF, for the sake of illustration---I've observed similar behavior with other PDF files, so the PDF itself shouldn't matter):

[1] Open http://www.cis.upenn.edu/~baydemir/files/abw06nominal.pdf in a browser window.  The PDF should display normally.

[2] Choose "File > Save as..." and save the PDF file to some location disk.

[3] Now examine the group id (gid) of the file.

In my particular case, I saved the file as "abw06nominal.pdf" to ~/Desktop.  Cutting and pasting from Terminal.app:

% id
uid=502(kitby) gid=502(kitby) groups=502(kitby)
% groups
kitby
% ls -l
total 312
-rw-r--r--   1 kitby  wheel  159578 Apr 11 11:00 abw06nominal.pdf

The group "wheel" makes no sense for the file I just saved.  By default, files I create should fall in group "kitby".  I'm not a member of "wheel", so it's not clear how I caused the creation of a file with group "wheel".
Comment 1 Alexey Proskuryakov 2007-07-06 06:37:21 PDT
This looks like a Safari bug, so it need to be reported via <http://bugreport.apple.com>. Actually, page source is also saved the same way for me.
Comment 2 David Kilzer (:ddkilzer) 2007-07-07 13:21:54 PDT
<rdar://problem/5319536>
Comment 3 David Kilzer (:ddkilzer) 2007-07-07 13:24:38 PDT
Closing as RESOLVED/INVALID since this issue can't be fixed in WebKit.  It will be tracked by the Radar bug.