Skip to content

Commit

Permalink
Carddav runs also on /?
Browse files Browse the repository at this point in the history
  • Loading branch information
kreinhard committed Dec 11, 2024
1 parent fcf169b commit 4169cff
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class CardDavFilter : Filter {
val NORMALIZED_GET_REQUEST_REGEX = """^users/([^/]+)/addressbooks/ProjectForge-(\d+)\.vcf$""".toRegex()

/**
* PROPFIND: /index.html, /carddav, /.well-known/carddav
* PROPFIND: /, /index.html, /carddav, /.well-known/carddav
* OPTIONS: /carddav, /users/...
* @return true if given is handled by CardDavController. Otherwise, false.
*/
Expand All @@ -119,7 +119,7 @@ class CardDavFilter : Filter {
return when (request.method) {
"PROPFIND", "REPORT" -> {
log.debug { "PROPFIND/REPORT call detected: method=${request.method}, uri=$normalizedUri" }
if (normalizedUri == "index.html" || normalizedUri == "/") {
if (normalizedUri == "index.html" || normalizedUri == "") {
// PROPFIND call to /index.html after authentication is a typical behavior of many WebDAV or CardDAV clients.
return true
}
Expand Down

0 comments on commit 4169cff

Please sign in to comment.