You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2022/07/28 14:51:12 UTC

[Bug 66183] New: AccessLogValve - %{xxx}c should output the value of all cookies with the same name

https://bz.apache.org/bugzilla/show_bug.cgi?id=66183

            Bug ID: 66183
           Summary: AccessLogValve - %{xxx}c should output the value of
                    all cookies with the same name
           Product: Tomcat 10
           Version: unspecified
          Hardware: PC
                OS: Mac OS X 10.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: aooohan@gmail.com
  Target Milestone: ------

According to RFC 6265, the server should be able to process cookies with the
same name, and tomcat has implemented this functionality. So when using %{xxx}c
in accesslog, we should alse output the values of all cookies with same name.
Currently only the first value is output and the other values are ignored.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 66183] AccessLogValve - %{xxx}c should output the value of all cookies with the same name

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66183

--- Comment #2 from Mark Thomas <ma...@apache.org> ---
I agree that this needs to be fixed. Your plan sounds reasonable to me.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 66183] AccessLogValve - %{xxx}c should output the value of all cookies with the same name

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66183

--- Comment #4 from Han Li <ao...@gmail.com> ---
There is also this problem in Extended Access Log Valve.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 66183] AccessLogValve - %{xxx}c should output the value of all cookies with the same name

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66183

--- Comment #5 from Han Li <ao...@gmail.com> ---
PR: https://github.com/apache/tomcat/pull/541

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 66183] AccessLogValve - %{xxx}c should output the value of all cookies with the same name

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66183

--- Comment #3 from Han Li <ao...@gmail.com> ---
(In reply to Mark Thomas from comment #2)
> I agree that this needs to be fixed. Your plan sounds reasonable to me.
Ok, I'll go ahead and fix this bug today.

Thanks Mark!

Han

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 66183] AccessLogValve - %{xxx}c should output the value of all cookies with the same name

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66183

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #6 from Mark Thomas <ma...@apache.org> ---
Thanks for the report and the PR.

Fixed in:
- 10.1.x for 10.1.0-M18 onwards
- 10.0.x for 10.0.24 onwards
-  9.0.x for  9.0.66 onwards
-  8.5.x for  8.5.83 onwards

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 66183] AccessLogValve - %{xxx}c should output the value of all cookies with the same name

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66183

--- Comment #1 from HanLi <ao...@gmail.com> ---
If it's confirmed that a fix is needed, I'd be happy to provide pr, and I'd
probably splice multiple values with commas, just like this:
value1,value2,value3

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org