Closed
Bug 189106
Opened 22 years ago
Closed 22 years ago
Cannot delete helper apps which have special characters in the MIME type
Categories
(Core Graveyard :: File Handling, defect, P1)
Core Graveyard
File Handling
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla1.3beta
People
(Reporter: piers, Assigned: bzbarsky)
References
Details
(Keywords: intl)
Attachments
(1 file)
|
10.71 KB,
patch
|
timeless
:
review+
dmosedale
:
superreview+
asa
:
approval1.3b+
|
Details | Diff | Splinter Review |
If you create a helper app with special characters in the MIME type (e.g. £, Æ, Ω, ¶, ý), you then can't remove or edit it.
Comment 1•22 years ago
|
||
can reproduce on win98 build from jan 12
Steps to reproduce: 1. Open Prefs -> Hepler Applications; 2. Click "New Type"; 3. As the MIME type, enter "£" (no quotes);* 4. Click OK; 5. Select the newly created entry. * On a non-UK keyboard you can press Alt+0163 (on Win) to get "£" Actual results: "Edit" and "Remove" buttons are disabled. Expected: Buttons are enabled, and actions possible.
| Assignee | ||
Comment 3•22 years ago
|
||
biesi has volunteered to debug this...
Assignee: bzbarsky → cbiesinger
Comment 4•22 years ago
|
||
http://lxr.mozilla.org/seamonkey/source/xpfe/components/prefwindow/resources/content/pref-applications.js#201 here, uri is "", so the HandlerOverride stuff doesn't exactly get useful info, later on at http://lxr.mozilla.org/seamonkey/source/xpfe/components/prefwindow/resources/content/pref-applications.js#227 the isEditable attribute is "" so the buttons get disabled.
| Assignee | ||
Comment 5•22 years ago
|
||
OK. I know what's up here... The problem is that GetResource() expects (and demands) an ascii string. We pass it some random stuff that XPConnect strips to be 7-bit-clean and things break. We need to fix that by using GetUnicodeResource, basically (or fixing GetResource...) or we need to do filtering of the content-type string prior to it getting into the overrideHandler code. This is enough of an edge case that I think fixing it by hacking the existing rdf-munging code is silly; I'd rather implement a service for doing it like I keep meaning to.... then that can encapsulate all the logic that is in oodles of places right now. Piers, even when I fix this bug, that won't let you delete the entries you already have that are messed up.... the problem you have is that your mimeTypes.rdf file already contains corrupted data. Ths fix will be to not allow such data into the datasource rather than to deal with its presence in there. If you don't want to just trash mimeTypes.rdf, let me know (e-mail or irc) and I can help you delete the bogus entries.
| Assignee | ||
Comment 7•22 years ago
|
||
*** Bug 190951 has been marked as a duplicate of this bug. ***
| Assignee | ||
Comment 8•22 years ago
|
||
This is causing internationalization issues too, so we really need to fix this. Patch is a simple search/replace s/GetResource/GetUnicodeResource/ on the override handler.
| Assignee | ||
Updated•22 years ago
|
Flags: blocking1.3b?
Keywords: intl
OS: Windows 2000 → All
Priority: -- → P1
Hardware: PC → All
Target Milestone: --- → mozilla1.3beta
| Assignee | ||
Updated•22 years ago
|
Attachment #112888 -
Flags: superreview?(dmose)
Attachment #112888 -
Flags: review?(timeless)
Attachment #112888 -
Flags: review?(timeless) → review+
Comment 9•22 years ago
|
||
Comment on attachment 112888 [details] [diff] [review] use GetUnicodeResource (note that the C++ use UTF8 already, so needs no changing) sr=dmose
Attachment #112888 -
Flags: superreview?(dmose) → superreview+
| Assignee | ||
Comment 10•22 years ago
|
||
Comment on attachment 112888 [details] [diff] [review] use GetUnicodeResource (note that the C++ use UTF8 already, so needs no changing) Potentially serious intl problem.... very straightforward fix to just use the unicode api...
Attachment #112888 -
Flags: approval1.3b?
Comment 11•22 years ago
|
||
Comment on attachment 112888 [details] [diff] [review] use GetUnicodeResource (note that the C++ use UTF8 already, so needs no changing) a=asa (on behalf of drivers) for checkin to 1.3beta.
Attachment #112888 -
Flags: approval1.3b? → approval1.3b+
| Assignee | ||
Comment 12•22 years ago
|
||
fixed
Status: NEW → RESOLVED
Closed: 22 years ago
Flags: blocking1.3b?
Resolution: --- → FIXED
| Assignee | ||
Comment 13•22 years ago
|
||
*** Bug 137276 has been marked as a duplicate of this bug. ***
Comment 14•21 years ago
|
||
Verified in the Win32 2003-03-13-04 NB under Win XP .
Status: RESOLVED → VERIFIED
Updated•8 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•