Skip to main content



      Home
Home » Eclipse Projects » Virgo » log cookies
Re: log cookies [message #871575 is a reply to message #869915] Mon, 14 May 2012 09:00 Go to previous messageGo to next message
Eclipse UserFriend
Hi Violeta,

Also can you tell me where to change the log level of org.apache.tomcat.util.http.Cookies to turn off this unwanted log messages in virgo-tomcat-server 3.0.2?

[Updated on: Mon, 14 May 2012 09:00] by Moderator

Re: log cookies [message #872509 is a reply to message #871575] Wed, 16 May 2012 04:51 Go to previous messageGo to next message
Eclipse UserFriend
Quote:
Cookie BigIP_Colcms=271399780.0.0000


I do not think that this cookie is the problematic one.

I do not recommend to hide the log untill you know what the problem is.

As I wrote several times, you can enable org.apache.tomcat.util.http.Cookies in Debug mode so that you can check what comes to Virgo Tomcat Server as cookies, it migth be some additional symbols that cannot be seen with firebug.

When you know what the exact problem is, you can play with the following system properties (http://tomcat.apache.org/tomcat-7.0-doc/config/systemprops.html#Specification):

org.apache.tomcat.util.http.ServerCookie.ALLOW_EQUALS_IN_VALUE - If this is true Tomcat will allow '=' characters when parsing unquoted cookie values. If false, cookie values containing '=' will be terminated when the '=' is encountered and the remainder of the cookie value will be dropped. If not specified, the default value specification compliant value of false will be used.

org.apache.tomcat.util.http.ServerCookie.ALLOW_HTTP_SEPARATORS_IN_V0 - If this is true Tomcat will allow HTTP separators in cookie names and values. If not specified, the default specification compliant value of false will be used.

org.apache.tomcat.util.http.ServerCookie.ALWAYS_ADD_EXPIRES - If this is true Tomcat will always add an expires parameter to a SetCookie header even for cookies with version greater than zero. This is to work around a known IE6 and IE7 bug that causes IE to ignore the Max-Age parameter in a SetCookie header. If org.apache.catalina.STRICT_SERVLET_COMPLIANCE is set to true, the default of this setting will be false, else the default value will be true.

org.apache.tomcat.util.http.ServerCookie.FWD_SLASH_IS_SEPARATOR - If this is true then the / (forward slash) character will be treated as a separator. Note that this character is frequently used in cookie path attributes and some browsers will fail to process a cookie if the path attribute is quoted as is required by a strict adherence to the specifications. This is highly likely to break session tracking using cookies. If org.apache.catalina.STRICT_SERVLET_COMPLIANCE is set to true, the default of this setting will be true, else the default value will be false.

org.apache.tomcat.util.http. ServerCookie.STRICT_NAMING - If this is true then the requirements of the Servlet specification that Cookie names must adhere to RFC2109 (no use of separators) will be enforced. If org.apache.catalina.STRICT_SERVLET_COMPLIANCE is set to true, the default of this setting will be true, else the default value will be false.

org.apache.tomcat.util.http. ServerCookie.ALLOW_NAME_ONLY - If this is true then the requirements of the cookie specifications that cookies must have values will be enforced and cookies consisting only of a name but no value will be ignored. If not specified, the default specification compliant value of false will be used.


Re: log cookies [message #872559 is a reply to message #872509] Wed, 16 May 2012 06:42 Go to previous messageGo to next message
Eclipse UserFriend
>you can enable org.apache.tomcat.util.http.Cookies in Debug mode so that you can check what comes to Virgo Tomcat Server as cookies

Sorry for this basic question, Can you tell me how to do that?

Is that need to be done in application level or virgo tomcat server config level?
Re: log cookies [message #872606 is a reply to message #872559] Wed, 16 May 2012 08:45 Go to previous messageGo to next message
Eclipse UserFriend
Th easiest way is to change the root level for a while

<Virgo-Home>/config/serviceability.xml

<root level="DEBUG">
<appender-ref ref="SIFTED_LOG_FILE" />
<appender-ref ref="LOG_FILE" />
</root>
Re: log cookies [message #872953 is a reply to message #872606] Thu, 17 May 2012 03:12 Go to previous messageGo to next message
Eclipse UserFriend
Hi Violeta,

Thank you for your continuous help and patience with me...

The following are the cookie values:

isUserLogin=True; userId=2058; smsAvail=30; position=2; Ids=10025033/10025032

but even after in development mode I changed the root level to

<root level="DEBUG">
<appender-ref ref="SIFTED_LOG_FILE" />
<appender-ref ref="LOG_FILE" />
</root>

I didn't see the below error msg in my log file in any of the places,

"Cookies: Invalid cookie. Value not a token or quoted value"

But it still throws the above msg in live server. That above log is being written in live server all the time please help me to stop this.

To re-create this in development mode, also to stop this in live server what should be done?

FYI - In UI and in functionality everything works fine - In one particular module I fully used this cookies for user based information that module also working good in development, test & even in live environment also (it indicates that cookies is working correctly in all environment then why that above msg is being written in live environment alone?)...

[Updated on: Thu, 17 May 2012 03:15] by Moderator

Re: log cookies [message #875077 is a reply to message #872953] Tue, 22 May 2012 01:30 Go to previous message
Eclipse UserFriend
Anyone help me?
Previous Topic:Logback DBAppender in Virgo.
Next Topic:Use of plain old Eclipse Plugins with Virgo Tooling
Goto Forum:
  


Current Time: Tue Jul 22 11:45:37 EDT 2025

Powered by FUDForum. Page generated in 0.08257 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top