Ticket #1939 (new Defect)

Opened 2 years ago

Last modified 20 months ago

Mime type definition in info.plist is EVIL and breaks things!

Reported by: tyler@… Owned by: timothy
Priority: Normal Milestone: Colloquy 2.4
Component: Colloquy (Mac) Version: 2.3 (Mac)
Severity: Normal Keywords:
Cc:

Description

The mime type definition for the colloquyTranscript entry is very evil. If I select an xml file from a web server in Safari and download it using right click "download file as..." it changes the file name from "ASD2811.XML" to "ASD2811.XML.colloquyTranscript" and the owner of the file becomes Colloquy.

NOT good!

This is the offending stuff from the info.plist I believe, and I think it's the mime type part ("CFBundleTypeMIMETypes") that's the problem. Somehow this is overriding the default for application/xml in safari such that the behavior described above happens.

		<dict>
			<key>CFBundleTypeExtensions</key>
			<array>
				<string>colloquyTranscript</string>
				<string>colloquytranscript</string>
			</array>
			<key>CFBundleTypeIconFile</key>
			<string>Generic.icns</string>
			<key>CFBundleTypeMIMETypes</key>
			<array>
				<string>application/xml</string>
			</array>
			<key>CFBundleTypeName</key>
			<string>Chat transcript</string>
			<key>CFBundleTypeOSTypes</key>
			<array>
				<string>coTr</string>
			</array>
			<key>CFBundleTypeRole</key>
			<string>Viewer</string>
		</dict>

Mac OS X 10.5.8, MacBook Pro, 4 Gig RAM, etc.

Change History

Changed 20 months ago by zota

This is a longstanding and extremely annoying problem, that's been ignored in several past tickets.
#1471: Defect: owned my xml files (closed: invalid)
#1456: Defect: When safari downloads an XML files it names it *.xml.colloquytranscript (closed: invalid)

I have uninstalled Colloquy and erased all associated files I could find, but it is still renaming and claiming ownership of XML files. Any advice on which files in my system have been changed and how I can repair the damage?

Note: See TracTickets for help on using tickets.