Re: Firefox - gedit is the best!

2013-10-29 Thread Ian Malone
On 29 October 2013 04:47, Tim ignored_mail...@yahoo.com.au wrote:
 On Mon, 2013-10-28 at 22:55 +0100, Mateusz Marzantowicz wrote:
 I don't know it is a correct design in that case. FF doesn't check
 file content and only trusts that HTTP headers are set correctly. But
 it is FF and not Fedora issue anymore.

 And that is how they're supposed to work, and how it really should be
 done, for reasons of sanity.  When you ignore headers, and just pass
 data to browsers to sort out what do with this yourself, things screw
 up, right royally.

 For one thing, it's why Windows is so vulnerable.  Nasty stuff bypasses
 sensible handling, and is allowed to execute, because that's what
 Windows does with binary program files (it executes them).


This isn't an argument for using content type rather than
autodetection, the content type could be manipulated as part of an
attack. What you go on to say about the problem of knowing what you've
got:

 There are any number of different types of files
 (function-wise) that are the same file-type (construction-wise), so they
 need correct identification by what's sending it, as it will be the only
 thing that would correctly know what it is.

This and the general problem of correctly identifying the type of
every data type and version under the sun is the reason to not try and
snoop the data type.

-- 
imalone
http://ibmalone.blogspot.co.uk
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Firefox - gedit is the best!

2013-10-29 Thread Mateusz Marzantowicz
On 29.10.2013 09:17, Ian Malone wrote:
 On 29 October 2013 04:47, Tim ignored_mail...@yahoo.com.au wrote:
 On Mon, 2013-10-28 at 22:55 +0100, Mateusz Marzantowicz wrote:
 I don't know it is a correct design in that case. FF doesn't check
 file content and only trusts that HTTP headers are set correctly. But
 it is FF and not Fedora issue anymore.

 And that is how they're supposed to work, and how it really should be
 done, for reasons of sanity.  When you ignore headers, and just pass
 data to browsers to sort out what do with this yourself, things screw
 up, right royally.

 For one thing, it's why Windows is so vulnerable.  Nasty stuff bypasses
 sensible handling, and is allowed to execute, because that's what
 Windows does with binary program files (it executes them).

 
 This isn't an argument for using content type rather than
 autodetection, the content type could be manipulated as part of an
 attack. What you go on to say about the problem of knowing what you've
 got:
 
 There are any number of different types of files
 (function-wise) that are the same file-type (construction-wise), so they
 need correct identification by what's sending it, as it will be the only
 thing that would correctly know what it is.
 
 This and the general problem of correctly identifying the type of
 every data type and version under the sun is the reason to not try and
 snoop the data type.
 

OK, I know all that argumentation about security but as you've mentioned
HTTP headers could be easily manipulated. Content recognition must be
done somewhere, in that case on web server, in order to set headers
correctly. There always would be need for content inspection. So what is
better: check content on server side or client side? From client
perspective the later is safer because it doesn't have to trust some
remote entity. My sample URL showed that even GitHub isn't perfect and
sets improper headers for some files (or it does it by choice). Finally,
client software and web browsers should not be fragile to miscellaneous
and manipulated content - they just should recognizes it as such.



Mateusz Marzantowicz
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Firefox - gedit is the best!

2013-10-29 Thread Ian Malone
On 29 October 2013 09:07, Mateusz Marzantowicz
mmarzantow...@osdf.com.pl wrote:
 On 29.10.2013 09:17, Ian Malone wrote:
 On 29 October 2013 04:47, Tim ignored_mail...@yahoo.com.au wrote:

 There are any number of different types of files
 (function-wise) that are the same file-type (construction-wise), so they
 need correct identification by what's sending it, as it will be the only
 thing that would correctly know what it is.

 This and the general problem of correctly identifying the type of
 every data type and version under the sun is the reason to not try and
 snoop the data type.


 OK, I know all that argumentation about security but as you've mentioned
 HTTP headers could be easily manipulated. Content recognition must be
 done somewhere, in that case on web server, in order to set headers
 correctly. There always would be need for content inspection. So what is
 better: check content on server side or client side? From client
 perspective the later is safer because it doesn't have to trust some
 remote entity. My sample URL showed that even GitHub isn't perfect and
 sets improper headers for some files (or it does it by choice). Finally,
 client software and web browsers should not be fragile to miscellaneous
 and manipulated content - they just should recognizes it as such.


