Skip to content
This repository has been archived by the owner on Nov 6, 2022. It is now read-only.

Support ACL (WebDAV, RFC3744, Section 8.1) #260

Closed
wants to merge 1 commit into from

Conversation

Hywan
Copy link
Contributor

@Hywan Hywan commented Jul 16, 2015

This PR adds support for the following HTTP method:

This is part of the WebDAV protocol.

@indutny
Copy link
Member

indutny commented Jul 19, 2015

Is there any other WebDAV methods that you'd like to add? ;) I'd rather do a single commit

@Hywan
Copy link
Contributor Author

Hywan commented Jul 20, 2015

@indutny Next methods (related to WebDAV or other RFC) are present in another commit and need a little refactoring, so I would be glad if you could merge this one first, would be a lot more easier here :-].

@indutny
Copy link
Member

indutny commented Jul 20, 2015

@Hywan I was thinking about it for a couple of days now and have a suggestion.

What do you think about moving parts of the method parsing state machine into separate functions? I really dislike how it blows up the main parser body.

@Hywan
Copy link
Contributor Author

Hywan commented Jul 21, 2015

@indutny Could be definitively more testable, for sure. Moreover, I suspect this function to be wrong but magically works for all our usecases :-p.

@Hywan
Copy link
Contributor Author

Hywan commented Jul 21, 2015

@indutny Do we have “speed-tests”?

@indutny
Copy link
Member

indutny commented Jul 21, 2015

@Hywan kind of, make bench

@Hywan
Copy link
Contributor Author

Hywan commented Jul 21, 2015

@indutny Ok… So it's up to you to take the decision ;-). I agree to try a refactoring on my spare time.

@indutny
Copy link
Member

indutny commented Jul 21, 2015

I'm all for it :)

@indutny
Copy link
Member

indutny commented Jul 21, 2015

Thank you!

@Hywan
Copy link
Contributor Author

Hywan commented Jul 21, 2015

What about this PR though?

@indutny
Copy link
Member

indutny commented Jul 21, 2015

@Hywan maybe we could do it as a part of refactor?

@Hywan
Copy link
Contributor Author

Hywan commented Jul 21, 2015

Actually I need it for a current project, so I would be glad if it could be merged right now and then I will include my next PR in the refactoring (as separated commits). Thoughts?

indutny pushed a commit that referenced this pull request Jul 21, 2015
PR-URL: #260
Reviewed-By: Fedor Indutny <fedor@indutny.com>
@indutny
Copy link
Member

indutny commented Jul 21, 2015

Here you go: eb5e992, thank you!

@indutny indutny closed this Jul 21, 2015
@Hywan
Copy link
Contributor Author

Hywan commented Jul 21, 2015

Thank you so much!

jasnell added a commit to jasnell/node that referenced this pull request Oct 28, 2015
significant updates:

* [[`777ba4eded`](nodejs@777ba4eded)] - **src**: introduce `http_parser_url_init` (Fedor Indutny) [nodejs/http-parser#225](nodejs/http-parser#225)
* [[`e557b62744`](nodejs@e557b62744)] - **src**: support LINK/UNLINK (RFC 2068, draft-snell-link-method) (Olivier Mengué) [nodejs/http-parser#267](nodejs/http-parser#267)
* [[`eb5e9928b4`](nodejs@eb5e9928b4)] - **src**: support ACL (WebDAV, RFC3744, Section 8.1). (Ivan Enderlin) [nodejs/http-parser#260](nodejs/http-parser#260)
* [[`8b1d652322`](nodejs@8b1d652322)] - **src**: support BIND/REBIND/UNBIND (WebDAV, RFC5842) (Ivan Enderlin) [nodejs/http-parser#242](nodejs/http-parser#242)
* [[`7d75dd7325`](nodejs@7d75dd7325)] - **src**: support IPv6 Zone ID as per RFC 6874 (Tatsuhiro Tsujikawa) [nodejs/http-parser#253](nodejs/http-parser#253)
jasnell added a commit to nodejs/node that referenced this pull request Nov 3, 2015
significant updates:

* [[`777ba4eded`](777ba4eded)] - **src**: introduce `http_parser_url_init` (Fedor Indutny) [nodejs/http-parser#225](nodejs/http-parser#225)
* [[`e557b62744`](e557b62744)] - **src**: support LINK/UNLINK (RFC 2068, draft-snell-link-method) (Olivier Mengué) [nodejs/http-parser#267](nodejs/http-parser#267)
* [[`eb5e9928b4`](eb5e9928b4)] - **src**: support ACL (WebDAV, RFC3744, Section 8.1). (Ivan Enderlin) [nodejs/http-parser#260](nodejs/http-parser#260)
* [[`8b1d652322`](8b1d652322)] - **src**: support BIND/REBIND/UNBIND (WebDAV, RFC5842) (Ivan Enderlin) [nodejs/http-parser#242](nodejs/http-parser#242)
* [[`7d75dd7325`](7d75dd7325)] - **src**: support IPv6 Zone ID as per RFC 6874 (Tatsuhiro Tsujikawa) [nodejs/http-parser#253](nodejs/http-parser#253)

PR-URL: #3569
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
jasnell added a commit to nodejs/node that referenced this pull request Nov 7, 2015
significant updates:

* [[`777ba4eded`](777ba4eded)] - **src**: introduce `http_parser_url_init` (Fedor Indutny) [nodejs/http-parser#225](nodejs/http-parser#225)
* [[`e557b62744`](e557b62744)] - **src**: support LINK/UNLINK (RFC 2068, draft-snell-link-method) (Olivier Mengué) [nodejs/http-parser#267](nodejs/http-parser#267)
* [[`eb5e9928b4`](eb5e9928b4)] - **src**: support ACL (WebDAV, RFC3744, Section 8.1). (Ivan Enderlin) [nodejs/http-parser#260](nodejs/http-parser#260)
* [[`8b1d652322`](8b1d652322)] - **src**: support BIND/REBIND/UNBIND (WebDAV, RFC5842) (Ivan Enderlin) [nodejs/http-parser#242](nodejs/http-parser#242)
* [[`7d75dd7325`](7d75dd7325)] - **src**: support IPv6 Zone ID as per RFC 6874 (Tatsuhiro Tsujikawa) [nodejs/http-parser#253](nodejs/http-parser#253)

PR-URL: #3569
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants