Quartz Composer's XML Downloader Patch crashes with particular XML content

Originator:smokris
Number:rdar://7317433 Date Originated:2009.10.19
Status:Open Resolved:
Product:Mac OS X Product Version:Quartz Composer 3.0-4.0
Classification:Crash/Hang/Data Loss Reproducible:Always
 
Summary:
Quartz Composer's XML Downloader Patch crashes when the XML content consists of an element whose attribute and child element share the same name.


Steps to Reproduce:
1. Create the following XML file:
   <?xml version="1.0"?>
   <a>
      <b id="1">
         <id>1</id>
      </b>
   </a>
2. Launch Quartz Composer
3. Create an XML Downloader Patch
4. Point the XML Downloader Patch to the XML file created in Step 1.
5. Create a Billboard, and connect the XML Downloader Patch to the Billboard.
6. Quartz Composer crashes.


Expected Results:
I expect Quartz Composer to properly handle XML data formatted as above.


Actual Results:
Quartz Composer crashes; the following exception appears in the crash log:
*** Terminating app due to uncaught exception 'NSGenericException', reason: '-[GFList insertObject:atIndex:forKey:]: Key "id" already in list'


Regression:
Occurs in Quartz Composer on Leopard and on Snow Leopard.

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!