This is irrelevant, they are two different things: security and the
intended interpretation of the data. Security in this context comes
down to being suspicious that what you get may not be what it claims
to be. The client does not (should not) *trust* the content type. But
the correct application to handle a particular content type is best
placed to decide whether it's genuine, not your web browser. Trying to
read and detect an array of types would open the door to more
vulnerabilities. Scanning for viruses or known attacks is not content
detection in this sense.
As Tim pointed out even just for text you can't trivially tell whether
it should be interpreted as plain text, html, svg, C etc. without
trying to do complex parsing. There is *not* a need for content
detection if the server is working correctly, it should know from
context what it's serving. You've found a bug with github, that's
their issue to fix, not every web browser's to bodge.

-- 
imalone
http://ibmalone.blogspot.co.uk
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Firefox - gedit is the best!

2013-10-29 Thread Ian Malone
On 29 October 2013 10:36, Ian Malone ibmal...@gmail.com wrote:

 As Tim pointed out even just for text you can't trivially tell whether
 it should be interpreted as plain text, html, svg, C etc. without
 trying to do complex parsing. There is *not* a need for content
 detection if the server is working correctly, it should know from
 context what it's serving. You've found a bug with github, that's
 their issue to fix, not every web browser's to bodge.

https://rawgithub.com/
https://rawgithub.com/gammu/gsm-docs/master/standards/3gpp/TP-24/23040-009.doc

-- 
imalone
http://ibmalone.blogspot.co.uk
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Firefox - gedit is the best!

2013-10-29 Thread Tim
Tim:
 For one thing, it's why Windows is so vulnerable.  Nasty stuff
 bypasses sensible handling, and is allowed to execute, because
 that's what Windows does with binary program files (it executes
 them).

Ian Malone:
 This isn't an argument for using content type rather than
 autodetection, the content type could be manipulated as part of an
 attack.

I don't agree that it it's not, but you do mention yet another problem.

An example of what I meant, was Windows being passed data that it says
is a MIDI file.  Windows thinks MIDI is benign, so allows it (likewise
with users that see a MIDI file, and think its safe to double-click on
it).  But rather than palm the data off to a MIDI handling program, like
it should do.  It snoops the file, finds out that it's an executable
binary, and does what it usually does - executes it.  And runs the
attack.

If, on the other hand, it behaved properly, and passed the attacking
binary onto the MIDI player, the MIDI player would have rejected the
file, and no attack would have happened.

This isn't a made up example, by the way.  It was a very common, and
very long-lived, attack vector in HTML spam mail.  One that I used to
see, time and time again, on mailing lists that did inadequate
registration checks, and on usenet.  The usual approach was to try and
include the fake MIDI file as music that was supposed to automatically
play in the background when the message was displayed.  So all a user
had to do was read the message to be attacked.

I can't think of an example in the opposite direction (where obeying the
MIME type declaration would be an exploit).

-- 
[tim@localhost ~]$ uname -rsvp
Linux 3.9.10-100.fc17.x86_64 #1 SMP Sun Jul 14 01:31:27 UTC 2013 x86_64

All mail to my mailbox is automatically deleted, there is no point
trying to privately email me, I will only read messages posted to the
public lists.

George Orwell's '1984' was supposed to be a warning against tyranny, not
a set of instructions for supposedly democratic governments.



-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Firefox - gedit is the best!

2013-10-29 Thread Reindl Harald


Am 28.10.2013 21:53, schrieb Mateusz Marzantowicz:
 On 28.10.2013 21:36, Reindl Harald wrote:
 Part of my FF config regarding file associacion is genuine and was never
 modified. I know I can change this or that, but appropriate entries are
 there ane still don't work correctly.

 It happens only for some servers and files 

 and *why* did you *not* state this in your original post?
 
 because for me it was obvious that when I wrote that despite I have
 CLEAN new profile FF still wants to open doc in gedit. I'll be more
 precise next time.

*some servers and files* is NOT general
and *that* is the difference

 so I guess it might be related to wrong headres but I'm not sure

 so test it to be sure and if it are wrong Content-Type headers
 bale the server-admin or fool who wrote a web-application sending
 wrong headers and in that case the whole thread should not have
 been started at all

 
 I started this thread here to see if anybody else is suffering from this
 problem. I don't know what is the cause of my problem and if I'm the
 only person affected.

so at least provide a sample URL
how should someone know how his FF acts on a specific URL
and if the Contet-Type header is plaintext the behavior is *correct*

 Opening doc and gz files with correct app is something that should work
 on desktop system without much configuration

*some servers and files* is NOT general





signature.asc
Description: OpenPGP digital signature
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Firefox - gedit is the best!

2013-10-29 Thread Reindl Harald


Am 28.10.2013 22:22, schrieb Mateusz Marzantowicz:
 On 28.10.2013 22:14, Reindl Harald wrote:

 so at least provide a sample URL
 
 Here you go:
 https://github.com/gammu/gsm-docs/blob/master/standards/3gpp/TP-24/23040-009.doc?raw=true

here you go: text/plain (last line of the wget-output)
so the behavior is correct, and that is why you should
provide infos while seek for help in the first post

[harry@srv-rhsoft:/downloads]$ wget
https://github.com/gammu/gsm-docs/blob/master/standards/3gpp/TP-24/23040-009.doc?raw=true
--2013-10-28 22:32:57--  
https://github.com/gammu/gsm-docs/blob/master/standards/3gpp/TP-24/23040-009.doc?raw=true
Resolving github.com (github.com)... 192.30.252.129
Connecting to github.com (github.com)|192.30.252.129|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: 
https://github.com/gammu/gsm-docs/raw/master/standards/3gpp/TP-24/23040-009.doc
 [following]
--2013-10-28 22:32:57--  
https://github.com/gammu/gsm-docs/raw/master/standards/3gpp/TP-24/23040-009.doc
Reusing existing connection to github.com:443.
HTTP request sent, awaiting response... 302 Found
Location: 
https://raw.github.com/gammu/gsm-docs/master/standards/3gpp/TP-24/23040-009.doc
 [following]
--2013-10-28 22:32:58--  
https://raw.github.com/gammu/gsm-docs/master/standards/3gpp/TP-24/23040-009.doc
Resolving raw.github.com (raw.github.com)... 185.31.16.133
Connecting to raw.github.com (raw.github.com)|185.31.16.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 251392 (246K) [text/plain]



signature.asc
Description: OpenPGP digital signature
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Firefox - gedit is the best!

2013-10-29 Thread Reindl Harald


Am 28.10.2013 22:58, schrieb Mateusz Marzantowicz:
 On 28.10.2013 22:34, Reindl Harald wrote:


 Am 28.10.2013 22:22, schrieb Mateusz Marzantowicz:
 On 28.10.2013 22:14, Reindl Harald wrote:

 so at least provide a sample URL

 Here you go:
 https://github.com/gammu/gsm-docs/blob/master/standards/3gpp/TP-24/23040-009.doc?raw=true

 here you go: text/plain (last line of the wget-output)
 so the behavior is correct, and that is why you should
 provide infos while seek for help in the first post

 [harry@srv-rhsoft:/downloads]$ wget
 https://github.com/gammu/gsm-docs/blob/master/standards/3gpp/TP-24/23040-009.doc?raw=true
 Resolving raw.github.com (raw.github.com)... 185.31.16.133
 Connecting to raw.github.com (raw.github.com)|185.31.16.133|:443... 
 connected.
 HTTP request sent, awaiting response... 200 OK
 Length: 251392 (246K) [text/plain]

 
 Thank you for your help. It means that content of downloaded file is
 irrelevant for FF.

*otherwise* it would be a bug and the behavior is correct

FF *must not* look in the content
a browser which does is broken in case of a specified mime-type

http://stackoverflow.com/questions/18337630/what-is-x-content-type-options-nosniff
http://msdn.microsoft.com/en-us/library/ie/gg622941%28v=vs.85%29.aspx

blame the idiot which sends text/plain instead application/msword from
the broken web-application and not the messenger




signature.asc
Description: OpenPGP digital signature
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Firefox - gedit is the best!

2013-10-29 Thread Reindl Harald


Am 28.10.2013 23:26, schrieb Mateusz Marzantowicz:
 On 28.10.2013 23:02, Reindl Harald wrote:


 Am 28.10.2013 22:58, schrieb Mateusz Marzantowicz:
 On 28.10.2013 22:34, Reindl Harald wrote:


 Am 28.10.2013 22:22, schrieb Mateusz Marzantowicz:
 On 28.10.2013 22:14, Reindl Harald wrote:

 so at least provide a sample URL

 Here you go:
 https://github.com/gammu/gsm-docs/blob/master/standards/3gpp/TP-24/23040-009.doc?raw=true

 here you go: text/plain (last line of the wget-output)
 so the behavior is correct, and that is why you should
 provide infos while seek for help in the first post

 [harry@srv-rhsoft:/downloads]$ wget
 https://github.com/gammu/gsm-docs/blob/master/standards/3gpp/TP-24/23040-009.doc?raw=true
 Resolving raw.github.com (raw.github.com)... 185.31.16.133
 Connecting to raw.github.com (raw.github.com)|185.31.16.133|:443... 
 connected.
 HTTP request sent, awaiting response... 200 OK
 Length: 251392 (246K) [text/plain]


 Thank you for your help. It means that content of downloaded file is
 irrelevant for FF.

 *otherwise* it would be a bug and the behavior is correct

 FF *must not* look in the content
 a browser which does is broken in case of a specified mime-type

 
 Could you provide some RFC or other standard to back that statement?

*why did you remove the links i posted as example*

