mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-04-26 01:05:52 +03:00
[GH-ISSUE #1504] Don't have PROPFIND method http #6603
Labels
No labels
Q/A
bug
casdoor
dependencies
docker
documentation
duplicate
enhancement
help wanted
invalid
lego
platform:openwrt
platform:windows
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-ui#6603
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @nikolay-mansas on GitHub (Dec 29, 2025).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1504
In structured access logs method is not shown, just an empty field
Server Info
Uptime: 0d 7h 9m
Load Average: 1min:1.07 | 5min:0.60 | 15min:0.30
OS: debian 12.12 (linux 6.8.12-17-pve x86_64) (proxmox lxc)
CPU: Intel(R) Xeon(R) CPU X5675 @ 3.07GHz * 4
Version: 2.3.2 (512)
@0xJacky commented on GitHub (Feb 6, 2026):
@cursoragent fix it
@cursor[bot] commented on GitHub (Feb 6, 2026):
修复已完成并推送。让我总结一下所做的更改:
修复总结
问题:PROPFIND 方法在结构化访问日志中不显示,方法字段为空。
原因:日志解析器中的
ValidHTTPMethods映射表只包含标准 HTTP 方法(GET、POST、PUT 等),不包含 WebDAV 协议使用的方法(如 PROPFIND)。修复内容:
internal/nginx_log/parser/types.go:在ValidHTTPMethods映射表中添加了 WebDAV 方法:internal/nginx_log/indexer/parallel_indexer_optimized.go:同步更新了索引器中的方法验证逻辑internal/nginx_log/parser/parser_test.go:添加了 WebDAV 方法的测试用例确保正确解析所有测试均已通过,更改已提交并推送到
cursor/propfind-method-logging-33b5分支。The fix has been completed and pushed. Let me summarize the changes made:
Repair Summary
Question: The PROPFIND method is not displayed in the structured access log, and the method field is empty.
Reason: The
ValidHTTPMethodsmapping table in the log parser only includes standard HTTP methods (such as GET, POST, PUT, etc.), but does not include the methods used by the WebDAV protocol (such as PROPFIND).Fixing Content :
internal/nginx_log/parser/types.go: Added the WebDAV methods to theValidHTTPMethodsmapping table. - PROPFIND, PROPPATCH, MKCOL, COPY, MOVE, LOCK, UNLOCKinternal/nginx_log/indexer/parallel_indexer_optimized.go: Synchronously updated the method validation logic within the indexer.internal/nginx_log/parser/parser_test.go: Added test cases for the WebDAV method to ensure correct parsingAll tests have been passed, the changes have been submitted and pushed to the
cursor/propfind-method-logging-33b5branch.