Re: [freenet-support] Strange behavior of the MIME type detection

2009-10-30 Thread Dsoslglece

Hi,

Just trying to get into Freenet index I got this message and was asked 
to forward it to the developers, so here it is:



Erreur interne : merci de prévenir les développeurs

java.lang.NoSuchMethodError: java.lang.String.isEmpty()Z
at 
freenet.clients.http.filter.CSSTokenizerFilter$CSSPropertyVerifier.recursiveParserExpressionVerifier(CSSTokenizerFilter.java:3308)
at 
freenet.clients.http.filter.CSSTokenizerFilter$CSSPropertyVerifier.checkValidity(CSSTokenizerFilter.java:3237)
at 
freenet.clients.http.filter.CSSTokenizerFilter$CSSPropertyVerifier.checkValidity(CSSTokenizerFilter.java:3084)
at 
freenet.clients.http.filter.CSSTokenizerFilter$CSSPropertyVerifier.recursiveVariableOccuranceVerifier(CSSTokenizerFilter.java:3477)
at 
freenet.clients.http.filter.CSSTokenizerFilter$CSSPropertyVerifier.recursiveParserExpressionVerifier(CSSTokenizerFilter.java:3397)
at 
freenet.clients.http.filter.CSSTokenizerFilter$CSSPropertyVerifier.checkValidity(CSSTokenizerFilter.java:3237)
at 
freenet.clients.http.filter.CSSTokenizerFilter.verifyToken(CSSTokenizerFilter.java:989)
at 
freenet.clients.http.filter.CSSTokenizerFilter.parse(CSSTokenizerFilter.java:1960)
at 
freenet.clients.http.filter.HTMLFilter.sanitizeStyle(HTMLFilter.java:2123)
at 
freenet.clients.http.filter.HTMLFilter$StyleTagVerifier.processStyle(HTMLFilter.java:1528)
at 
freenet.clients.http.filter.HTMLFilter$ScriptStyleTagVerifier.finish(HTMLFilter.java:1470)
at 
freenet.clients.http.filter.HTMLFilter$ScriptStyleTagVerifier.sanitizeHash(HTMLFilter.java:1449)
at 
freenet.clients.http.filter.HTMLFilter$TagVerifier.sanitize(HTMLFilter.java:1326)
at 
freenet.clients.http.filter.HTMLFilter$ParsedTag.sanitize(HTMLFilter.java:641)
at 
freenet.clients.http.filter.HTMLFilter.processTag(HTMLFilter.java:506)
at 
freenet.clients.http.filter.HTMLFilter$HTMLParseContext.run(HTMLFilter.java:274)
at 
freenet.clients.http.filter.HTMLFilter.readFilter(HTMLFilter.java:76)
at 
freenet.clients.http.filter.ContentFilter.filter(ContentFilter.java:201)
at 
freenet.clients.http.FProxyToadlet.handleDownload(FProxyToadlet.java:149)
at 
freenet.clients.http.FProxyToadlet.handleMethodGET(FProxyToadlet.java:708)

at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:592)
at 
freenet.clients.http.ToadletContextImpl.handle(ToadletContextImpl.java:504)
at 
freenet.clients.http.SimpleToadletServer$SocketHandler.run(SimpleToadletServer.java:751)
at 
freenet.support.PooledExecutor$MyThread.realRun(PooledExecutor.java:227)

at freenet.support.io.NativeThread.run(NativeThread.java:101)


___
Support mailing list
Support@freenetproject.org
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://emu.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:support-requ...@freenetproject.org?subject=unsubscribe

Re: [freenet-support] Strange behavior of the MIME type detection

2009-10-29 Thread Evan Daniel
On Thu, Oct 29, 2009 at 6:51 AM, henri godron  wrote:
> I wanted to ask something, I think it is related : Do you see, sometime when
> downloading a file (like a .zip or .png for example) fproxy telling you that
> the file is .zip.bin or .png.bin with an unknown mime type ?
> Can someone try with this file please ? It's a new one, I had it from fms..
>
> c...@soksfw9pa0eswrfpbmfredzpqofwki2a98etiwryfvy,MYbngaOGBPcqAHOfB0QAAVIj05Lh7N4iTMcYu15FOI,AAIC--8/20percent.png
>
> I have an error on this file and fproxy is saying it's percent.png.bin !
>
> Does it do the same for you guys ?

