This is really bad. It looks like a buffer overflow error to me (in apache 
or in python). Which version of python do you use? Do you get the problem 
only from Opera? How are these CSS served? As static files? Is Apache 
serving directly or via web2py?

On Friday, 17 May 2013 09:06:33 UTC-5, Andriy wrote:
>
> I had this problem for a while, but since I was in development stage, I`ve 
> not paid much attention.
>
> I use Apache/2.2.22 (Win32) mod_wsgi/3.3 Python/2.7.3 
>
> For some reason in some requests Content-Type Response header for .css 
> returns not with "text/css", but with random strings. So browser does not 
> run this css file, and page layout is ruined.
>
> This happens almost every time I reload page with CTRL+F5 in Opera or 
> Chrome. My index page has 12 css files and 1-4 files return with corrupt 
> headers such as:
> - /mad/static/css/mad.css - which is just link to one of css files in 
> directory
> - mad/static/css/web2py.css - another
> - text/plain - simply wrong for .css
> - d:/web2py/applications - path to web2py dir?
>
> Strangely, if I start to send requests from Opera-Dragonfly to one of my 
> .css files (for ex. www.autosim.ru/static/css/mad.css), clicking "Send 
> request" many times, then in 1 in 50 requests I have strings like these in 
> Content-Type header:
> - forum_attachments_sequence - something from source code?
> - too small or too large! - thats just from some validator
> - forum_topics.author_id - name of a Field from one of my db tables!
> - /user/not_authorized 
> - ø   À±´ 
> etc.
>
> In Apache httpd file mime_module is enabled with "TypesConfig 
> conf/mime.types", so I guess Content-Type header should be forced, but it 
> is clearly not...
>
> Could someone suggest something. I do not know even where to look. Is it 
> web2py or is it apache problem?
>
>
> <https://lh4.googleusercontent.com/-WclRhsdA85k/UZY5Cgq3r2I/AAAAAAAAAAk/Ly3p5iU_uBQ/s1600/css3.jpg>
>
>
> <https://lh5.googleusercontent.com/-WU5okjQOqN4/UZY5FIi60EI/AAAAAAAAAAs/B-WxSKniApA/s1600/css2.jpg>
> I`m adding some screenshots:
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to