iPhoto illegal Ampersand XML encoding in AlbumData.xml

Originator:dwood
Number:rdar://7469235 Date Originated:2009-12-14
Status:Duplicate/7166650 Resolved:
Product:iApps Product Version:iPhoto 8.1.1
Classification:Serious Bug Reproducible:Always
 
Summary:

An saved iPhoto SlideShow incorrectly encodes the '&' character in AlbumData.xml

Steps to Reproduce:

1. in iPhoto, create a new Slideshow in the source list.
2. For the music of the slideshow, select a band or track name with '&' in the path, e.g. Simon & Garfunkel
3. Quit iPhoto

4. Examine the XML file ~/Pictures/iPhoto Library/AlbumData.xml

(for instance, do grep 'Garfunkel' <path_to_AlbumData.xml>

Expected Results:

In the slideshow data dictionary, the string for the Song_Path key should properly encode the ampersand as & so that external programs can read this file

Actual Results:

The '&' in the path to the song is not encoded properly, which make this an unreadable file.  This causes any of the dozens of shipping applications that use the iMedia Browser framework to be completely unable to read the iPhoto library.


Here is a concrete example when I tried it:

<key>Song_Path</key>
<string>/Volumes/dwood/Music/iTunes/iTunes Music/Music/Simon & Garfunkel/The Concert In Central Park/05 Scarborough Fair.m4a</string>


Regression:

Unknown

Notes:

Note that there is another key "SongPath" which *does* properly encode the '&' in the value.  It's not obvious as to why there are two similar keys/values, with one correct and one incorrect.

Comments

Filed duplicate rdar://7469465

Hope Apple gets on it soon.


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!