[arquillian-issues] [JBoss JIRA] Commented: (ARQ-569) Archive for remote GF-3.1 should not be saved to disk prior to deployment

Jason Lee (JIRA) jira-events at lists.jboss.org
Fri Sep 9 10:50:26 EDT 2011


    [ https://issues.jboss.org/browse/ARQ-569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12627558#comment-12627558 ] 

Jason Lee commented on ARQ-569:
-------------------------------

I talked to Jason Porter about this last night.  It seems to be more of an issue with the Jersey Client rather than GlassFish.  On the GlassFish side, Jersey simply reads the bytes from the HTTP message, without regard for where the data came from originally.  The problem, though, is the the Jersey Client API only allows Files (even in the recently released 1.9).  From the hip, I think your options are to use another client library, or implement a suitable sublcass of FormDataBodyPart.  Option B shouldn't be too difficult, and I bet the Jersey guys would love the contribution. ;)  If I find some time, I'll see if I can implement it, but I can't promise how quickly I can get that done.

> Archive for remote GF-3.1 should not be saved to disk prior to deployment
> -------------------------------------------------------------------------
>
>                 Key: ARQ-569
>                 URL: https://issues.jboss.org/browse/ARQ-569
>             Project: Arquillian
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: GlassFish Containers
>    Affects Versions: glassfish_1.0.0.CR1
>         Environment: Ubuntu 11.04 x86, GlassFish Server Open Source Edition 3.1.1 (build 12)
>            Reporter: Pedro Kowalski
>
> When I build the deployment archive, it is saved it /tmp/ARCHIVE_FILENAME (I'm running on GNU/Linux box) with chmod 444 (-r--r--r--). If I run the glassfish server as a root or as the same user as the maven than there is no problem. But actually I run a Jenkins build task (user: jenkins) and run the server as another user (user: pedro).
> In such case, the Arquillian remote tests fail because the Glassfish cannot use the /tmp/ARCHIVE_FILENAME (permission denied). If you change the chmod and give others the write permission - it will work fine.
> Aslak suggested avoiding the FileDataBodyPart during deployment.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the arquillian-issues mailing list