http://stackoverflow.com/questions/18337630/what-is-x-content-type-options-nosniff
http://msdn.microsoft.com/en-us/library/ie/gg622941%28v=vs.85%29.aspx

http://en.wikipedia.org/wiki/Content_sniffing

MIME sniffing was, and still is, used by some web browsers, including notably 
Microsoft's Internet Explorer, in an
attempt to help web sites which do not correctly signal the MIME type of web 
content display correctly.

your URL *does* it sends a mime-type!
http://en.wikipedia.org/wiki/MIME_type

https://www.google.at/search?q=mime-sniff
http://www.h-online.com/security/features/Risky-MIME-sniffing-in-Internet-Explorer-746229.html



signature.asc
Description: OpenPGP digital signature
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Firefox - gedit is the best!

2013-10-29 Thread Reindl Harald


Am 29.10.2013 10:07, schrieb Mateusz Marzantowicz:
 On 29.10.2013 09:17, Ian Malone wrote:
 This isn't an argument for using content type rather than
 autodetection, the content type could be manipulated as part of an
 attack.

in that case you are already lost and if the server
had an intrusion and is attacking you be sure sooner
or later someone will attack your local code doing
the mime-sniffing itself

 OK, I know all that argumentation about security but as you've mentioned
 HTTP headers could be easily manipulated.

could they?

only in two cases and in *both* you are already lost

* the server was hacked and is attacking users
* a successful man-in-the-middle

 Content recognition must be done somewhere, in that case on 
 web server, in order to set headers correctly. 

and that is the right place

 There always would be need for content inspection

not on the client except for local saved files

 So what is better: check content on server side or client side?

on the server side - period

 From client perspective the later is safer because it doesn't 
 have to trust some remote entity. 

*lol* if you do not trust the remote entity aka server
how should your client make it safe by magic?

 My sample URL showed that even GitHub isn't perfect and
 sets improper headers for some files (or it does it by choice)

because GitHub and some others are failing in basics does
not mean that the client has to fix their errors

 Finally, client software and web browsers should not be fragile to 
 miscellaneous and manipulated content - they just should recognizes 
 it as such

maybe windows is the solution for this non-existing problem
the majority of users has no problem by some random servers
which are broken, you can *always* save a file and open it
local or in doubt if the server is that broken close the
web-page and go to some trustable source




signature.asc
Description: OpenPGP digital signature
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Firefox - gedit is the best!

2013-10-29 Thread Reindl Harald


Am 29.10.2013 13:30, schrieb Ian Malone:
 On 29 October 2013 10:36, Ian Malone ibmal...@gmail.com wrote:
 
 As Tim pointed out even just for text you can't trivially tell whether
 it should be interpreted as plain text, html, svg, C etc. without
 trying to do complex parsing. There is *not* a need for content
 detection if the server is working correctly, it should know from
 context what it's serving. You've found a bug with github, that's
 their issue to fix, not every web browser's to bodge.
 
 https://rawgithub.com/
 https://rawgithub.com/gammu/gsm-docs/master/standards/3gpp/TP-24/23040-009.doc

fine, that does not explain why they are sending the wrong Content-Type
for the other URL, the one below with raw=true is expected to send
application/msword too instead text/plain

https://github.com/gammu/gsm-docs/blob/master/standards/3gpp/TP-24/23040-009.doc?raw=true

the main question is why someone is starting a thread blaming Firefox
because a broken website and insist in blame Firefox while it was
multiple times explained how the www works and why Linux does handle
htings not the same crippeled way like Windows

if someone wants to have the behavior of Windows/MSIE he is free to
buy, install and use it, the rest of the world continues not to guess
if the mime-type from a server was only a joke - period




signature.asc
Description: OpenPGP digital signature
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Firefox - gedit is the best!

2013-10-29 Thread Mateusz Marzantowicz
On 29.10.2013 13:40, Reindl Harald wrote:
 
 the main question is why someone is starting a thread blaming Firefox
 because a broken website and insist in blame Firefox while it was
 multiple times explained how the www works and why Linux does handle
 htings not the same crippeled way like Windows
 
 if someone wants to have the behavior of Windows/MSIE he is free to
 buy, install and use it, the rest of the world continues not to guess
 if the mime-type from a server was only a joke - period
 

1. That someone is me.

2. I wasn't aware that this is not FF issue when I started this thread.
It was happening with different file types and servers. FF was my fist
shoot. Then you helped me better understand that issue with content type.

3. I don't know why you're so excited when it comes to Windows. It could
have been Mac as well but I use windows more often but still rarely than
Linux. In fact I use Windows so infrequently that I had no chance to
face all that wrong content type issues. I know that now.

4. I don't insist in blaming any software, you're exaggerating.