It's helpful to include the error :)

I get "Failed to decode a block: Crypto key too short".  That means
exactly what it sounds like: the crypto key is shorter than it should
be.  It only has 42 characters; it should have 43.  That almost
certainly means someone messed up when copy/pasting the key.

Evan Daniel
___
Support mailing list
Support@freenetproject.org
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://emu.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:support-requ...@freenetproject.org?subject=unsubscribe


Re: [freenet-support] Strange behavior of the MIME type detection

2009-10-29 Thread henri godron
I wanted to ask something, I think it is related : Do you see, sometime when
downloading a file (like a .zip or .png for example) fproxy telling you that
the file is .zip.bin or .png.bin with an unknown mime type ?
Can someone try with this file please ? It's a new one, I had it from fms..

c...@soksfw9pa0eswrfpbmfredzpqofwki2a98etiwryfvy
,MYbngaOGBPcqAHOfB0QAAVIj05Lh7N4iTMcYu15FOI,AAIC--8/20percent.png

I have an error on this file and fproxy is saying it's percent.png.bin !

Does it do the same for you guys ?


On Tue, Oct 27, 2009 at 3:58 PM, henri godron  wrote:

> Ok, I knew all of that but I was just testing. Btw thanks for reminding me
> :)
>
> To keep on the initial problem, I looked at the source code and it seems
> that yes, we look at the file extensions to know the mime type. So there is
> a bug somewhere about that. I don't know exactly where, when I have time
> I'll have a look.
>
>
>
>
> On Tue, Oct 27, 2009 at 3:43 PM, Evan Daniel  wrote:
>
>> On Tue, Oct 27, 2009 at 6:11 AM, henri godron  wrote:
>> > Hi everyone,
>> >
>> > I splitted a file into many .rar files and there is something strange in
>> the
>> > mime type decetion when inserting the files in my node.
>> > Most of them are being re-compressed (because their mime type is not
>> > detected as being a compressed file) and some others are being
>> recognized
>> > correctly as rar file types.
>> >
>> > I guess this is a known behavior and i suppose the node is trying to
>> guess
>> > the mime type not by using the extension but by opening the file and
>> trying
>> > to 'understand' ?
>> >
>> > Maybe it's a bug, I don't know, so I'm still posting this here.. Who
>> knows !
>> > I tried to have a look at the code but I have no time right now..
>>
>> In general, you shouldn't do that; just insert the single large file.
>> It will be more reliable that way.
>>
>> Internally, Freenet splits the file into 32kB chunks, regardless of
>> starting size.  It then adds extra chunks for redundancy.  The details
>> are a little complicated, but a small portion of each file will have
>> reduced redundancy.  So not only does splitting the file make more
>> work for other people when they have to reassemble it, it means that
>> instead of one reduced-redundancy section there is one per piece.  The
>> result is that if any of the low-redundancy sections fail, your
>> downloaders will be unable to reassemble the whole file.
>>
>> (Internally, there are a couple different issues present.  They're all
>> on the list of things to fix, some at higher priority than others.)
>>
>> Evan Daniel
>> ___
>> Support mailing list
>> Support@freenetproject.org
>> http://news.gmane.org/gmane.network.freenet.support
>> Unsubscribe at
>> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/support
>> Or mailto:support-requ...@freenetproject.org?subject=unsubscribe
>>
>
>
>
> --
> 
> Henri Godron
> Utilisez Freenet : http://freenetproject.org
> Utilisez TOR : http://www.torproject.org/index.html.fr
>
>
>


-- 

Henri Godron
Utilisez Freenet : http://freenetproject.org
Utilisez TOR : http://www.torproject.org/index.html.fr
___
Support mailing list
Support@freenetproject.org
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://emu.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:support-requ...@freenetproject.org?subject=unsubscribe

Re: [freenet-support] Strange behavior of the MIME type detection

2009-10-27 Thread henri godron
Ok, I knew all of that but I was just testing. Btw thanks for reminding me
:)

To keep on the initial problem, I looked at the source code and it seems
that yes, we look at the file extensions to know the mime type. So there is
a bug somewhere about that. I don't know exactly where, when I have time
I'll have a look.



On Tue, Oct 27, 2009 at 3:43 PM, Evan Daniel  wrote:

> On Tue, Oct 27, 2009 at 6:11 AM, henri godron  wrote:
> > Hi everyone,
> >
> > I splitted a file into many .rar files and there is something strange in
> the
> > mime type decetion when inserting the files in my node.
> > Most of them are being re-compressed (because their mime type is not
> > detected as being a compressed file) and some others are being recognized
> > correctly as rar file types.
> >
> > I guess this is a known behavior and i suppose the node is trying to
> guess
> > the mime type not by using the extension but by opening the file and
> trying
> > to 'understand' ?
> >
> > Maybe it's a bug, I don't know, so I'm still posting this here.. Who
> knows !
> > I tried to have a look at the code but I have no time right now..
>
> In general, you shouldn't do that; just insert the single large file.
> It will be more reliable that way.
>
> Internally, Freenet splits the file into 32kB chunks, regardless of
> starting size.  It then adds extra chunks for redundancy.  The details
> are a little complicated, but a small portion of each file will have
> reduced redundancy.  So not only does splitting the file make more
> work for other people when they have to reassemble it, it means that
> instead of one reduced-redundancy section there is one per piece.  The
> result is that if any of the low-redundancy sections fail, your
> downloaders will be unable to reassemble the whole file.
>
> (Internally, there are a couple different issues present.  They're all
> on the list of things to fix, some at higher priority than others.)
>
> Evan Daniel
> ___
> Support mailing list
> Support@freenetproject.org
> http://news.gmane.org/gmane.network.freenet.support
> Unsubscribe at
> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/support
> Or mailto:support-requ...@freenetproject.org?subject=unsubscribe
>



-- 

Henri Godron
Utilisez Freenet : http://freenetproject.org
Utilisez TOR : http://www.torproject.org/index.html.fr
___
Support mailing list
Support@freenetproject.org
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://emu.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:support-requ...@freenetproject.org?subject=unsubscribe

Re: [freenet-support] Strange behavior of the MIME type detection

2009-10-27 Thread Evan Daniel
On Tue, Oct 27, 2009 at 6:11 AM, henri godron  wrote:
> Hi everyone,
>
> I splitted a file into many .rar files and there is something strange in the
> mime type decetion when inserting the files in my node.
> Most of them are being re-compressed (because their mime type is not
> detected as being a compressed file) and some others are being recognized
> correctly as rar file types.
>
> I guess this is a known behavior and i suppose the node is trying to guess
> the mime type not by using the extension but by opening the file and trying
> to 'understand' ?
>
> Maybe it's a bug, I don't know, so I'm still posting this here.. Who knows !
> I tried to have a look at the code but I have no time right now..

In general, you shouldn't do that; just insert the single large file.
It will be more reliable that way.

Internally, Freenet splits the file into 32kB chunks, regardless of
starting size.  It then adds extra chunks for redundancy.  The details
are a little complicated, but a small portion of each file will have
reduced redundancy.  So not only does splitting the file make more
work for other people when they have to reassemble it, it means that
instead of one reduced-redundancy section there is one per piece.  The
result is that if any of the low-redundancy sections fail, your
downloaders will be unable to reassemble the whole file.

(Internally, there are a couple different issues present.  They're all
on the list of things to fix, some at higher priority than others.)

Evan Daniel
___
Support mailing list
Support@freenetproject.org
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://emu.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:support-requ...@freenetproject.org?subject=unsubscribe


Re: [freenet-support] Strange behavior of the MIME type detection

2009-10-27 Thread VolodyA! V Anarhist
henri godron пишет:
> All the files where .rar files.
> Example : daemon4304-lite.part103.rar
> 
> That's why it is weird...

I found that every so often when the computer is busy the node keeps the 
default 
mime for the file even when there is clearly identifiable or specified mime 
type. Try reinserting one of the files with the incorrect (non-rar) mime and 
see 
if it will miraculously get identified.

 - Volodya

