Error in MP-JWT TCK; wrong usage of @HttpConstraint

12 views
Skip to first unread message

Arjan Tijms

unread,
Dec 20, 2017, 8:58:53 AM12/20/17
to Eclipse MicroProfile
Hi,

I noticed the following being used in the MP-JWT TCK:

@HttpConstraint(rolesAllowed={"Tester"})
@WebServlet("/ServiceServlet/*")
public class ServiceServlet extends HttpServlet {


This however can not work according to the Servlet spec; @HttpConstraint is supposed to appear within a @ServletSecurity annotation, and not be used on its own.

See:


Kind regards,
Arjan Tijms
Reply all
Reply to author
Forward
0 new messages