-
Notifications
You must be signed in to change notification settings - Fork 1.2k
mod_dav: optionally set mtime against x-oc-mtime header #556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
leo9800
wants to merge
19
commits into
apache:trunk
Choose a base branch
from
leo9800:x-oc-mtime
base: trunk
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
de7be9c
modules/dav/main/mod_dav.h: define callback `set_mtime` for `struct d…
leo9800 e77869f
modules/dav/main/mod_dav.c: add new config flag `DavHonorMtimeHeader`
leo9800 86e42ae
modules/dav/main/mod_dav.c: implement `dav_parse_range`
leo9800 177801f
modules/dav/main/mod_dav.c: parse x-oc-mtime for PUT requests
leo9800 66a7657
modules/dav/main/mod_dav.c: only try parse X-Oc-Mtime header and set …
leo9800 8217af3
modules/dav/fs/repos.c: return 500 instead of 400 upon `apr_file_mtim…
leo9800 32a4cce
modules/dav/main/mod_dav.c: fix type on request method in error message
leo9800 76ee8e0
modules/dav/main/mod_dav.c: bugfix: retrieve module config at the ver…
leo9800 16ec946
modules/dav/main/mod_dav.c: parse x-oc-mtime for MKCOL requests
leo9800 18c79d2
modules/dav/main/mod_dav.c: code style fixes
leo9800 b776d4d
modules/dav/main/mod_dav.c: zero-ing `errno` before `apr_strtoi64()` …
leo9800 44959b9
modules/dav/main/mod_dav.c: use proper language in logs, avoid unnece…
leo9800 a14efe0
modules/dav/fs/repo.c: avoid unnecessary `apr_strerror` invocation
leo9800 de608fd
modules/dav/fs/repos.c, modules/dav/main/mod_dav.c: remove APLOGNO() …
leo9800 ca3b037
modules/dav/fs/repo.c, docs/log-message-tags/next-number: `update-log…
leo9800 f2d3df8
modules/dav/main/mod_dav.c: rephrase log messages when setting modifi…
leo9800 87ce719
modules/dav/main/mod_dav.c: `dav_parse_mtime()`: ensure C89 conformity
leo9800 8170906
modules/dav/main/mod_dav.c: compile errors fixes
leo9800 f4128dd
modules/dav/fs/repos.c, docs/log-message-tags/next-number: reset `APL…
leo9800 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 10543 | ||
| 10544 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer this with an
apr_status_treturn value, though it's a minor question of styleUh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i am not sure if
apr_status_tis proper for this case personally.since
0is defined asAPR_SUCCESS, while for the returning value of this function both1and0are considered success, and-1stands for a failure.actually i was imitating
static int dav_parse_range(request_rec *r, apr_off_t *range_start, apr_off_t *range_end)inmod_dav.c