> On Tue, Oct 27, 2009 at 11:30 AM,  > wrote:
> 
> As far as I know the node uses the file extension to guess the file
> type.
> You said you compressed into many rar files, what are the file
> extensions?
> 
> Is it possible that the node guesses .rar files correctly, but fails
> with .r00, .r01, ... ?
> This would explain what you see...
> 
> 
> On Tue, Oct 27, 2009 at 11:11, henri godron  > wrote:
>  > Hi everyone,
>  >
>  > I splitted a file into many .rar files and there is something
> strange in the
>  > mime type decetion when inserting the files in my node.
>  > Most of them are being re-compressed (because their mime type is not
>  > detected as being a compressed file) and some others are being
> recognized
>  > correctly as rar file types.
>  >
>  > I guess this is a known behavior and i suppose the node is trying
> to guess
>  > the mime type not by using the extension but by opening the file
> and trying
>  > to 'understand' ?
>  >
>  > Maybe it's a bug, I don't know, so I'm still posting this here..
> Who knows !
>  > I tried to have a look at the code but I have no time right now..
>  >
>  > Cya
>  >
>  > --
>  > 
>  > Henri Godron
>  > Utilisez Freenet : http://freenetproject.org
>  > Utilisez TOR : http://www.torproject.org/index.html.fr
>  >
>  >
>  >
>  > ___
>  > Support mailing list
>  > Support@freenetproject.org 
>  > http://news.gmane.org/gmane.network.freenet.support
>  > Unsubscribe at
>  > http://emu.freenetproject.org/cgi-bin/mailman/listinfo/support
>  > Or mailto:support-requ...@freenetproject.org
> ?subject=unsubscribe
>  >
> 
> 
> 
> --
> __
> GnuPG key:   (0x48DBFA8A)
> Keyserver:   pgpkeys.pca.dfn.de 
> Fingerprint:
> 477D F057 1BD4 1AE7 8A54 8679 6690 E2EC 48DB FA8A
> __
> ___
> Support mailing list
> Support@freenetproject.org 
> http://news.gmane.org/gmane.network.freenet.support
> Unsubscribe at
> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/support
> Or mailto:support-requ...@freenetproject.org
> ?subject=unsubscribe
> 
> 
> 
> 
> -- 
> 
> Henri Godron
> Utilisez Freenet : http://freenetproject.org
> Utilisez TOR : http://www.torproject.org/index.html.fr
> 
> 
> 
> 
> 
> ___
> Support mailing list
> Support@freenetproject.org
> http://news.gmane.org/gmane.network.freenet.support
> Unsubscribe at http://emu.freenetproject.org/cgi-bin/mailman/listinfo/support
> Or mailto:support-requ...@freenetproject.org?subject=unsubscribe


-- 
http://freedom.libsyn.com/ Echo of Freedom, Radical Podcast
http://www.freedomporn.org/Freedom Porn, anarchist and activist smut

  "None of us are free until all of us are free."~ Mihail Bakunin
___
Support mailing list
Support@freenetproject.org
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://emu.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:support-requ...@freenetproject.org?subject=unsubscribe

Re: [freenet-support] Strange behavior of the MIME type detection

2009-10-27 Thread henri godron
All the files where .rar files.
Example : daemon4304-lite.part103.rar

That's why it is weird...


On Tue, Oct 27, 2009 at 11:30 AM,  wrote:

