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 2025/11/03 14:08:00 UTC

[Bug 69869] New: WebDavServlet PROPFIND with If-None-Match results in 400

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

            Bug ID: 69869
           Summary: WebDavServlet PROPFIND with If-None-Match results in
                    400
           Product: Tomcat 11
           Version: 11.0.12
          Hardware: PC
                OS: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: Servlet
          Assignee: dev@tomcat.apache.org
          Reporter: horvat.kamca@gmail.com
  Target Milestone: -------

While trying setup WebDAV server for Joplin Notes, I've an issue. PROPFIND
requests were ending with HTTP Status 400 – Bad Request.

After a bit of debugging, I've found out the reason. Joplin sends If-None-Match
header with random value. 

see https://github.com/laurent22/joplin/blob/dev/packages/lib/WebDavApi.js
lines 363-373

According to RFC-7232 though only GET and HEAD should have this header for
caching purposes. It makes no mention of PROPFIND.

I've tested older versions. Apache Tomcat 11.0.0 handles PROPFIND with
If-None-Match header correctly, newer versions starting with 11.0.1 are failing
such requests with 400 – Bad Request status code.

-- 
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 69869] WebDavServlet PROPFIND with If-None-Match results in 400

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

--- Comment #2 from Mark Thomas <ma...@apache.org> ---
To perhaps be more explicit. Joplin is sending an invalid entity tag. Tomcat is
therefore rejecting the request as invalid.

Ignoring the question of whether Joplin should be setting this header or not,
if it does so it needs to send a valid header which - in this case - means
including the required double quotes as per RFC 9110.

-- 
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 69869] WebDavServlet PROPFIND with If-None-Match results in 400

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

Remy Maucherat <re...@apache.org> changed:

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

--- Comment #1 from Remy Maucherat <re...@apache.org> ---
Since the library you are using is taking steps to accommodate the behavior of
something that expects random data, it can also accommodate the Tomcat behavior
which requires legitimate content (or avoid sending bogus headers).

-- 
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