5. I don't know what is the behavior of MSIE because I don't use it. You
gave me link that pointed me to MSDN and MSIE related article.

PERIOD :-)



Mateusz Marzantowicz
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Firefox - gedit is the best!

2013-10-28 Thread Sam Varshavchik

Mateusz Marzantowicz writes:


Why, Firefox on Fedora 19 wants to open all different sort of files of
well known types with gedit?


Dunno. Mine doesn't.


 It's ridiculous that torrent files, zip and
gz archives and even doc file are suggested to be opened with gedit.


Agreed. Quite a preposterous proposition.


Creating new FF profile doesn't resolve this issue. Is it that hard to
recognize file type and open it with correct application?


No, it's not.


Now, you can slaughter me but Firefox on Windows suggests apps correctly
so it's more likely Fedora related bug.


Well, maybe, if you call blowing away /usr/share/misc/magic a bug, rather  
than an accident. That would be one way to end up in a similar situation.  
I'm sure there are other ways for this to be screwed up, also.



Any way to fix it?


I'm sure there is. But unless you expect someone to hack into your machine,  
and figure out what your problem is, the only one who can fix this would be  
you.





pgpQjExu48Vif.pgp
Description: PGP signature
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Firefox - gedit is the best!

2013-10-28 Thread Michael Cronenworth

Mateusz Marzantowicz wrote:

Why, Firefox on Fedora 19 wants to open all different sort of files of
well known types with gedit? It's ridiculous that torrent files, zip and
gz archives and even doc file are suggested to be opened with gedit.

Creating new FF profile doesn't resolve this issue. Is it that hard to
recognize file type and open it with correct application?

Now, you can slaughter me but Firefox on Windows suggests apps correctly
so it's more likely Fedora related bug.

Any way to fix it?


Open Firefox Preferences. Click on Applications.
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Firefox - gedit is the best!

2013-10-28 Thread Michael Hennebry

On Mon, 28 Oct 2013, Sam Varshavchik wrote:


Mateusz Marzantowicz writes:



Any way to fix it?


I'm sure there is. But unless you expect someone to hack into your machine, 
and figure out what your problem is, the only one who can fix this would be 
you.


Michael Cronenworth had a better response.

--
Michael   henne...@web.cs.ndsu.nodak.edu
On Monday, I'm gonna have to tell my kindergarten class,
whom I teach not to run with scissors,
that my fiance ran me through with a broadsword.  --  Lily
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Firefox - gedit is the best!

2013-10-28 Thread Mateusz Marzantowicz
On 28.10.2013 16:35, Michael Cronenworth wrote:
 Mateusz Marzantowicz wrote:
 Why, Firefox on Fedora 19 wants to open all different sort of files of
 well known types with gedit? It's ridiculous that torrent files, zip and
 gz archives and even doc file are suggested to be opened with gedit.

 Creating new FF profile doesn't resolve this issue. Is it that hard to
 recognize file type and open it with correct application?

 Now, you can slaughter me but Firefox on Windows suggests apps correctly
 so it's more likely Fedora related bug.

 Any way to fix it?
 
 Open Firefox Preferences. Click on Applications.

Is it the best you can do? If you don't know how to help, please don't
write such useless responses.

Part of my FF config regarding file associacion is genuine and was never
modified. I know I can change this or that, but appropriate entries are
there ane still don't work correctly.

It happens only for some servers and files so I guess it might be
related to wrong headres but I'm not sure.



Mateusz Marzantowicz
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Firefox - gedit is the best!

2013-10-28 Thread Reindl Harald


Am 28.10.2013 21:30, schrieb Mateusz Marzantowicz:
 On 28.10.2013 16:35, Michael Cronenworth wrote:
 Mateusz Marzantowicz wrote:
 Why, Firefox on Fedora 19 wants to open all different sort of files of
 well known types with gedit? It's ridiculous that torrent files, zip and
 gz archives and even doc file are suggested to be opened with gedit.

 Creating new FF profile doesn't resolve this issue. Is it that hard to
 recognize file type and open it with correct application?

 Now, you can slaughter me but Firefox on Windows suggests apps correctly
 so it's more likely Fedora related bug.

 Any way to fix it?

 Open Firefox Preferences. Click on Applications.
 
 Is it the best you can do? If you don't know how to help, please don't
 write such useless responses.
 
 Part of my FF config regarding file associacion is genuine and was never
 modified. I know I can change this or that, but appropriate entries are
 there ane still don't work correctly.
 
 It happens only for some servers and files 

and *why* did you *not* state this in your original post?

 so I guess it might be related to wrong headres but I'm not sure

