Fix home link methods
Created by: NotSpecial
For the home endpoint, some link methods were incorrect, i.e. the API would report that some methods are allowed for the current user (although they were not) and some of the reported methods would not be allowed.
This was the result of to unrelated problems:
-
Not allowed
HEAD
: Eve automatically allowsHEAD
requests ifGET
is possible. However, ifGET
is set topublic_methods
,HEAD
is not automatically included, and has to be set explicitly. Unaware of this, the API would report thatHEAD
is allowed, while it was not. I have corrected the respective resource configs such thatHEAD
is allowed wheneverGET
is, as it is intended. -
Allowed
GET
if it is not: Some resources usingAdminOnlyAuth
would not create a user lookup filter, but insteadabort
. The API had no way to check this properly, and would report thatGET
is possible (even if it would be aborted. I have changed the output of creating a lookup filter such that not allowing any lookup for a user can be properly returned. Now the API can correctly determine whetherGET
is possible or not.
Aside from that, I improved the tests for links on /
to actually test all reported methods.
Closes #343 (closed).