OK button in (open with/save to) window is greyed/grayed/disabled when certain mimeTypes.rdf entries exist

NEW
Unassigned

Status

()

defect
--
major
15 years ago
3 years ago

People

(Reporter: chocobo2k, Unassigned)

Tracking

unspecified
x86
Windows XP
Points:
---
Bug Flags:
blocking1.9 -
wanted1.9 +

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [needs patch], )

Attachments

(1 attachment)

Reporter

Description

15 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040913 Firefox/0.10
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040913 Firefox/0.10

I notice this today, when ever I click on .zip file the window asking me
wheather open with/ save to, the ok button is greyed and I cannot download
anything. Neither open with/save to make the ok button work. Other browsers can
save the same link and I tried many webpages but the same problem occured
 I have tried saving .exe and it worked fine. I have winzip 9 (6028) installed
and winrar 3.2
Here is a snap shot :
http://serv1.freeimageupload.net/uploads/1097833119.jpeg

Reproducible: Always
Steps to Reproduce:
1.click on any .zip file
2.the open window OK button is disabled ( Greyed )
3.
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.3) Gecko/20041016 Firefox/1.0

WFM

1.Does this happen on any site you download from ?
2.Does it happen all the time ?

Comment 2

15 years ago
I also experience this bug. 

I am using Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20041001
Firefox/0.10.1

And i can't download anything that doesn't have an associated mime type already.
This occurred recently. It used to work....

Thanks!

(In reply to comment #0)
> User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3)
Gecko/20040913 Firefox/0.10
> Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3)
Gecko/20040913 Firefox/0.10
> 
> I notice this today, when ever I click on .zip file the window asking me
> wheather open with/ save to, the ok button is greyed and I cannot download
> anything. Neither open with/save to make the ok button work. Other browsers can
> save the same link and I tried many webpages but the same problem occured
>  I have tried saving .exe and it worked fine. I have winzip 9 (6028) installed
> and winrar 3.2
> Here is a snap shot :
> http://serv1.freeimageupload.net/uploads/1097833119.jpeg
> 
> Reproducible: Always
> Steps to Reproduce:
> 1.click on any .zip file
> 2.the open window OK button is disabled ( Greyed )
> 3.

Comment 3

15 years ago
I can confirm this bug for Firefox 1.0 [Mozilla/5.0 (Windows; U; Windows NT 5.0;
de-DE; rv:1.7.5) Gecko/20041108 Firefox/1.0]


Summary:
--------
The bug occurs if two major pre-conditions are met:
1) You download a new kind of file, select an application but don't select "do
this automatically for files like this from now on" [and you don't add this type
of file to the settings|downloads|file types list]
2) You delete or rename the application selected above (this can happen for
example after an update, some people reported the bug after an update from OOo
1.1.2 to 1.1.3)

Now you are stuck whenever you try to download this type of file again, because
the OK button is grayed out - no matter what you select (see screenshot).


Steps to reproduce:
-------------------
1) Select an arbitrary kind of file and make sure, that there is no autmatic
action for it (if necessary, delete this filetype from the file types list in
the preferences (or settings?) dialog --> downloads card).
2) Download this kind of file from an arbitrary location
3) Select an application to open it, but DON'T select "do this automatically for
files like this from now on" before clicking on OK
4) Close firefox
5) Rename the application selected above
6) Start firefox again
7) Download the same kind of file again -- now you can see the behavior
described by the bug reporter - and illustrated by the screenshot:

The "OK" button remains disabled, no matter what you select -- you're stuck!

Maybe rename/delete of an application is only one possible cause for this bug.
I've executed these steps with .ppt files and OOo 1.1.3.


Workaround:
-----------
To get rid of the bug, edit the mimeTypes.rdf file in your profile directory:
Either update the path/application filename if moved -- or remove the according
RDF:Description entry. The "OK" button gets available again.


It looks like Thunderbird 0.9 bug #264492 and this Firefox bug are very closely
related, at least the steps to expose the bug are the same.

Interestingly the bug does NOT occur in the last Mozilla suite I've tested:
Nighly 1.8.0.2004101505.

Comment 4

15 years ago
It is quite obvious that I made a mistake with the bug number: I suppose that
Thunderbird bug #264561 and this bug are very closely related.
*** Bug 275975 has been marked as a duplicate of this bug. ***

Comment 6

15 years ago
Firefox 1.0, Windows 2000 exhibits this same behavior.  I changed the
system-default application for handling bittorrent from BitTornado to Azureus,
and it now grays out OK no matter what I do.

Excerpts of mimeTypes.rdf:

  <RDF:Description RDF:about="urn:mimetype:handler:application/x-bittorrent"
                   NC:alwaysAsk="true"
                   NC:saveToDisk="false"
                   NC:useSystemDefault="false"
                   NC:handleInternal="false">
    <NC:externalApplication
RDF:resource="urn:mimetype:externalApplication:application/x-bittorrent"/>
  </RDF:Description>
  <RDF:Seq RDF:about="urn:mimetypes:root">
    <RDF:li RDF:resource="urn:mimetype:application/x-bittorrent"/>
  </RDF:Seq>
  <RDF:Description RDF:about="urn:mimetype:application/x-bittorrent"
                   NC:fileExtensions="torrent"
                   NC:description="TORRENT File"
                   NC:value="application/x-bittorrent"
                   NC:editable="true">
    <NC:handlerProp RDF:resource="urn:mimetype:handler:application/x-bittorrent"/>
  </RDF:Description>
  <RDF:Description