so test it to be sure and if it are wrong Content-Type headers
bale the server-admin or fool who wrote a web-application sending
wrong headers and in that case the whole thread should not have
been started at all





signature.asc
Description: OpenPGP digital signature
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Firefox - gedit is the best!

2013-10-28 Thread Mateusz Marzantowicz
On 28.10.2013 21:36, Reindl Harald wrote:
 
 
 Am 28.10.2013 21:30, schrieb Mateusz Marzantowicz:
 On 28.10.2013 16:35, Michael Cronenworth wrote:
 Mateusz Marzantowicz wrote:
 Why, Firefox on Fedora 19 wants to open all different sort of files of
 well known types with gedit? It's ridiculous that torrent files, zip and
 gz archives and even doc file are suggested to be opened with gedit.

 Creating new FF profile doesn't resolve this issue. Is it that hard to
 recognize file type and open it with correct application?

 Now, you can slaughter me but Firefox on Windows suggests apps correctly
 so it's more likely Fedora related bug.

 Any way to fix it?

 Open Firefox Preferences. Click on Applications.

 Is it the best you can do? If you don't know how to help, please don't
 write such useless responses.

 Part of my FF config regarding file associacion is genuine and was never
 modified. I know I can change this or that, but appropriate entries are
 there ane still don't work correctly.

 It happens only for some servers and files 
 
 and *why* did you *not* state this in your original post?

because for me it was obvious that when I wrote that despite I have
CLEAN new profile FF still wants to open doc in gedit. I'll be more
precise next time.

 
 so I guess it might be related to wrong headres but I'm not sure
 
 so test it to be sure and if it are wrong Content-Type headers
 bale the server-admin or fool who wrote a web-application sending
 wrong headers and in that case the whole thread should not have
 been started at all
 
 

I started this thread here to see if anybody else is suffering from this
problem. I don't know what is the cause of my problem and if I'm the
only person affected.

Opening doc and gz files with correct app is something that should work
on desktop system without much configuration.



Mateusz Marzantowicz
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Firefox - gedit is the best!

2013-10-28 Thread Mateusz Marzantowicz
On 28.10.2013 22:14, Reindl Harald wrote:
 
 so at least provide a sample URL

Here you go:
https://github.com/gammu/gsm-docs/blob/master/standards/3gpp/TP-24/23040-009.doc?raw=true



Mateusz Marzantowicz
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Firefox - gedit is the best!

2013-10-28 Thread bruce
for me that comes up with asking to save or open with gedit..
although, i assume there's a config attribute to point to the app i'd
like to have open the file... i'm running ff24..



On Mon, Oct 28, 2013 at 5:22 PM, Mateusz Marzantowicz
mmarzantow...@osdf.com.pl wrote:
 On 28.10.2013 22:14, Reindl Harald wrote:

 so at least provide a sample URL

 Here you go:
 https://github.com/gammu/gsm-docs/blob/master/standards/3gpp/TP-24/23040-009.doc?raw=true



 Mateusz Marzantowicz
 --
 users mailing list
 users@lists.fedoraproject.org
 To unsubscribe or change subscription options:
 https://admin.fedoraproject.org/mailman/listinfo/users
 Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
 Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 Have a question? Ask away: http://ask.fedoraproject.org
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Firefox - gedit is the best!

2013-10-28 Thread Erik P. Olsen

On 28/10/13 22:22, Mateusz Marzantowicz wrote:

On 28.10.2013 22:14, Reindl Harald wrote:


so at least provide a sample URL


Here you go:
https://github.com/gammu/gsm-docs/blob/master/standards/3gpp/TP-24/23040-009.doc?raw=true


Whether you like it or not FF doesn't recognise doc files (see Edit - 
Preferences - Applications) it asks you what to do. You can then look up 
libreoffice and the doc will display correctly. Admittedly it IS cumbersome but 
I believe FF works as designed.


--
Erik
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Firefox - gedit is the best!

2013-10-28 Thread Mateusz Marzantowicz
On 28.10.2013 22:44, Erik P. Olsen wrote:
 On 28/10/13 22:22, Mateusz Marzantowicz wrote:
 On 28.10.2013 22:14, Reindl Harald wrote:

 so at least provide a sample URL

 Here you go:
 https://github.com/gammu/gsm-docs/blob/master/standards/3gpp/TP-24/23040-009.doc?raw=true

 
 Whether you like it or not FF doesn't recognise doc files (see Edit -
 Preferences - Applications) it asks you what to do. You can then look
 up libreoffice and the doc will display correctly. Admittedly it IS
 cumbersome but I believe FF works as designed.
 

Thanks,

I don't know it is a correct design in that case. FF doesn't check file
content and only trusts that HTTP headers are set correctly. But it is
FF and not Fedora issue anymore.


