Skip to content

Security 4.0 challenge for unauthenticated test expecting a valid response from the server #362

@jhanders34

Description

@jhanders34

Challenged tests
ee.jakarta.tck.security.test.AppMemPolicyIT#testNotAuthenticatedSpecial

TCK Version
Jakarta Security 4.0

Description
The tests invoke a Servlet that has role security constraints defined on it and the servlet specification states that a 401 must be returned in that case. The test is expecting that the servlet should be serviced and data returned from the servlet for the test to process.

Additional context
Servlet 6.1 13.8.3 section states.

If access is restricted to permitted roles and the request has not been authenticated, the
request shall be rejected as unauthorized and a 401 (SC_UNAUTHORIZED) status code 
shall be returned to cause authentication.

Since the only way I can see to make this test work is adding a second servlet that doesn't have role constraints defined on it, I believe these tests will need to be excluded for this challenge and an update cannot be made to the test in a way that doesn't add to the requirements of the test, but I could be wrong.

This challenge is akin to jakartaee/authorization#173 which has the same type of test and criteria for a challenge.

Metadata

Metadata

Assignees

No one assigned

    Labels

    challengeTCK challenge was appealed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions