|
List Info
Thread: httpauthfilter, encoding & filters
|
|
| httpauthfilter, encoding & filters |

|
2006-05-18 10:16:28 |
Hi,
I've setup an application with httpauthfilter, using
roughly the app looks like :
/root
cp_filters = [HTtpAuthFilter(...)]
def index : ...
def unauth : ...
and the setup is : {
/ :
encodingfilter.on : true
/static :
static.on= True
static.dir = ...
encodingfilter.on : False
}
The problem is, all requests objects to /static fail :
127.0.0.1 - - [18/May/2006:12:02:27] "GET
/static/logo_4.jpg HTTP/1.1"
200 4591
"http://localhost/"
18/May/2006:12:02:27 INFO Page handler: 'ordinal not in
range(128)'
Traceback (most recent call last):
File
"c:\python24\lib\site-packages\cherrypy-2.2.1-py2.
4.egg\cherrypy\_cpwsgi.
py", line 96, in wsgiApp
chunk = str(chunk)
UnicodeEncodeError: 'ascii' codec can't encode character
u'\xe9' in
position 604
: ordinal not in range(128)
when removing httpauthfilter all is back to normal.
Using CP 2.2.1, httpauthfilter from 30/12 and python 2.4.1
btw, one quite irritating quirk (happended to me often) here
is that I
dont know what content caused the unicode error, could a
test be done
(in development mode) right after the call to a pagemethod
or some more
explicit display of the content string ? please !
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users googlegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribe googlegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---
|
|
| httpauthfilter, encoding & filters |

|
2006-05-18 10:20:30 |
Hi,
Could you try zith httpauthfilter from
http://svn.
defuze.org/oss/httpauthfilter/ which is more recent.
- Sylvain
>
> Hi,
>
> I've setup an application with httpauthfilter, using
>
> roughly the app looks like :
>
> /root
> cp_filters = [HTtpAuthFilter(...)]
> def index : ...
> def unauth : ...
>
> and the setup is : {
> / :
> encodingfilter.on : true
> /static :
> static.on= True
> static.dir = ...
> encodingfilter.on : False
> }
>
> The problem is, all requests objects to /static fail :
>
> 127.0.0.1 - - [18/May/2006:12:02:27] "GET
/static/logo_4.jpg HTTP/1.1"
> 200 4591
> "http://localhost/"
> 18/May/2006:12:02:27 INFO Page handler: 'ordinal not
in range(128)'
> Traceback (most recent call last):
> File
>
"c:\python24\lib\site-packages\cherrypy-2.2.1-py2.
4.egg\cherrypy\_cpwsgi.
> py", line 96, in wsgiApp
> chunk = str(chunk)
> UnicodeEncodeError: 'ascii' codec can't encode
character u'\xe9' in
> position 604
> : ordinal not in range(128)
>
>
> when removing httpauthfilter all is back to normal.
>
> Using CP 2.2.1, httpauthfilter from 30/12 and python
2.4.1
>
> btw, one quite irritating quirk (happended to me often)
here is that I
> dont know what content caused the unicode error, could
a test be done
> (in development mode) right after the call to a
pagemethod or some more
> explicit display of the content string ? please !
>
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users googlegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribe googlegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---
|
|
| httpauthfilter, encoding & filters |

|
2006-05-18 11:24:12 |
> Could you try zith httpauthfilter from
> http://svn.
defuze.org/oss/httpauthfilter/ which is more recent.
It worked !
As I could not update the wiki, and I didn't find any
adequate cherrypy
doc subject to update, coudl you mention it in the wiki plz
? I guess
I'm not the only one to use static dirs AND
authentification... ?
Thanks !
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users googlegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribe googlegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---
|
|
| httpauthfilter, encoding & filters |

|
2006-05-18 11:41:46 |
>
>> Could you try zith httpauthfilter from
>> http://svn.
defuze.org/oss/httpauthfilter/ which is more recent.
>
> It worked !
>
> As I could not update the wiki, and I didn't find any
adequate cherrypy
> doc subject to update, coudl you mention it in the wiki
plz ? I guess
> I'm not the only one to use static dirs AND
authentification... ?
>
I've updated the wiki to mention the new location of the
filter source code.
Glad it worked
- Sylvain
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users googlegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribe googlegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---
|
|
| httpauthfilter, encoding & filters |

|
2006-05-18 13:43:45 |
Uuuuh ... in fact it didn't :'(
stupid me, I didn't clear the browser cache.
I digged this error a little more and found that the
encoding error
came from the custom page I set up for 404 errors.
So I guess I have the same error that Russell Bungay had a
little while
before (apr 6) on this group, the thread finished with :
" I am personally convinced now that the issue lies
with httpauthfilter as when I take that out, the static
content is
served correctly. "
... which I think I agree with, unfortunately.
--
ikshefem
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users googlegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribe googlegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---
|
|
| httpauthfilter, encoding & filters |

|
2006-05-18 14:16:06 |
>
> Uuuuh ... in fact it didn't :'(
>
> stupid me, I didn't clear the browser cache.
>
> I digged this error a little more and found that the
encoding error
> came from the custom page I set up for 404 errors.
>
> So I guess I have the same error that Russell Bungay
had a little while
> before (apr 6) on this group, the thread finished with
:
>
> " I am personally convinced now that the issue
lies
> with httpauthfilter as when I take that out, the static
content is
> served correctly. "
>
> ... which I think I agree with, unfortunately.
>
I will try to look into it this week end.
- Sylvain
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users googlegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribe googlegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---
|
|
| httpauthfilter, encoding & filters |

|
2006-05-30 07:51:54 |
Hi Sylvain, have you had time to investigate ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users googlegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribe googlegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---
|
|
| httpauthfilter, encoding & filters |

|
2006-05-30 08:58:27 |
Hello,
I'm sorry but I did not make the time for fixing the
httpauthfilter. I am
sorry for that. I'm quite busy with the CherryPy book and
it's hard to
take a couple of hours for the filter itself.
Sorry.
- Sylvain
>
> Hi Sylvain, have you had time to investigate ?
>
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users googlegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribe googlegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---
|
|
[1-8]
|
|