arquillian-core icon indicating copy to clipboard operation
arquillian-core copied to clipboard

[ARQ-1321] Support for HTTPS in URLs injected with @ArquillianResource

Open samaxes opened this issue 11 years ago • 13 comments

This change is Reviewable

samaxes avatar Mar 01 '13 21:03 samaxes

If you haven't noticed, we're having a little naming/sementics discussion on twitter around this:

https://twitter.com/aslakknutsen/status/308875252237213696

:)

aslakknutsen avatar Mar 05 '13 17:03 aslakknutsen

protocol and port elements were added to the @Secured annotation. I would love to hear your comments on this feature.

samaxes avatar Mar 18 '13 23:03 samaxes

@aslakknutsen Have you had the time to check this PR?

samaxes avatar Jun 04 '13 20:06 samaxes

@bartoszmajsak what we can do with this? We integrate smart-url in core?

lordofthejars avatar Nov 15 '16 12:11 lordofthejars

@lordofthejars should we?

bartoszmajsak avatar Nov 15 '16 12:11 bartoszmajsak

@bartoszmajsak in my opinion I would merge this PR and avoid more complicated things.

lordofthejars avatar Nov 15 '16 12:11 lordofthejars

I wouldn't merge right away. I would compare with the extension from the showcase first. + take into consideration the discussion on twitter mentioned above.

bartoszmajsak avatar Nov 15 '16 12:11 bartoszmajsak

@aslakknutsen Have you already had the time to check this PR?

arjantijms avatar Mar 23 '19 00:03 arjantijms

@aslakknutsen @bartoszmajsak @lordofthejars @starksm64 this issue is the one that was recently discussed during a call about the TCK moving to Arquillian.

Having the HTTPS URL is required by various tests. I understand there's a ton of difficulty around this and it's not trivial to review, but has there been any progress here in those 8 years?

arjantijms avatar Aug 25 '21 21:08 arjantijms

@aslakknutsen @bartoszmajsak @lordofthejars @starksm64 this issue is the one that was recently discussed during a call about the TCK moving to Arquillian.

Having the HTTPS URL is required by various tests. I understand there's a ton of difficulty around this and it's not trivial to review, but has there been any progress here in those 8 years?

Not that I'm aware of. @aslakknutsen can you chime in?

bartoszmajsak avatar Oct 12 '21 13:10 bartoszmajsak

I won't comment on @Secure vs @Secured and the likes, nor have I been much involved in the project the last 5 ish years, how ever...

On top of my head I could see the current impl as provided here as a possible fallback/backwards compatible version, the reason being that the Injection of URLs are intended to come from the Container to avoid hard coding them in the test case. The way this is implemented now would force the Test case to only run on Containers that e.g. use 8443 as a port.

Following the ProtocolMetadata SPI that is returned by the DeployableContainer on deploy, I would have rather added either a HTTPSContext or added a secure field to the HTTPContext (and thereby adding two HTTPContexts to the ProtocolMetadata). The @Secured simply switch between the two contexts, but port numbers etc are still provided by the DeployableContainer.

aslakknutsen avatar Oct 12 '21 14:10 aslakknutsen

@arjantijms Is there a requirement in terms of what the unit test class is doing? I looked at some threads the TCK list but did not see this issue mentioned.

starksm64 avatar Oct 13 '21 02:10 starksm64

@starksm64 for the Client-Cert test in Servlet, a request to the HTTPS URL is needed. The test for the WebUserDataPermission in authorization and the mirroring transportType in Servlet need it too.

arjantijms avatar Nov 27 '21 02:11 arjantijms

Replaced with #474 since this PR could not be updated via the github interface

starksm64 avatar May 02 '23 22:05 starksm64