[Logo] smithproject.org
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
Smith occasionally sends pages as text/plain  XML
Forum Index -> CFML, CFSCRIPT, CFC
Author Message
Cars2007



Joined: 25/01/2008 23:52:18
Messages: 20
Offline

Every now and then I will get a page (at random) that gets sent with type text/plain (so you don't see a rendered page, just the HTML source.) If I hit F5, it will usually get sent as text/HTML and then it renders properly.

Occasionally (not always) I will see this:

Code:
Set-Cookie: ERROR
 ERROR: ERROR
 ERROR: ERROR
 Keep-Alive: timeout=5, max=100
 Connection: Keep-Alive
 Transfer-Encoding: chunked
 Content-Type: text/plain


Ideas?
orcus



Joined: 22/01/2007 16:10:52
Messages: 136
Offline

Hi Cars,

are you talking about .cfm pages or about static .html content? What's the file name extension of the target file? Smith can use file extension to figure out the correct mime type (see AllServlet class). There may be a bug in MimeTypeResolver class.

Is the Set-Cookie error related to the text/plain problem, or are these just two separate problems?

Could you attach a test case page, so that we could reproduce this behaviour. I understand it does not occur every time, but if it happens on your machine, it must happen on ours too. We'll be patient trying again and again


Cars2007



Joined: 25/01/2008 23:52:18
Messages: 20
Offline

I discovered it was setting some kind of huge cookies in the client variables. I am not sure whether it's an application bug, but once I cleared my cookies it didn't do it anymore.

This happened with .cfm files. I think if the header is bigger than a certain size, it breaks.
Cars2007



Joined: 25/01/2008 23:52:18
Messages: 20
Offline

I discovered this was because of the CFCLIENT_ being sent multiple times in the response headers, which I filed a bug (including patch) for. So this thread can be considered resolved
 
Forum Index -> CFML, CFSCRIPT, CFC
Go to:   
Powered by JForum 2.1.6 © JForum Team