Mateusz Marzantowicz
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Firefox - gedit is the best!

2013-10-28 Thread Mateusz Marzantowicz
On 28.10.2013 22:34, Reindl Harald wrote:
 
 
 Am 28.10.2013 22:22, schrieb Mateusz Marzantowicz:
 On 28.10.2013 22:14, Reindl Harald wrote:

 so at least provide a sample URL

 Here you go:
 https://github.com/gammu/gsm-docs/blob/master/standards/3gpp/TP-24/23040-009.doc?raw=true
 
 here you go: text/plain (last line of the wget-output)
 so the behavior is correct, and that is why you should
 provide infos while seek for help in the first post
 
 [harry@srv-rhsoft:/downloads]$ wget
 https://github.com/gammu/gsm-docs/blob/master/standards/3gpp/TP-24/23040-009.doc?raw=true
 --2013-10-28 22:32:57--  
 https://github.com/gammu/gsm-docs/blob/master/standards/3gpp/TP-24/23040-009.doc?raw=true
 Resolving github.com (github.com)... 192.30.252.129
 Connecting to github.com (github.com)|192.30.252.129|:443... connected.
 HTTP request sent, awaiting response... 302 Found
 Location: 
 https://github.com/gammu/gsm-docs/raw/master/standards/3gpp/TP-24/23040-009.doc
  [following]
 --2013-10-28 22:32:57--  
 https://github.com/gammu/gsm-docs/raw/master/standards/3gpp/TP-24/23040-009.doc
 Reusing existing connection to github.com:443.
 HTTP request sent, awaiting response... 302 Found
 Location: 
 https://raw.github.com/gammu/gsm-docs/master/standards/3gpp/TP-24/23040-009.doc
  [following]
 --2013-10-28 22:32:58--  
 https://raw.github.com/gammu/gsm-docs/master/standards/3gpp/TP-24/23040-009.doc
 Resolving raw.github.com (raw.github.com)... 185.31.16.133
 Connecting to raw.github.com (raw.github.com)|185.31.16.133|:443... connected.
 HTTP request sent, awaiting response... 200 OK
 Length: 251392 (246K) [text/plain]
 

Thank you for your help. It means that content of downloaded file is
irrelevant for FF.



Mateusz Marzantowicz
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Firefox - gedit is the best!

2013-10-28 Thread Michael Hennebry

On Mon, 28 Oct 2013, Mateusz Marzantowicz wrote:


I don't know it is a correct design in that case. FF doesn't check file
content and only trusts that HTTP headers are set correctly. But it is
FF and not Fedora issue anymore.


Sometimes that is what one wants, e.g. an HTML or postscript file.
Either could be regarded as plain text or as something to process.
That is what the HTTP headers are for.

What annoys me are text files labeled binary/application.

--
Michael   henne...@web.cs.ndsu.nodak.edu
On Monday, I'm gonna have to tell my kindergarten class,
whom I teach not to run with scissors,
that my fiance ran me through with a broadsword.  --  Lily
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Firefox - gedit is the best!

2013-10-28 Thread Mateusz Marzantowicz
On 28.10.2013 23:02, Reindl Harald wrote:
 
 
 Am 28.10.2013 22:58, schrieb Mateusz Marzantowicz:
 On 28.10.2013 22:34, Reindl Harald wrote:


 Am 28.10.2013 22:22, schrieb Mateusz Marzantowicz:
 On 28.10.2013 22:14, Reindl Harald wrote:

 so at least provide a sample URL

 Here you go:
 https://github.com/gammu/gsm-docs/blob/master/standards/3gpp/TP-24/23040-009.doc?raw=true

 here you go: text/plain (last line of the wget-output)
 so the behavior is correct, and that is why you should
 provide infos while seek for help in the first post

 [harry@srv-rhsoft:/downloads]$ wget
 https://github.com/gammu/gsm-docs/blob/master/standards/3gpp/TP-24/23040-009.doc?raw=true
 Resolving raw.github.com (raw.github.com)... 185.31.16.133
 Connecting to raw.github.com (raw.github.com)|185.31.16.133|:443... 
 connected.
 HTTP request sent, awaiting response... 200 OK
 Length: 251392 (246K) [text/plain]


 Thank you for your help. It means that content of downloaded file is
 irrelevant for FF.
 
 *otherwise* it would be a bug and the behavior is correct
 
 FF *must not* look in the content
 a browser which does is broken in case of a specified mime-type
 

Could you provide some RFC or other standard to back that statement?


Mateusz Marzantowicz

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Firefox - gedit is the best!

