plainblack.com
Username Password
search
Bookmark and Share

    
Goto page «Previous Page   1 2    Next Page»

"Expected token not present" error in logs

User knowmad
Date 1/15/2007 9:25 pm
Views 15740
Rating 1    Rate [
|
]
Previous · Next
User Message
knowmad

While working on a new macro, I've started receiving a 500 Internal Error message. Looking in my modperl.error.log, I see the following message:

     "Expected token not present"

What's causing this error? It's occuring on every page of my site but not on another site running on this same server. Removing my custom macro didn't help. Restarting WebGUI didn't help.

I found a thread in Etcetera which directed me to delete my cookies. This finally worked and makes sense as I'm working on a macro to write cookies. What's up with this? How are cookies in my browser making WebGUI crash with a 500 error?

 

William 



Back to Top
Rate [
|
]
 
 
knowmad

This is becoming problematic. I'm using Javascript to write out a cookie with the following details:

  Name     bonterra
  Value    cookie test
  Host     bonterra.tathwellprinting.com
  Path     /
  Secure   No
  Expires  02/14/07 22:32:03

I've attached a file that contains the actual output. Something about this cookie is causing WebGUI to crash. There is another cookie called wgSession which I haven't touched. Any ideas on why I'm having problems adding a custom cookie?

Thanks,
William 



Attached Files
Back to Top
Rate [
|
]
 
 
DBell

Just to let you know, cookie values are supposed to be URL-escaped.

This is probably the cause of your problems. 



Back to Top
Rate [
|
]
 
 
knowmad

OK, I can do that although the code sample I posted works fine outside of wG.

I still think it's a major bug that wG crashes if you have "bad" cookies in your browser session. I suppose I should file a bug report. Once I test escaping the value of the cookie, I'll see if that clears up the 500 error.

 

Thanks,
William



Back to Top
Rate [
|
]
 
 
DBell
It's not WebGUI that's crashing, it's Apache.


Back to Top
Rate [
|
]
 
 
knowmad

Hey Doug,

How do you figure it's Apache? WebGUI is running under mod_perl which essentially makes it part of Apache. I've never had troubles with any of my CGI apps writing cookies that would cause Apache to crash.

If you'd like, I can put that html I attached onto a server and show you that a plain Apache server does not crash due to a cookie file. Does anyone else on this list really think this is an Apache issue and not a WebGUI one?

William 



Back to Top
Rate [
|
]
 
 
JT
Please post a bug report along with the code that creates this defect. That way we can determine what is causing the exception, and try to handle it more gracefully. 
It is possible that this exception is happening somewhere in either the Apache or mod_perl code. I've seen it several times in the past. However, if it is happening there, we'll find out and can at least submit a bug report to the Apache or mod_perl folks. If it's happening in the WebGUI code then we'll handle the exception.
Either way, problem resolved. But that starts with you submitting a bug report that contains the code that exposes the defect.


JT ~ Plain Blackph: 703-286-2525 ext. 810fax: 312-264-5382http://www.plainblack.com
I reject your reality, and substitute my own. ~ Adam Savage





Back to Top
Rate [
|
]
 
 
knowmad

Posted at http://www.plainblack.com/bugs/tracker/custom-cookies-cause-webgui-to-crash

 



Back to Top
Rate [
|
]
 
 
knowmad
Well, it appears to be neither Apache nor WebGUI. From the few postings I found on the mod_perl list from about a year ago, it appears to be an issue with mod_perl. Your suggestion to url-escape the string worked fine using URI::Escape. Thanks for the suggestion.


Back to Top
Rate [
|
]
 
 
walbert
The unsubscribe link given at the footer of mails in this group does not
allow me to unsubscribe to the list without logging in, though I do not
have a registered account (that i can recall), and am left without any
recourse to leave the group.

Thanks,
Walter Kalata


Back to Top
Rate [
|
]
 
 
     Goto page «Previous Page   1 2    Next Page»



© 2019 Plain Black Corporation | All Rights Reserved