RDF:about="urn:mimetype:externalApplication:application/x-bittorrent"
                   NC:path="C:\Program Files\BitTornado\btdownloadgui.exe"
                   NC:prettyName="btdownloadgui.exe" />

Can I get rid of the last <RDF:Description RDF:about> tag, and change 'system
default' to 'true' up above?
Hi, im experiencing the same problem, but only with Torrent files, so ive read
all comments but i cant find anything that will fix this problem

Comment 8

15 years ago
(In reply to comment #7)
> Hi, im experiencing the same problem, but only with Torrent files, so ive read
> all comments but i cant find anything that will fix this problem

Look at https://bugzilla.mozilla.org/show_bug.cgi?id=264492#c6, above, and do
what it says.  Specifically:

Close Firefox entirely.  Then, in mimeTypes.rdf (in the profile directory),
search for the string "application/x-bittorrent".  The first instance will be in
a tag that looks like this:

  <RDF:Description RDF:about="urn:mimetype:handler:application/x-bittorrent"
                   NC:alwaysAsk="true"
                   NC:saveToDisk="false"
                   NC:useSystemDefault="false"
                   NC:handleInternal="false">
    <NC:externalApplication
RDF:resource="urn:mimetype:externalApplication:application/x-bittorrent"/>
  </RDF:Description>

Just change the line:
NC:useSystemDefault="false"
to
NC:useSystemDefault="true"

Then, find the last instance of "application/x-bittorrent" in the file, which
will probably be in a tag that looks something like this:

<RDF:Description
RDF:about="urn:mimetype:externalApplication:application/x-bittorrent"
                   NC:path="C:\Program Files\BitTornado\btdownloadgui.exe"
                   NC:prettyName="btdownloadgui.exe" />

Just delete this entire tag.

Then, save mimeTypes.rdf, and restart Firefox.  You should now be able to open
it with the system default application for .torrent files.
Thats what i didnt understand, the things in HTML or whatever its called, where
do i find that then? :S
(In reply to comment #9)
> Thats what i didnt understand, the things in HTML or whatever its called, where
> do i find that then? :S


ok i found that thingie, but this is all i got in that .rdf

<?xml version="1.0"?>  

<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
     xmlns:NC="http://home.netscape.com/NC-rdf#"
     xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#">

  <Description about="urn:mimetypes"> 
    <NC:MIME-types> 
      <Seq about="urn:mimetypes:root"> 
      </Seq> 
    </NC:MIME-types> 
  </Description> 
</RDF>

doesnt look like the one u showed above :S

Comment 11

15 years ago
(In reply to comment #10)
mimeTypes.rdf is in your profile folder. It depends on your operating system and
your account name, where it resides:

http://www.mozilla.org/support/firefox/edit
has a description how to find your profile folder for several operating systems.

Assuming that you have XP/2000:
Click Start > Run..., enter %AppData%\Mozilla\Firefox\Profiles (exactly like
this, with % character) and press [Enter].

You will see a folder like default.xxx or abcdefgh.default containing your
profile with mimeTypes.rdf.
ok... i found it, has more html in it, but still has no x-bittorent in it :S

<?xml version="1.0"?>
<RDF:RDF xmlns:NC="http://home.netscape.com/NC-rdf#"
         xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
  <RDF:Description RDF:about="urn:mimetype:externalApplication:audio/mid"
                   NC:prettyName=""
                   NC:path="" />
  <RDF:Description RDF:about="urn:mimetype:application/zip"
                   NC:fileExtensions="zip"
                   NC:description="WinRAR ZIP archive"
                   NC:value="application/zip"
                   NC:editable="true">
    <NC:handlerProp RDF:resource="urn:mimetype:handler:application/zip"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:mimetype:handler:audio/mid"
                   NC:alwaysAsk="false"
                   NC:useSystemDefault="true">
    <NC:externalApplication
RDF:resource="urn:mimetype:externalApplication:audio/mid"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:mimetype:handler:audio/wav"
                   NC:alwaysAsk="false"
                   NC:useSystemDefault="true">
    <NC:externalApplication
RDF:resource="urn:mimetype:externalApplication:audio/wav"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:mimetype:handler:application/x-bittorrent"
                   NC:alwaysAsk="true"
                   NC:saveToDisk="false"
                   NC:useSystemDefault="false"
                   NC:handleInternal="false">
    <NC:externalApplication
RDF:resource="urn:mimetype:externalApplication:application/x-bittorrent"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:mimetype:audio/x-m4a"
                   NC:value="audio/x-m4a"
                   NC:editable="true">
    <NC:handlerProp RDF:resource="urn:mimetype:handler:audio/x-m4a"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:mimetype:handler:video/x-ms-asf"
                   NC:alwaysAsk="false"
                   NC:useSystemDefault="true">
    <NC:externalApplication
RDF:resource="urn:mimetype:externalApplication:video/x-ms-asf"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:mimetype:video/mpeg"
                   NC:value="video/mpeg"
                   NC:editable="true">
    <NC:handlerProp RDF:resource="urn:mimetype:handler:video/mpeg"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:mimetype:handler:video/mpeg"
                   NC:alwaysAsk="false"
                   NC:useSystemDefault="true">
    <NC:externalApplication
RDF:resource="urn:mimetype:externalApplication:video/mpeg"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:mimetype:handler:application/zip"
                   NC:alwaysAsk="true"
                   NC:saveToDisk="true"
                   NC:useSystemDefault="false">
    <NC:externalApplication
RDF:resource="urn:mimetype:externalApplication:application/zip"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:mimetype:handler:application/pdf"
                   NC:alwaysAsk="false"
                   NC:useSystemDefault="true">
    <NC:externalApplication
RDF:resource="urn:mimetype:externalApplication:application/pdf"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:mimetype:video/avi"
                   NC:value="video/avi"
                   NC:editable="true">
    <NC:handlerProp RDF:resource="urn:mimetype:handler:video/avi"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:mimetype:video/x-msvideo"
                   NC:fileExtensions="avi"
                   NC:description="Videoclip"
                   NC:value="video/x-msvideo"
                   NC:editable="true">
    <NC:handlerProp RDF:resource="urn:mimetype:handler:video/x-msvideo"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:mimetype:externalApplication:video/x-ms-asf"
                   NC:prettyName=""
                   NC:path="" />
  <RDF:Description RDF:about="urn:mimetype:externalApplication:audio/x-m4a"
                   NC:prettyName=""
                   NC:path="" />
  <RDF:Description RDF:about="urn:mimetypes">
    <NC:MIME-types RDF:resource="urn:mimetypes:root"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:mimetype:externalApplication:video/x-ms-wmv"
                   NC:prettyName=""
                   NC:path="" />
  <RDF:Description RDF:about="urn:mimetype:externalApplication:audio/x-mp3"
                   NC:prettyName=""
                   NC:path="" />
  <RDF:Description RDF:about="urn:mimetype:externalApplication:audio/mpeg"
                   NC:prettyName=""
                   NC:path="" />
  <RDF:Description RDF:about="urn:mimetype:audio/x-ms-wma"
                   NC:value="audio/x-ms-wma"
                   NC:editable="true">
    <NC:handlerProp RDF:resource="urn:mimetype:handler:audio/x-ms-wma"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:mimetype:video/x-ms-wmv"
                   NC:value="video/x-ms-wmv"
                   NC:editable="true">
    <NC:handlerProp RDF:resource="urn:mimetype:handler:video/x-ms-wmv"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:mimetype:audio/x-mp3"
                   NC:value="audio/x-mp3"
                   NC:editable="true">
    <NC:handlerProp RDF:resource="urn:mimetype:handler:audio/x-mp3"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:mimetype:externalApplication:video/avi"
                   NC:prettyName=""
                   NC:path="" />
  <RDF:Description RDF:about="urn:mimetype:handler:audio/mpeg"
                   NC:alwaysAsk="false"
                   NC:useSystemDefault="true">
    <NC:externalApplication
RDF:resource="urn:mimetype:externalApplication:audio/mpeg"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:mimetype:handler:video/quicktime"
                   NC:alwaysAsk="false"
                   NC:useSystemDefault="true">
    <NC:externalApplication
RDF:resource="urn:mimetype:externalApplication:video/quicktime"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:mimetype:externalApplication:application/zip"
                   NC:prettyName=""
                   NC:path="" />
  <RDF:Description RDF:about="urn:mimetype:externalApplication:application/pdf"
                   NC:prettyName=""
                   NC:path="" />
  <RDF:Description RDF:about="urn:mimetype:video/x-ms-asf"
                   NC:value="video/x-ms-asf"
                   NC:editable="true">
    <NC:handlerProp RDF:resource="urn:mimetype:handler:video/x-ms-asf"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:mimetype:handler:audio/x-pn-realaudio"
                   NC:alwaysAsk="false"
                   NC:useSystemDefault="true">
    <NC:externalApplication
RDF:resource="urn:mimetype:externalApplication:audio/x-pn-realaudio"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:mimetype:audio/mpeg"
                   NC:value="audio/mpeg"
                   NC:editable="true">
    <NC:handlerProp RDF:resource="urn:mimetype:handler:audio/mpeg"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:mimetype:handler:video/x-ms-wmv"
                   NC:alwaysAsk="false"
                   NC:useSystemDefault="true">
    <NC:externalApplication
RDF:resource="urn:mimetype:externalApplication:video/x-ms-wmv"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:mimetype:audio/wav"
                   NC:value="audio/wav"
                   NC:editable="true">
    <NC:handlerProp RDF:resource="urn:mimetype:handler:audio/wav"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:mimetype:externalApplication:video/mpeg"
                   NC:prettyName=""
                   NC:path="" />
  <RDF:Description RDF:about="urn:mimetype:handler:video/x-msvideo"
                   NC:alwaysAsk="true"
                   NC:useSystemDefault="true"
                   NC:saveToDisk="false">
    <NC:externalApplication
RDF:resource="urn:mimetype:externalApplication:video/x-msvideo"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:mimetype:externalApplication:audio/wav"
                   NC:prettyName=""
                   NC:path="" />
  <RDF:Description RDF:about="urn:mimetype:video/quicktime"
                   NC:value="video/quicktime"
                   NC:editable="true">
    <NC:handlerProp RDF:resource="urn:mimetype:handler:video/quicktime"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:mimetype:application/x-bittorrent"
                   NC:fileExtensions="torrent"
                   NC:description="TORRENT File"
                   NC:value="application/x-bittorrent"
                   NC:editable="true">
    <NC:handlerProp RDF:resource="urn:mimetype:handler:application/x-bittorrent"/>
  </RDF:Description>
  <RDF:Description
RDF:about="urn:mimetype:externalApplication:application/x-bittorrent"
                   NC:path="D:\Program Files\Azureus\Azureus.exe"
                   NC:prettyName="Azureus.exe" />
  <RDF:Description RDF:about="urn:mimetype:externalApplication:audio/x-ms-wma"
                   NC:prettyName=""
                   NC:path="" />
  <RDF:Description RDF:about="urn:mimetype:handler:video/avi"
                   NC:alwaysAsk="false"
                   NC:useSystemDefault="true">
    <NC:externalApplication
RDF:resource="urn:mimetype:externalApplication:video/avi"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:mimetype:handler:audio/x-ms-wma"
                   NC:alwaysAsk="false"
                   NC:useSystemDefault="true">
    <NC:externalApplication
RDF:resource="urn:mimetype:externalApplication:audio/x-ms-wma"/>
  </RDF:Description>
  <RDF:Description
RDF:about="urn:mimetype:externalApplication:application/x-msdownload"
                   NC:prettyName=""
                   NC:path="" />
  <RDF:Description RDF:about="urn:mimetype:handler:application/x-msdownload"
                   NC:alwaysAsk="true"
                   NC:saveToDisk="true">
    <NC:externalApplication
RDF:resource="urn:mimetype:externalApplication:application/x-msdownload"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:mimetype:externalApplication:video/x-msvideo"
                   NC:prettyName=""
                   NC:path="" />
  <RDF:Description RDF:about="urn:mimetype:audio/mid"
                   NC:value="audio/mid"
                   NC:editable="true">
    <NC:handlerProp RDF:resource="urn:mimetype:handler:audio/mid"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:mimetype:externalApplication:video/quicktime"
                   NC:prettyName=""
                   NC:path="" />
  <RDF:Description RDF:about="urn:mimetype:handler:audio/x-m4a"
                   NC:alwaysAsk="false"
                   NC:useSystemDefault="true">
    <NC:externalApplication
RDF:resource="urn:mimetype:externalApplication:audio/x-m4a"/>
  </RDF:Description>
  <RDF:Seq RDF:about="urn:mimetypes:root">
    <RDF:li RDF:resource="urn:mimetype:application/pdf"/>
    <RDF:li RDF:resource="urn:mimetype:video/avi"/>
    <RDF:li RDF:resource="urn:mimetype:video/quicktime"/>
    <RDF:li RDF:resource="urn:mimetype:video/x-ms-wmv"/>
    <RDF:li RDF:resource="urn:mimetype:video/x-ms-asf"/>
    <RDF:li RDF:resource="urn:mimetype:video/mpeg"/>
    <RDF:li RDF:resource="urn:mimetype:audio/x-pn-realaudio"/>
    <RDF:li RDF:resource="urn:mimetype:audio/x-m4a"/>
    <RDF:li RDF:resource="urn:mimetype:audio/x-mp3"/>
    <RDF:li RDF:resource="urn:mimetype:audio/mpeg"/>
    <RDF:li RDF:resource="urn:mimetype:audio/x-ms-wma"/>
    <RDF:li RDF:resource="urn:mimetype:audio/wav"/>
    <RDF:li RDF:resource="urn:mimetype:audio/mid"/>
    <RDF:li RDF:resource="urn:mimetype:application/zip"/>
    <RDF:li RDF:resource="urn:mimetype:application/x-msdownload"/>
    <RDF:li RDF:resource="urn:mimetype:application/x-bittorrent"/>
    <RDF:li RDF:resource="urn:mimetype:video/x-msvideo"/>
  </RDF:Seq>
  <RDF:Description RDF:about="urn:mimetype:application/pdf"
                   NC:value="application/pdf"
                   NC:editable="true">
    <NC:handlerProp RDF:resource="urn:mimetype:handler:application/pdf"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:mimetype:handler:audio/x-mp3"
                   NC:alwaysAsk="false"
                   NC:useSystemDefault="true">
    <NC:externalApplication
RDF:resource="urn:mimetype:externalApplication:audio/x-mp3"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:mimetype:externalApplication:audio/x-pn-realaudio"
                   NC:prettyName=""
                   NC:path="" />
  <RDF:Description RDF:about="urn:mimetype:application/x-msdownload"
                   NC:value="application/x-msdownload"
                   NC:editable="true"
                   NC:fileExtensions="exe"
                   NC:description="Toepassing">
    <NC:handlerProp RDF:resource="urn:mimetype:handler:application/x-msdownload"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:mimetype:audio/x-pn-realaudio"
                   NC:value="audio/x-pn-realaudio"
                   NC:editable="true">
    <NC:handlerProp RDF:resource="urn:mimetype:handler:audio/x-pn-realaudio"/>
  </RDF:Description>
</RDF:RDF>

Comment 13

15 years ago
(In reply to comment #12)
> ok... i found it, has more html in it, but still has no x-bittorent in it :S

Try harder ;-)

Maybe you've made a typo, search for "x-bittorrent" not "x-bittorent":
[...] 
>   <RDF:Description RDF:about="urn:mimetype:handler:application/x-bittorrent"
>                    NC:alwaysAsk="true"
>                    NC:saveToDisk="false"
>                    NC:useSystemDefault="false"
>                    NC:handleInternal="false">
[...]
>   <RDF:Description RDF:about="urn:mimetype:application/x-bittorrent"
>                    NC:fileExtensions="torrent"
>                    NC:description="TORRENT File"
>                    NC:value="application/x-bittorrent"
>                    NC:editable="true">
>     <NC:handlerProp RDF:resource="urn:mimetype:handler:application/x-bittorrent"/>
>   </RDF:Description>
>  <RDF:Description
> RDF:about="urn:mimetype:externalApplication:application/x-bittorrent"
>                   NC:path="D:\Program Files\Azureus\Azureus.exe"
>                   NC:prettyName="Azureus.exe" />
[...]

If your button is greyed out, the path to "D:\Program Files\Azureus\Azureus.exe"
has possibly changed.
OK, i got it fixed, yer right, it was there NOW, the other day im sure i didnt
saw this lot html, weird stuff :S but all good now, ty
Attach previously posted image here. That free image server is slow as hell.

Comment 16

14 years ago
> Workaround:
> -----------
> To get rid of the bug, edit the mimeTypes.rdf file in your profile directory:
> Either update the path/application filename if moved -- or remove the according
> RDF:Description entry. The "OK" button gets available again.
>
OK, I'm getting the same problem, with PDF files.  I have recently updated to
Adobe Reader 7, but no matter what I do, I cannot get Firefox to open them, and
it won't let me choose a programme to open PDFs with - whenever I choose Adobe
Reader 7, the OK button stays greyed out.  
I don't understand your 'workaround', though: Where do I need to go to 'edit the
mimeTypes.rdf file', and where is my profile directory?  Sorry, you're talking
to a computer 'idiot' here, there are some things I can figure out, but this
goes way over my head...  Could you explain this fix simply, in layperson's
terms, please?

Many thanks,
Maaike

Comment 17

14 years ago
(In reply to comment #16)
> Could you explain this fix simply, in layperson's terms, please?

1. Find your profile, as described in comment #11.
2. In your profile directory, find mimeTypes.rdf and open it in a text editor. 
Notepad (for Windows) and TextEdit (for Mac OS X) should work.
3. Update the reference to Adobe Reader to point to Adobe Reader's new location.
 For example, for Windows, find the reference to AcroRd32.exe and update it to
the new path (C:\Program Files\Adobe\Acrobat 7.0\Reader\AcroRd32.exe on my system).

Feel free to email me if you need more detailed instructions.

Comment 18

14 years ago
This bug seem to be fixed in Firefox version 1.0.2 - at least on Windows 2000/XP
(and the closely related Thunderbird bug #264561). Now you should be able to
select a new application even if mimetypes.rdf is corrupt.

If you are not using 1.0.2: Updating to the latest version is *highly*
recommended (there are security relevant bug fixes included!), otherwise - if
you are using the latest version: Please let us know!.
*** Bug 266844 has been marked as a duplicate of this bug. ***
Summary: OK button in the open with/save to window is greyed → OK button in (open with/save to) window is greyed/grayed/disabled when certain mimeTypes.rdf entries exist

Comment 20

14 years ago
I have read everything here and still can't seem to fix this.  I am running
Firefox 1.0.4, and this is a copy of my mimetypes.rdf file.  As you can see,
there is nothing in it pertaining to bittorrent.  What can I do???

<?xml version="1.0"?>

<RDF:RDF xmlns:NC="http://home.netscape.com/NC-rdf#"
 
        xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#">

  <RDF:Seq RDF:about="urn:mimetypes:root">

    <RDF:li RDF:resource="urn:mimetype:application/zip"/>
  
</RDF:Seq>
  
<RDF:Description RDF:about="urn:mimetype:externalApplication:application/zip"
               

    NC:prettyName=""
    
               NC:path="" />
 
 <RDF:Description RDF:about="urn:mimetype:handler:application/zip"
 
                  NC:alwaysAsk="true"
   
                NC:saveToDisk="false">
 
   <NC:externalApplication 
RDF:resource="urn:mimetype:externalApplication:application/x-bittorrent"/>
  </RDF:Description>
RDF:resource="urn:mimetype:externalApplication:application/zip"/>

  </RDF:Description>

  <RDF:Description RDF:about="urn:mimetype:application/zip"
 
                  NC:value="application/zip"
  
                 NC:editable="true"
  
                 NC:fileExtensions="zip"
  
                 NC:description="Compressed (zipped) Folder">
 
   <NC:handlerProp RDF:resource="urn:mimetype:handler:application/zip"/>
 
 </RDF:Description>

  <RDF:Description RDF:about="urn:mimetypes">
 
   <NC:MIME-types RDF:resource="urn:mimetypes:root"/>
 
 </RDF:Description>

</RDF:RDF>

Thanks for any help you can give me.


(In reply to comment #20)
> As you can see, there is nothing in it pertaining to bittorrent.

Are you sure about that?
                                                             vvvvvvvvvvvv
>    <NC:externalApplication 
> RDF:resource="urn:mimetype:externalApplication:application/x-bittorrent"/>
>   </RDF:Description>
> RDF:resource="urn:mimetype:externalApplication:application/zip"/>

Comment 22

14 years ago
(In reply to comment #21)
> (In reply to comment #20)
> > As you can see, there is nothing in it pertaining to bittorrent.
> 
> Are you sure about that?
>                                                              vvvvvvvvvvvv


Okay, you got me!  But there doesn't seem to be anything to edit.  Also, the
type of files that I really want to be able to open (sometimes) is .exe.  How
can I fix that???

Comment 23

14 years ago
>Also, the
> type of files that I really want to be able to open (sometimes) is .exe.  How
> can I fix that???

Oops!  I just became informed that Firefox will not allow you to open an exe
file from its location, for security purposes.  Oh well.  I've gotten everything
else to work, so that's great.

Thanks for all the help!!!

Comment 24

14 years ago
*** Bug 273814 has been marked as a duplicate of this bug. ***

Comment 25

14 years ago
*** Bug 241119 has been marked as a duplicate of this bug. ***

Comment 26

14 years ago
*** Bug 321026 has been marked as a duplicate of this bug. ***

Comment 27

14 years ago
This has a very easy fix.  In tookit/mozapps/downloads/content/unknownContentType.xul make sure the openHandler menulist has the following content:

  <menulist id="openHandler" flex="1">
    <menupopup id="openHandlerPopup" oncommand="dialog.openHandlerCommand();dialog.updateOKButton();">
      <menuitem id="defaultHandler" default="true" crop="right"/>
      <menuitem id="otherHandler" hidden="true" crop="left"/>
      <menuseparator/>
      <menuitem id="choose" label="&other.label;"/>
    </menupopup>
  </menulist>

The base issue is that the OK button is only examined on startup - it needs to be examined every time a change is made to the modeDeck selection.

Updated

13 years ago
QA Contact: ali → download.manager
Assignee: bugs → nobody
Duplicate of this bug: 359523
Duplicate of this bug: 359622
Duplicate of this bug: 346513
Flags: blocking-firefox3?
Assignee: nobody → sdwilsh
Flags: blocking-firefox3? → blocking-firefox3+
Target Milestone: --- → Firefox 3 M8

Comment 31

12 years ago
is bug 361909 a duplicate of this one?
I don't think so, see Bug 353407 for the reason why.
Target Milestone: Firefox 3 M8 → Firefox 3 M9
moving out bugs that don't need to block b1
Target Milestone: Firefox 3 M9 → Firefox 3 M10
Whiteboard: [needs patch]
Target Milestone: Firefox 3 M10 → Firefox 3 M11
Priority: -- → P5
Target Milestone: Firefox 3 M11 → Firefox 3 Mx

Comment 34

12 years ago
WHY, WHY, WHY???

After perusing this thread, it is not clear to me whether or not everyone thinks this bug was fixed. I can assure you it has still NOT been fixed and I cannot comprehend some of the posts at all.

I cannot understand why, after 3 years of trying, we can't seem to fix this bug! At least Firefox in its latest incarnation, v2.0.0.9 still won't allow files with RAR extensions to have the default set to download. The box is still grayed out and there is no remedy I can find. Every suggestion I have found is either inapplicable or simply does not work.

I realize that we have to depend on volunteers for these fixes, but I see items being fixed that are borderline-insignificant and yet this one, which continues to aggravate hundreds of thousands of users keeps getting pushed to the back burner.


RAR is being used much more than ZIP today and it seems to be the compression engine of choice now and this issue is becoming much more important.

It is a PITA to keep selecting download for each RAR file!

>>>>>> 3 (THREE) years?? Yes, THREE (3) YEARS!!<<<<<<

Is the code that difficult? 

Is there some reason it cannot be fixed? Is there something in the fundamental architecture of Firefox/Mozilla that prevents it? Or is there some other reason why that we don't want to talk about? 

If anyone has any kind of a work-around of *any* method of fixing this (perhaps by editing some file in Firefox), it would be greatly appreciated if you could share it, because it looks like this bug is not going to be fixed anytime soon, or at least not in my lifetime.

Updated

12 years ago
Duplicate of this bug: 403825

Comment 37

12 years ago
Ok, I was able to fix it for my installation after reviewing some of the earlier clues and statements, some of which were somewhat cryptic and incomplete.
 
Someone made the comment that if I was really concerned about this problem I should contribute instead of complaining. So, I am now trying to contribute even though my code skills are not too good.

Works fine now.  I don't know why this has been kept a secret for 3 years when the work-around is so easy! I also don't understand why nobody wants to simply fix the underlying code so this is not required, but it looks it is not going to  happen. To me this issue is an embarrassment to the entire group that is fixing the code. I am trying to contribute even though my code skills are not too good.

Simply add the RAR mimetype to the mimetypes.rdf.  This file is located here-- 
harddrive): \Documents and Settings\Administrator\Mozilla\Firefox\Profiles\...??\mimetypes.rdf

Here is the complete file so others can use parts as needed. It is very simple and obvious what to add. 
===================================================================
<?xml version="1.0"?>
<RDF:RDF xmlns:NC="http://home.netscape.com/NC-rdf#"
         xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
  <RDF:Description RDF:about="urn:mimetype:application/x-msdownload"
                   NC:value="application/x-msdownload"
                   NC:editable="true"
                   NC:fileExtensions="exe"
                   NC:description="Application">
    <NC:handlerProp RDF:resource="urn:mimetype:handler:application/x-msdownload"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:mimetype:externalApplication:application/zip"
                   NC:prettyName=""
                   NC:path="" />
<RDF:Description RDF:about="urn:mimetype:externalApplication:application/rar"
                   NC:prettyName=""
                   NC:path="" />
  <RDF:Description RDF:about="urn:mimetype:audio/mpeg"
                   NC:value="audio/mpeg"
                   NC:editable="true"
                   NC:fileExtensions="mp3"
                   NC:description="Winamp media file">
    <NC:handlerProp RDF:resource="urn:mimetype:handler:audio/mpeg"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:mimetype:handler:application/pdf"
                   NC:alwaysAsk="true"
                   NC:saveToDisk="true">
    <NC:externalApplication RDF:resource="urn:mimetype:externalApplication:application/pdf"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:mimetype:handler:application/zip"
                   NC:alwaysAsk="false"
                   NC:useSystemDefault="false"
                   NC:saveToDisk="true">
    <NC:externalApplication RDF:resource="urn:mimetype:externalApplication:application/zip"/>
  </RDF:Description>
<RDF:Description RDF:about="urn:mimetype:handler:application/rar"
                   NC:alwaysAsk="false"
                   NC:useSystemDefault="false"
                   NC:saveToDisk="true">
    <NC:externalApplication RDF:resource="urn:mimetype:externalApplication:application/rar"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:mimetype:application/x-msi"
                   NC:value="application/x-msi"
                   NC:editable="true"
                   NC:fileExtensions="msi"
                   NC:description="Windows Installer Package">
    <NC:handlerProp RDF:resource="urn:mimetype:handler:application/x-msi"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:mimetype:application/zip"
                   NC:fileExtensions="zip"
                   NC:description="WinZip File"
                   NC:value="application/zip"
                   NC:editable="true">
    <NC:handlerProp RDF:resource="urn:mimetype:handler:application/zip"/>
  </RDF:Description>

<RDF:Description RDF:about="urn:mimetype:application/rar"
                   NC:fileExtensions="rar"
                   NC:description="WinRar File"
                   NC:value="application/rar"
                   NC:editable="true">
    <NC:handlerProp RDF:resource="urn:mimetype:handler:application/rar"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:mimetype:externalApplication:application/x-msdownload"
                   NC:prettyName=""
                   NC:path="" />
  <RDF:Description RDF:about="urn:mimetypes">
    <NC:MIME-types RDF:resource="urn:mimetypes:root"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:mimetype:externalApplication:audio/mpeg"
                   NC:prettyName=""
                   NC:path="" />
  <RDF:Description RDF:about="urn:mimetype:externalApplication:application/x-msi"
                   NC:prettyName=""
                   NC:path="" />
  <RDF:Description RDF:about="urn:mimetype:handler:application/x-msi"
                   NC:alwaysAsk="true"
                   NC:saveToDisk="true">
    <NC:externalApplication RDF:resource="urn:mimetype:externalApplication:application/x-msi"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:mimetype:externalApplication:application/pdf"
                   NC:prettyName=""
                   NC:path="" />
  <RDF:Description RDF:about="urn:mimetype:handler:audio/mpeg"
                   NC:alwaysAsk="true"
                   NC:saveToDisk="true">
    <NC:externalApplication RDF:resource="urn:mimetype:externalApplication:audio/mpeg"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:mimetype:handler:application/x-msdownload"
                   NC:alwaysAsk="true"
                   NC:saveToDisk="true">
    <NC:externalApplication RDF:resource="urn:mimetype:externalApplication:application/x-msdownload"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:mimetype:application/pdf"
                   NC:value="application/pdf"
                   NC:editable="true"
                   NC:fileExtensions="pdf"
                   NC:description="PDF Document">
    <NC:handlerProp RDF:resource="urn:mimetype:handler:application/pdf"/>
  </RDF:Description>
  <RDF:Seq RDF:about="urn:mimetypes:root">
    <RDF:li RDF:resource="urn:mimetype:application/zip"/>
    <RDF:li RDF:resource="urn:mimetype:application/rar"/>
    <RDF:li RDF:resource="urn:mimetype:application/x-msdownload"/>
    <RDF:li RDF:resource="urn:mimetype:application/x-msi"/>
    <RDF:li RDF:resource="urn:mimetype:audio/mpeg"/>
    <RDF:li RDF:resource="urn:mimetype:application/pdf"/>
  </RDF:Seq>
</RDF:RDF>
=========================================================

Cheers
Assignee: comrade693+bmo → nobody
Flags: wanted-firefox3+
Flags: blocking-firefox3-
Flags: blocking-firefox3+
Target Milestone: Firefox 3 Mx → Firefox 3 M11

Comment 38

12 years ago
Easiest workaround: click the OK button anyway.  

Same thing happens to me with the OK button being disabled.  Except for some reason (like kicking a dead car), I tried actually clicking the disabled OK button, and voila! it became enabled and worked perfectly.  

Works every time for me on both XP and Vista PCs running Firefox 2.0.0.11. Incidentally, mouseDown seems to be the event that enables the OK button.

Comment 39

12 years ago
OK, I spent the whole afternoon and I FOUND THE FIX :))) I found 2 fixes to be more acurate

the problem is with the FOCUS of the tabs... because Open dialog loses it's focus when new browser tab is opened then regains the focus when that tab is closed but the original tab does not regain the full focus...

here's the solution...

In the address bar type about:config

In the filter bar type TAB

Find this key: browser.tabs.loadDivertedInBackground (default value is FALSE)

Change the value to TRUE (just doubleclick it to change the value)

And VOILA!!!

OK button is not greyed out anymore...

Another fix is more a workaround than a fix...

Go to TOOLS - OPTIONS - Tabs

There is a setting called: New pages should open in
And you have 2 options: "a new tab" or "a new window"

Change the setting so new pages are opened in A NEW WINDOW and OK button is not greyed out anymore... 

but this workaround (with new window) causes a bit longer delay before OPEN FILE DIALOG appears (because new windows opens and it takes more time to open than tab)

I hope it solves you problems...

It solved mine...

CYA!!!

Comment 40

11 years ago
When will this **** irritating bug be resolved for christs sake !?

Comment 41

11 years ago
Hello all,

I experienced this bug using WorldClient (a webMail client that comes with Mdaemon email server) and Firefox 2.0.0.12 on Windows XP. MDaemon can extract attachments from emails, put them in a specified directory and put a http link to the attached file in the email. A very nice feature indeed, also because it means more efficiency.

I experience this bug with links to MS Office files.
To make the OK button available, I have to select any other open window and then go back to the dialog. 

I'm afraid about 40 users will have to go back to IE if this is not going to be fixed.

Regards,

Francis
Reproducible test cases with exact steps to reproduce will greatly improve the odds of this getting fixed.  Not everyone sees this bug, and in fact I have seen it in several months, which makes it darn near impossible to fix.
Priority: P5 → --
Target Milestone: Firefox 3 beta3 → ---

Comment 43

11 years ago
Hello Shawn,

Hope the following will help.

In WorldClient in Firefox, the email content is :
...
Attachments:
(1) labogen-spec0.doc 34816 bytes

The link value of labogen-spec0.doc is:
http://192.168.0.29:3000/Attachments/algo.be-users/m/labogen-spec0.doc

If I click on the link I get a dialog (in French, sorry for my poor translation):
- Dialog title: Opening labogen-spec0.doc
- Dialog content: 
o You have chosen to open 
o   labogen-spec0.doc
o that file type is MS Word document
o from http://192.168.0.29:3000/
o What must do Firefox with this file :
  - Open it with MS Word (default)
  - Save it on disk 
  - check box "Always do..."

THE OK BUTTON OF THE DIALOG IS GRAYED

Thank you, Francis
(In reply to comment #42)
> Reproducible test cases with exact steps to reproduce will greatly improve the
> odds of this getting fixed.  Not everyone sees this bug, and in fact I have
> seen it in several months, which makes it darn near impossible to fix.

sdwilsh, we do have those, take a look at dup bug 266844.

I can check if it's still happening in current trunk.
I take that back.
After checking, STRs from bug 266844 work for me with both FF 2.0.0.12 as well as current trunk.
(In reply to comment #43)
> In WorldClient in Firefox, the email content is :
This test case is, however, useless to anyone outside your company

(In reply to comment #44)
> sdwilsh, we do have those, take a look at dup bug 266844.
Ah, right - that's a really good testcase actually.  Although, the issue described in comment 43 appears to be different since the problem is fixed by changing focus.  This bug, as I understand it, isn't fixed by that.
Flags: wanted1.9.0.x?
(In reply to comment #46)
> Although, the issue
> described in comment 43 appears to be different since the problem is fixed by
> changing focus.  This bug, as I understand it, isn't fixed by that.

Open/save window's OK is disabled when the window doesn't have focus, it's meant to be that way... I can't find the bug for that but it was a security fix.

So, either firebox has no focus in which case it's not a bug (just click on the download dialogue and wait a second or so), or it's another manifestation of focus problems that plague 2.0.0.x.

Or something else, of course.

Comment 48

11 years ago
The download dialog has focus. Click on it doesn't change anything (have to clik on an other window first and then click on the download dialog to make the button available).

Francis
(In reply to comment #48)
> have to
> clik on an other window first and then click on the download dialog to make the
> button available.

If so then this painfully looks like bug 220900. Temporary fix for all focus problems always was to switch somewhere and back.

Comment 50

11 years ago
I am having the same problem, the "Save File" button is not enabled, all you have to do is click on the "Save File" button and it is enabled. The Cancel button is Enabled ok. It appears on .exe, .pdf files etc. one example tonight was downloading from http://www.mediamonkey.com/MediaMonkey_Setup.exe. Firefox v2.0.0.14

Comment 51

11 years ago
Further to the above, clicking on the link directly brings up the Opening xxxx.exe and the Save File is greyed for 1 second then enables to black text. maybe its the way the link to it from the downloads page kicks in? http://www.mediamonkey.com/download.htm and click on CNET Download.  It opens up a new TAB, downloads something, the TAB then closes and the Opening xxx.exe appears with a greyed out Save File button, until I click on the button itself.

Comment 52

11 years ago
The problem I have reported (Comment #41) looks to have been fixed in Firefox 3.0.  Many thanks,
Francis
Product: Firefox → Toolkit
Not sure if this should be wanted or not or we should just wait until 1.9.1.
Flags: wanted1.9.1?
Doesn't seem to be an issue in 3.0 and higher, clearing noms.
Flags: wanted1.9.1?
Flags: wanted1.9.0.x?

Comment 55

10 years ago
http://www.shopping.hp.com/webapp/shopping/product_detail.do?landing=printer&storeName=storefronts&category=Officejet&catLevel=2&product_code=CB092A%23B1H

has a link close to under the printer that says "pdf version of all specs". it is a javascript link and indeed goes to a pdf, but since my ff 3.51 is fresh, adobe reader I guess hasn't registered quite yet.  

a workaround is to click on one of the other radio buttons. the OK or SAVE button will no longer be grayed out.  yes. please fix.  I have customers...
You need to log in before you can comment on or make changes to this bug.