javaee-samples / javaee8-samples

Java EE 8 Samples
Other
376 stars 238 forks source link

ServletMappingTest::testRoot test fails #41

Open JarekW opened 4 years ago

JarekW commented 4 years ago

ServletMappingTest::testRoot test fails. Assertion check for empty patern, but server return slash:

assertTrue(content.contains("Pattern:''"));
Content for `http://localhost:8080/d99eed89-7f43-41a8-9792-114ba612a9cd/` :
Mapping match:CONTEXT_ROOT
Match value:''
Pattern:'/'

branch: master (edd3ca2455204c0410ba96420cbb31600c9b6f06) java: 11.0.6 oracle payara: 5.194 maven profile: payara-remote

arjantijms commented 4 years ago

Thx for the rapport. See https://javadoc.io/doc/jakarta.servlet/jakarta.servlet-api/latest/index.html

The Pattern should be empty in both cases. We should add this same test to the TCK I guess. Payara is not compatible at this point, I had this on my list to fix in Payara but never came to it.