Payara icon indicating copy to clipboard operation
Payara copied to clipboard

Bug Report: PROPFIND fails when TLS is enabled

Open mkarg opened this issue 2 years ago • 5 comments

Description


The verb PROPFIND (part of WebDAV) fails when TLS is enabled and Payara was rebooted since deployment of the EAR, but only if the EAR also contains a @WebService.

Expected Outcome

There should not be any restriction on the accepted verbs, either with or without TLS, either with or without @WebService in the same EAR.

Current Outcome

TLS disabled or no @WebService contained in the same EAR: PROPFIND verb is successfully propagated and processed by JAX-RS.

TLS enabled and @WebService contained in the same EAR: Payara blocks with 501 and the following explanation in the response entity:

...
Method PROPFIND is not defined in RFC 2068 and is not supported by the Servlet API 
...

Steps to reproduce

  • Deploy an EAR containing a WAR containing a JAX-RS resource having @PROPFIND @PATH("myresource") annotated method, where @PROPFIND is defined as a JAX-RS custom extension for the verb "PROPFIND".
  • Restart Payara Domain
  • curl -X PROPFIND https://localhost:8080/myresource

Workaround

  • Redeploy the EAR after each reboot.

Strange but true, PROPFIND works even with TLS unless the reboot is performed.

Environment

  • Distribution: Server Full Profile 5.2022.1 (also confirmed to fail on 5.2021.9 and 5.2021.8 but not checked with other version)
  • JDK Version: 11 - Azul
  • Operating System: Windows

mkarg avatar Mar 23 '22 14:03 mkarg

BTW : No, certainly it is not an option to simply switch off TLS. ;-)

mkarg avatar Mar 23 '22 14:03 mkarg

Would be great if anybody could comment on this whether there is a simpler workaround we could apply until a real bugfix is published?

mkarg avatar Mar 24 '22 07:03 mkarg

Possibly related to https://github.com/payara/Payara/issues/5602.

mkarg avatar Mar 24 '22 20:03 mkarg

Hi @mkarg,

Can you attach a sample reproducer application for us to investigate?

Thank you, Alan

AlanRoth avatar May 09 '22 15:05 AlanRoth

As a workaround we have remove the @WebService annotation, so while this is severe it is not urgent anymore. Hence I have planned to provide a reproducer in June.

mkarg avatar May 17 '22 08:05 mkarg

Hi,

Due to the lack of updates, we will be closing this issue.

Thanks, Alan

AlanRoth avatar Jun 06 '23 15:06 AlanRoth