AFP permissions are processed wrong by Finder and Foundation, ok at shell

Originator:farcaller
Number:rdar://8615441 Date Originated:01-Nov-2010 03:59 PM
Status:Open Resolved:
Product:OSX Product Version:10.6.4
Classification:Serious Bug Reproducible:Always
 
Summary:
AFP share with full read + file write/delete capability does not allow to create or write files via Finder, TextEdit or other native Mac apps.

Steps to Reproduce:
1. Create new afp share on OSX server with the following permissions:
 * Read Attributes
 * Read Extended Attributes
 * List Folder Contents (Read Data)
 * Traverse Folder (Execute File)
 * Read Permissions
 * Create Files (Write Data)
 * Delete

2. Mount the share on OSX client

3. Try to copy new file into share via Finder, create new file in Finder or TextEdit, open existing file in TextEdit, modify it and save.

Expected Results:

File save succeeds.

Actual Results:

Finder does not allow to create file. TextEdit reports: The document “untitled.txt” could not be saved. You don’t have permission. To view or change permissions, select the item in the Finder and choose File > Get Info.

Notes:

File operations done via shell, like:

touch /Volumes/TestShare/file1
echo 123 > /Volumes/TestShare/file2
echo 456 >> /Volumes/TestShare/file2

work as expected. Also, some OSX applications like TextMate or Adobe Photoshop also work as expected. NSFileManager's -createFileAtPath:contents:attributes: works as expected.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!