> As far as I know the node uses the file extension to guess the file type.
> You said you compressed into many rar files, what are the file extensions?
>
> Is it possible that the node guesses .rar files correctly, but fails
> with .r00, .r01, ... ?
> This would explain what you see...
>
>
> On Tue, Oct 27, 2009 at 11:11, henri godron  wrote:
> > Hi everyone,
> >
> > I splitted a file into many .rar files and there is something strange in
> the
> > mime type decetion when inserting the files in my node.
> > Most of them are being re-compressed (because their mime type is not
> > detected as being a compressed file) and some others are being recognized
> > correctly as rar file types.
> >
> > I guess this is a known behavior and i suppose the node is trying to
> guess
> > the mime type not by using the extension but by opening the file and
> trying
> > to 'understand' ?
> >
> > Maybe it's a bug, I don't know, so I'm still posting this here.. Who
> knows !
> > I tried to have a look at the code but I have no time right now..
> >
> > Cya
> >
> > --
> > 
> > Henri Godron
> > Utilisez Freenet : http://freenetproject.org
> > Utilisez TOR : http://www.torproject.org/index.html.fr
> >
> >
> >
> > ___
> > Support mailing list
> > Support@freenetproject.org
> > http://news.gmane.org/gmane.network.freenet.support
> > Unsubscribe at
> > http://emu.freenetproject.org/cgi-bin/mailman/listinfo/support
> > Or mailto:support-requ...@freenetproject.org?subject=unsubscribe
> >
>
>
>
> --
> __
> GnuPG key:   (0x48DBFA8A)
> Keyserver:   pgpkeys.pca.dfn.de
> Fingerprint:
> 477D F057 1BD4 1AE7 8A54 8679 6690 E2EC 48DB FA8A
> __
> ___
> Support mailing list
> Support@freenetproject.org
> http://news.gmane.org/gmane.network.freenet.support
> Unsubscribe at
> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/support
> Or mailto:support-requ...@freenetproject.org?subject=unsubscribe
>



-- 

Henri Godron
Utilisez Freenet : http://freenetproject.org
Utilisez TOR : http://www.torproject.org/index.html.fr
___
Support mailing list
Support@freenetproject.org
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://emu.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:support-requ...@freenetproject.org?subject=unsubscribe

Re: [freenet-support] Strange behavior of the MIME type detection

2009-10-27 Thread bbackde
As far as I know the node uses the file extension to guess the file type.
You said you compressed into many rar files, what are the file extensions?

Is it possible that the node guesses .rar files correctly, but fails
with .r00, .r01, ... ?
This would explain what you see...


On Tue, Oct 27, 2009 at 11:11, henri godron  wrote:
> Hi everyone,
>
> I splitted a file into many .rar files and there is something strange in the
> mime type decetion when inserting the files in my node.
> Most of them are being re-compressed (because their mime type is not
> detected as being a compressed file) and some others are being recognized
> correctly as rar file types.
>
> I guess this is a known behavior and i suppose the node is trying to guess
> the mime type not by using the extension but by opening the file and trying
> to 'understand' ?
>
> Maybe it's a bug, I don't know, so I'm still posting this here.. Who knows !
> I tried to have a look at the code but I have no time right now..
>
> Cya
>
> --
> 
> Henri Godron
> Utilisez Freenet : http://freenetproject.org
> Utilisez TOR : http://www.torproject.org/index.html.fr
>
>
>
> ___
> Support mailing list
> Support@freenetproject.org
> http://news.gmane.org/gmane.network.freenet.support
> Unsubscribe at
> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/support
> Or mailto:support-requ...@freenetproject.org?subject=unsubscribe
>



-- 
__
GnuPG key:   (0x48DBFA8A)
Keyserver:   pgpkeys.pca.dfn.de
Fingerprint:
477D F057 1BD4 1AE7 8A54 8679 6690 E2EC 48DB FA8A
__
___
Support mailing list
Support@freenetproject.org
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://emu.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:support-requ...@freenetproject.org?subject=unsubscribe


[freenet-support] Strange behavior of the MIME type detection

2009-10-27 Thread henri godron
Hi everyone,

I splitted a file into many .rar files and there is something strange in the
mime type decetion when inserting the files in my node.
Most of them are being re-compressed (because their mime type is not
detected as being a compressed file) and some others are being recognized
correctly as rar file types.

I guess this is a known behavior and i suppose the node is trying to guess
the mime type not by using the extension but by opening the file and trying
to 'understand' ?

Maybe it's a bug, I don't know, so I'm still posting this here.. Who knows !
I tried to have a look at the code but I have no time right now..

Cya

-- 

Henri Godron
Utilisez Freenet : http://freenetproject.org
Utilisez TOR : http://www.torproject.org/index.html.fr
___
Support mailing list
Support@freenetproject.org
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://emu.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:support-requ...@freenetproject.org?subject=unsubscribe