[
https://issues.jboss.org/browse/ARQ-322?page=com.atlassian.jira.plugin.sy...
]
Vineet Reynolds edited comment on ARQ-322 at 3/12/12 2:09 AM:
--------------------------------------------------------------
Yes, adding in the CSRF protection header, allows the deployment to GlassFish to proceed
with the deployment. Here's my change for now.
{code:java}
public Map POSTMultiPartRequest(String additionalResourceUrl, FormDataMultiPart form)
{
ClientResponse response =
prepareClient(additionalResourceUrl).type(MediaType.MULTIPART_FORM_DATA_TYPE)
.header("X-Requested-By", "Arquillian")
.post(ClientResponse.class, form);
Map responseMap = getResponseMap(response);
return responseMap;
}
{code}
Edit: I'll add the client-side CsrfProtectionFilter, since the above isn't
something exposed by the Jersey API.
was (Author: vineet.reynolds):
Yes, adding in the CSRF protection header, allows the deployment to GlassFish to
proceed with the deployment. Here's my change for now.
{code:java}
public Map POSTMultiPartRequest(String additionalResourceUrl, FormDataMultiPart form)
{
ClientResponse response =
prepareClient(additionalResourceUrl).type(MediaType.MULTIPART_FORM_DATA_TYPE)
.header("X-Requested-By", "Arquillian")
.post(ClientResponse.class, form);
Map responseMap = getResponseMap(response);
return responseMap;
}
{code}
Implement a GlassFish 3.1 managed container adapter
---------------------------------------------------
Key: ARQ-322
URL:
https://issues.jboss.org/browse/ARQ-322
Project: Arquillian
Issue Type: Feature Request
Components: GlassFish Containers
Affects Versions: glassfish_1.0.0.CR2
Reporter: Dan Allen
Assignee: Vineet Reynolds
To round out the GlassFish support, we need a managed container adapter (see the JBoss AS
managed container).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira