QTMovie writeToFile: does not work in sandbox

Originator:chad515
Number:rdar://15448223 Date Originated:11/12/2013
Status:Open Resolved:No
Product:Mac OS X Product Version:10.9/13A3017
Classification:Serious Bug Reproducible:Always
 
Summary:
This bug is a recurrence of rdar://10644859 . That bug existed between OS X 10.6 and 10.7.4, but was fixed in 10.7.5 and 10.8. However, it appears to be back now in 10.9.

The problem is the same as before. QTMovie's writeToFile: method does not work at all, whether writing inside or outside the sandbox. The same sample code exhibits the problem (which I've attached here again for convenience).

The one difference is that there are denials in the logs this time, while there were no denials last time. These look like this when using an NSSavePanel to write outside the sandbox:
Nov 12 11:41:44 fruitbookwired.home sandboxd[363] ([3235]): QTMovieWriteSand(3235) deny file-issue-extension /Users/chad/Desktop
Nov 12 11:41:44 fruitbookwired.home sandboxd[363] ([3235]): QTMovieWriteSand(3235) deny file-write-data /Users/chad/Desktop

And they look like this when trying to write within the application's container:
Nov 12 11:42:49 fruitbookwired.home sandboxd[363] ([3235]): QTMovieWriteSand(3235) deny file-issue-extension /Users/chad/Library/Containers/com.usefulfruit.QTMovieWriteSandboxBug/Data
Nov 12 11:42:49 fruitbookwired.home sandboxd[363] ([3259]): com.apple.qtkits(3259) deny file-write-create /Users/chad/Library/Containers/com.usefulfruit.QTMovieWriteSandboxBug/Data/tmpmovie.mov

Steps to Reproduce:
Copy/pasted from previous bug:

A)
1) Create a sandboxed app that has a QTMovie movie object.
2) Open a NSSavePanel to get the file to save to (so that Powerbox will grant access to the path)
3) Call writeToFile:withAttributes:error: to write the file to the chosen path

B)
1) Create a sandboxed app that has a QTMovie movie object.
2) Create a path within the sandbox to write the file to
3) Call writeToFile:withAttributes:error: to write the file to the path within the sandbox


Expected Results:
The file is written successfully.

Actual Results:
The file is not written.

Version:
10.9/13A3017

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!