2013-10-28 Thread Ian Malone
On 28 October 2013 22:26, Mateusz Marzantowicz
mmarzantow...@osdf.com.pl wrote:
 On 28.10.2013 23:02, Reindl Harald wrote:


 Am 28.10.2013 22:58, schrieb Mateusz Marzantowicz:


 Thank you for your help. It means that content of downloaded file is
 irrelevant for FF.

 *otherwise* it would be a bug and the behavior is correct

 FF *must not* look in the content
 a browser which does is broken in case of a specified mime-type


 Could you provide some RFC or other standard to back that statement?


If you think about it rationally, if the mime type is specified, but
the browser still reads the data to guess (on the basis it knows
better) then it's just ignoring the mime type and the system is
pointless.

But if you want an RFC:

http://www.w3.org/Protocols/rfc2616/rfc2616-sec7.html#sec7.2.1
Any HTTP/1.1 message containing an entity-body SHOULD include a
Content-Type header field defining the media type of that body. If and
only if the media type is not given by a Content-Type field, the
recipient MAY attempt to guess the media type via inspection of its
content and/or the name extension(s) of the URI used to identify the
resource. If the media type remains unknown, the recipient SHOULD
treat it as type application/octet-stream.

This actually covers another post too:
Michael Hennebry:
 What annoys me are text files labeled binary/application
In some of those cases it may simply be unlabelled. But I do find it
pretty annoying when it happens too, seems quite common for email
attachments from Outlook users, you ask to be sent a plain text file
and when you get it you end up having to save before opening.

-- 
imalone
http://ibmalone.blogspot.co.uk
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Firefox - gedit is the best!

2013-10-28 Thread Joe Zeff

On 10/28/2013 02:22 PM, Mateusz Marzantowicz wrote:

Here you go:
https://github.com/gammu/gsm-docs/blob/master/standards/3gpp/TP-24/23040-009.doc?raw=true


I use Xfce, and it wanted to use Leafpad because it was described as a 
plain-text document.

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Firefox - gedit is the best!

2013-10-28 Thread Tim
On Mon, 2013-10-28 at 22:55 +0100, Mateusz Marzantowicz wrote:
 I don't know it is a correct design in that case. FF doesn't check
 file content and only trusts that HTTP headers are set correctly. But
 it is FF and not Fedora issue anymore. 

And that is how they're supposed to work, and how it really should be
done, for reasons of sanity.  When you ignore headers, and just pass
data to browsers to sort out what do with this yourself, things screw
up, right royally.

For one thing, it's why Windows is so vulnerable.  Nasty stuff bypasses
sensible handling, and is allowed to execute, because that's what
Windows does with binary program files (it executes them).

But ignoring Windows stupidity, the same situation applies for other
operating systems.  The *server* must tell you what sort of data you're
being handed.  There are any number of different types of files
(function-wise) that are the same file-type (construction-wise), so they
need correct identification by what's sending it, as it will be the only
thing that would correctly know what it is.

There's a plethora of files that are just plain text, but not all of
them should be opened by a text editor.  And there are a plethora of
files that are some sort of binary, many more different types than we're
going to be able to list, or even know about.  But you can't arbitrarily
have your web browser palm them off to the same application, because
it'll be the wrong one to use for an awful lot of them.

e.g. If you're one of those people who decide to let your PDF reader
have all the unidentified binary files, because you keep getting PDF
files that save instead of load, your PDF reader is also going to asked
to load other unidentified binary files, and are not PDF files.

Having said that, if you want the brain-dead Windows method of handling
unidentified data, set your default binary/octet-stream handler (that's
the generic identifier for this is some kind of binary file that I
haven't a clue about), to palm off those files to something like
gnome-open, which does snoop into the file to try and identify it (or
whatever handler has replaced gnome-open in newer Gnome releases, or
other-than-gnome desktops).

It's a bit more successful at doing that than Windows.  But, yes, it
will get it wrong, too.  And sometimes you're going to have to abort
what it tries to do, then download and save the file, and sort it out by
hand.

-- 
[tim@localhost ~]$ uname -rsvp
Linux 3.9.10-100.fc17.x86_64 #1 SMP Sun Jul 14 01:31:27 UTC 2013 x86_64

All mail to my mailbox is automatically deleted, there is no point
trying to privately email me, I will only read messages posted to the
public lists.

George Orwell's '1984' was supposed to be a warning against tyranny, not
a set of instructions for supposedly democratic governments.



-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Firefox - gedit is the best!

2013-10-28 Thread Martin S
On Monday, October 28, 2013 10:43:14 PM Ian Malone wrote:
 In some of those cases it may simply be unlabelled. But I do find it
 pretty annoying when it happens too, seems quite common for email
 attachments from Outlook users, you ask to be sent a plain text file
 and when you get it you end up having to save before opening.

Ah, that would explain what happens some times at work. Good to know.

/Martin S

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org