[16.0][FIX] website_require_login: Error response#1099
Conversation
|
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
|
@pedrobaeza could you remove the stale tag please? |
|
OK, but please enroll people to review it. |
|
@yvaucher @NICO-SOLUTIONS could you review please? |
c5c4a3e to
58037bf
Compare
| ) | ||
|
|
||
| def test_dispatch_json_no_redirect(self): | ||
| """Con Content-Type application/json no debe haber redirección.""" |
58037bf to
fb35027
Compare
| path = request.httprequest.path | ||
| for auth_path in auth_paths: | ||
| if auth_path == path or Path(auth_path) in Path(path).parents: | ||
| if request.httprequest.content_type == "application/json": |
There was a problem hiding this comment.
suggestion: I'd place this close to the checks at the beginning of the method so that if this fails then we can skip everything else, like the search method.
There was a problem hiding this comment.
Yes I think you're right, do want this change? Or can I go ahead with merging?
There was a problem hiding this comment.
I continued with merging because this PR is open for a long time already, and you approved the changes, so I assume you don't need the change you suggested
There was a problem hiding this comment.
That's right, I approved because this is not mandatory for merge in my opinion, thanks for merging!
| "Expected the response status code to be 200 which means no redirection", | ||
| ) | ||
|
|
||
| def test_dispatch_json_no_redirect(self): |
|
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
|
@tarteo please update your review 🙏 |
|
This PR has the |
|
/ocabot merge minor |
|
Hey, thanks for contributing! Proceeding to merge this for you. |
|
Congratulations, your PR was merged at 9cb29d5. Thanks a lot for contributing to OCA. ❤️ |
Error in response in first load:
