[Bug 68026] org.apache.tomcat.buf.MessageBytes.toString() is no longuer cached

2023-11-06 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=68026 --- Comment #6 from lucas.pou...@lpoconseil.fr --- Thanks for your quick fix. But if you call toStringType() and after toString() method, your toString() method has not the same result because type attribute has been updated. Maybe it's necessa

[Bug 68026] org.apache.tomcat.buf.MessageBytes.toString() is no longuer cached

2023-11-06 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=68026 Mark Thomas changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug 68026] org.apache.tomcat.buf.MessageBytes.toString() is no longuer cached

2023-11-06 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=68026 --- Comment #4 from Mark Thomas --- Changes to the behaviour of MessageBytes has previously introduced subtle bugs. I am therefore extremely reluctant to make the changes suggested in comment #0 or comment #3. Caching the values as suggested i

[Bug 68026] org.apache.tomcat.buf.MessageBytes.toString() is no longuer cached

2023-11-02 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=68026 --- Comment #3 from lucas.pou...@lpoconseil.fr --- Or maybe just update with this code to keep the behaviour described in the getType() Javadoc ? public void setBytes(byte[] b, int off, int len) { byteC.setBytes(b, off, len);

[Bug 68026] org.apache.tomcat.buf.MessageBytes.toString() is no longuer cached

2023-11-02 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=68026 --- Comment #2 from lucas.pou...@lpoconseil.fr --- Maybe, it's possible to cache in the caller ? https://github.com/apache/tomcat/blob/main/java/org/apache/catalina/connector/Request.java For all coyoteRequest.*.toString() calls ? -- You are

[Bug 68026] org.apache.tomcat.buf.MessageBytes.toString() is no longuer cached

2023-11-02 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=68026 Remy Maucherat changed: What|Removed |Added Severity|regression |enhancement --- Comment #1 from Remy

[Bug 68026] org.apache.tomcat.buf.MessageBytes.toString() is no longuer cached

2023-10-30 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=68026 lucas.pou...@lpoconseil.fr changed: What|Removed |Added CC||lucas.pou...@lpoconseil.fr

[Bug 68026] org.apache.tomcat.buf.MessageBytes.toString() is no longuer cached

2023-10-30 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=68026 lucas.pou...@lpoconseil.fr changed: What|Removed |Added Component|Servlet |Catalina -- You are recei

[Bug 68026] org.apache.tomcat.buf.MessageBytes.toString() is no longuer cached

2023-10-30 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=68026 lucas.pou...@lpoconseil.fr changed: What|Removed |Added Severity|normal |regression Prior