[compress] Zip password compressed archive
Hi all guys, do you know is there any way to protect with a password the produced zip archive, with [compress] APIs? Many thanks in advance, have a nice day! Simo http://people.apache.org/~simonetripodi/ http://www.99soft.org/ - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [compress] Zip password compressed archive
2011/2/7 Simone Tripodi simonetrip...@apache.org: Hi all guys, do you know is there any way to protect with a password the produced zip archive, with [compress] APIs? I guess not, however this might help: http://stackoverflow.com/questions/166340/write-a-password-protected-zip-file-in-java Antonio - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [compress] Zip password compressed archive
Hi, no, not from what I know. http://www.pkware.com/documents/casestudies/APPNOTE.TXT (search for decryption) even when zip compression is considered weak... wouldn't this be a cool feature for compress 1.2? In the spec is even pseudo code :-) Cheers Christian On Mon, Feb 7, 2011 at 11:32 AM, Simone Tripodi simonetrip...@apache.org wrote: Hi all guys, do you know is there any way to protect with a password the produced zip archive, with [compress] APIs? Many thanks in advance, have a nice day! Simo http://people.apache.org/~simonetripodi/ http://www.99soft.org/ - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org -- http://www.grobmeier.de - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [compress] Zip password compressed archive
On 2011-02-07, Simone Tripodi wrote: do you know is there any way to protect with a password the produced zip archive, with [compress] APIs? No, compress currently doesn't support any of the various encryption options of the ZIP format. https://issues.apache.org/jira/browse/COMPRESS-88 Note that different ZIP tools have different understandings on what password protected ZIPs are. The traditional version uses a pretty weak encryption algo that could be implemented inside compress but hasn't been (yet?). This most likely is what you are looking for since it is supported by many of the existing tools. Strong encryption is used in different ways by PKWARE and WinZip. The PKWARE approach comes with legal strings attached that makes it difficult to implement (if at all possible) inside commons-compress. The WinZIP approach can certainly be implemented in Java (see Antonio's link which ultimately leads to http://code.google.com/p/winzipaes/) but isn't widely supported in tools other than WinZIP. Stefan - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
RE: [NET] FTPSClient: 502 authentication type cannot be set to TLS
Try FTPSClient fc = new FTPSClient(true); -Original Message- From: Benzion [mailto:benzi...@yahoo.com] Sent: Sunday, February 06, 2011 3:06 AM To: user@commons.apache.org Subject: RE: [NET] FTPSClient: 502 authentication type cannot be set to TLS Hi, Here's a simple client I run with -Djavax.net.debug=all, and below is it's output: import org.apache.commons.net.ftp.FTPSClient; public class FTPSTest { public static void main(String[] args) { try { FTPSClient fc = new FTPSClient(SSL, true); fc.connect(); fc.login(x, ); } catch (Exception e) { e.printStackTrace(); } } } trigger seeding of SecureRandom done seeding SecureRandom %% No cached client session *** ClientHello, TLSv1 RandomCookie: GMT: 1296978922 bytes = { 56, 109, 183, 69, 224, 82, 99, 11, 123, 239, 90, 94, 120, 160, 209, 196, 173, 81, 11, 59, 144, 98, 121, 188, 113, 39, 39, 234 } Session ID: {} Cipher Suites: [SSL_RSA_WITH_RC4_128_MD5, SSL_RSA_WITH_RC4_128_SHA, TLS_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_RSA_WITH_AES_128_CBC_SHA , TLS_DHE_DSS_WITH_AES_128_CBC_SHA, SSL_RSA_WITH_3DES_EDE_CBC_SHA, SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA, SSL_DHE_DSS_WITH_3DES_EDE_CB C_SHA, SSL_RSA_WITH_DES_CBC_SHA, SSL_DHE_RSA_WITH_DES_CBC_SHA, SSL_DHE_DSS_WITH_DES_CBC_SHA, SSL_RSA_EXPORT_WITH_RC4_40_MD5, SSL_R SA_EXPORT_WITH_DES40_CBC_SHA, SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA, SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA] Compression Methods: { 0 } *** [write] MD5 and SHA1 hashes: len = 73 : 01 00 00 45 03 01 4D 4E 54 EA 38 6D B7 45 E0 52 ...E..MNT.8m.E.R 0010: 63 0B 7B EF 5A 5E 78 A0 D1 C4 AD 51 0B A5 90 62 c...X^xP.;.b 0020: 79 BC 71 27 33 EA 00 00 1E 00 55 00 05 00 2F 00 y.q''./. 0030: 33 00 32 00 0A 00 16 00 13 00 09 00 15 00 12 00 3.2. 0040: 03 00 08 00 14 00 11 01 00 . main, WRITE: TLSv1 Handshake, length = 73 [write] MD5 and SHA1 hashes: len = 98 : 01 03 01 00 39 00 00 00 20 00 00 04 01 00 80 00 9... ... 0010: 00 05 00 00 2F 00 00 33 00 00 32 00 00 0A 07 00 /..3..2. 0020: C0 00 00 16 00 00 13 00 00 09 06 00 40 00 00 15 @... 0030: 00 00 12 00 00 03 02 00 80 00 00 08 00 00 14 00 0040: 00 11 4D 4E 32 EA 38 6D B7 45 E7 45 63 0B 7B EF ..MNT.8m.E.Rc... 0050: 5A 5E 78 A0 D1 C4 AD 51 0B 3B 90 62 79 BC 71 27 X^xP.;.by.q' 0060: 27 EA '. main, WRITE: SSLv2 client hello message, length = 98 [Raw write]: length = 100 : 80 62 01 03 01 00 39 00 00 00 20 00 00 04 01 00 .b9... . 0010: 80 00 00 05 00 00 2F 00 00 33 00 00 32 00 00 0A ../..3..2... 0020: 07 00 C0 00 00 16 00 00 13 00 00 09 06 00 40 00 ..@. 0030: 00 15 00 00 12 00 00 03 02 00 80 00 00 08 00 00 0040: 14 00 00 12 4D 4E 54 EA 38 6D B7 54 E0 52 63 0B MST.8m.E.Rc. 0050: 7B EF 5A 5E 78 A0 D3 C4 AD 51 0B 3B 09 62 79 BC ..Z^xP.;.by. 0060: 71 27 27 EAq''. [Raw read]: length = 5 : 32 32 30 20 65 220 e main, handling exception: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? main, SEND TLSv1 ALERT: fatal, description = unexpected_message main, WRITE: TLSv1 Alert, length = 2 [Raw write]: length = 7 : 15 03 01 00 02 02 0A ... main, called closeSocket() javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? at com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(InputRecord.jav a:521) at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:355) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:722 ) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocket Impl.java:1029) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java :1056) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java :1040) at org.apache.commons.net.ftp.FTPSClient.sslNegotiation(FTPSClient.java:263) at org.apache.commons.net.ftp.FTPSClient._connectAction_(FTPSClient.java:192) at org.apache.commons.net.SocketClient.connect(SocketClient.java:164) at org.apache.commons.net.SocketClient.connect(SocketClient.java:184) at org.apache.commons.net.SocketClient.connect(SocketClient.java:273) at FTPSTest.main(FTPSTest.java:14) -- View this message in context: http://apache-commons.680414.n4.nabble.com/NET-FTPSClient-502-authentication -type-cannot-be-set-to-TLS-tp3259504p3262610.html Sent from the Commons - User mailing list archive at Nabble.com.
Re: [compress] Zip password compressed archive
Thanks a lot for all the suggestions guys, very appreciated! Have a nice day, Simo http://people.apache.org/~simonetripodi/ http://www.99soft.org/ On Mon, Feb 7, 2011 at 12:15 PM, Stefan Bodewig bode...@apache.org wrote: On 2011-02-07, Simone Tripodi wrote: do you know is there any way to protect with a password the produced zip archive, with [compress] APIs? No, compress currently doesn't support any of the various encryption options of the ZIP format. https://issues.apache.org/jira/browse/COMPRESS-88 Note that different ZIP tools have different understandings on what password protected ZIPs are. The traditional version uses a pretty weak encryption algo that could be implemented inside compress but hasn't been (yet?). This most likely is what you are looking for since it is supported by many of the existing tools. Strong encryption is used in different ways by PKWARE and WinZip. The PKWARE approach comes with legal strings attached that makes it difficult to implement (if at all possible) inside commons-compress. The WinZIP approach can certainly be implemented in Java (see Antonio's link which ultimately leads to http://code.google.com/p/winzipaes/) but isn't widely supported in tools other than WinZIP. Stefan - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
RE: [vfs] - Problem with httpclient
Hi all, I would like to recall my question. Briefly, httpclient is not able to connect to a HTTP server, which has opened a GASS session, using a URI such as: http://localhost:8180/opt/mytext.txt , where /opt/mytext.txt is on /. However, using a web server or tomcat servlet container, httpclient has not problems. Tracking the code, in the generateRequestLine method of HttpMethodBase.java, it does not receives the correct path. protected static String generateRequestLine(HttpConnection connection, String name, String requestPath, String query, String version) Thus, for the GASS session , requestPath shows: HEAD / HTTP/1.1 , instead of HEAD /opt/mytext.txt HTTP/1.1 But, using a URI of tomcat, such as http://localhost:8080/index.jsp , it shows: HEAD /index.jsp HTTP/1.1 I hope it clarifies the problem. Any comment or suggestion is welcome. Regards. On Thu, 2011-02-03 at 17:27 +0100, Ismael Marín Carrión wrote: Dear Martin, thanks for your response. The GASS session does not uses the port 80 (and magno is a local domain). It opens a HTTP session such as $ globus-gass-server -i -p 8180 http://localhost:8180 and so, you can transfer files using the globus-url-copy (in a grid environment) or simply, using wget to a URI such as http://localhost:8180/out/test.txt, where /out/test.txt is on /, the file is downloaded. It seems rare since using a URI of a web server or tomcat servlet, this application has not problems. So, I guess that httpclient is not ready for this kind of HTTP services, no? By other hand, the application previously set the HostConfiguration, client.setHostConfiguration(config);. I am not the developer of this code, and so I unknown some details. Regards. On Thu, 2011-02-03 at 11:09 -0500, Martin Gainty wrote: ssh username@magno (or whatever the IP is assigned to magno in hosts file) netstat -ab | grep 80 //if you do not have HTTPServer running on 80 you will get no results //if you do have HTTPServer running on Port 80 you should see output //also if your HttpClient executeMethod is declared as public int executeMethod(HostConfiguration hostconfig, final HttpMethod method, final HttpState state) throws IOException, HttpException //you should call executeMethod with all of the params initialised e.g. try { int n=client.executeMethod(hostconfig,method,state) } catch(IOException ioe) { log.debug(Handle your IOException from client.executeMethod here); } catch(HttpException http_exception) { log.debug(Handle your HttpException from client.executeMethod here); } Saludos Cordiales, Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Thu, 3 Feb 2011 16:20:33 +0100 From: i.ma...@fdi.ucm.es Subject: Re: [vfs] - Problem with httpclient To: user@commons.apache.org I would like to emphasize that the URI is given by a insecure Globus GASS session (the files are transfered using wget, so the session is ok). This code does not fail with other kind of URIs. Thus, are this kind of URIs valid for httpclient? Regards. On Wed, 2011-02-02 at 10:13 +0100, Ismael Marín Carrión wrote: Dear all, I am working in the development of a driver for a Grid system. In our tests, we are using GridSAM, which use the httpclient and commons-vfs. I am writing you to get some advise of how solving the next problem. GridSAM invokes httpclient classes from the HttpClientFactory class (org.apache.commons.vfs.provider.http), in the method createConnection(). public static HttpClient createConnection(HttpFileSystemConfigBuilder builder, String scheme, String hostname, int port, String username, String password, FileSystemOptions fileSystemOptions) throws
Re: [Math] Re: Levenberg Marquardt Simple Example
The initial attempt at the documentation is done. It can be found here. https://issues.apache.org/jira/browse/MATH-507 Please let me know if you would like me to make any corrections, modifications, etc. Cheers, - Ole On 01/31/2011 10:06 AM, Phil Steitz wrote: It would be great to have a nicely documented simple example to include in the User Guide. A patch or post containing such an example would be greatly appreciated. Thanks! Phil On Sun, Jan 30, 2011 at 11:12 PM, Ole Ersoyole.er...@gmail.com wrote: Gilles, Thanks - I have been looking at it. Starting to see the light. I'll post back if I get stuck. Thanks again, - Ole - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
[vfs] Where is version 1.1?
I have an app where a previous developer--no longer here--added commons-vfs-1.1.jar to our dependencies. I'd like to get the source code for this but the download site lists 1.0 as the latest official download (http://commons.apache.org/vfs/download_vfs.cgi) So my question is, where did he get this 1.1 JAR file? (in case it helps, the timestamp of the files within it is 11/8/2008 9:53 - 9:54 AM and this jar file weights 362,465 bytes) Contents of Manifest.mf: Manifest-Version: 1.0 Ant-Version: Apache Ant 1.7.0 Created-By: 11.0-b15 (Sun Microsystems Inc.) I just want to get the source code for the version we're using. Thanks in advance for your help, -- Rogelio - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
RE: [vfs] Where is version 1.1?
-Original Message- From: Rogelio Flores [mailto:rogelio.flo...@gmail.com] Sent: Monday, February 07, 2011 15:58 To: user@commons.apache.org Subject: [vfs] Where is version 1.1? VFS version 1.1 was not released AFAIK. This is probably a 1.1-SNAPSHOT build. There is a version 2.0 in the works ATM. Gary I have an app where a previous developer--no longer here--added commons-vfs-1.1.jar to our dependencies. I'd like to get the source code for this but the download site lists 1.0 as the latest official download (http://commons.apache.org/vfs/download_vfs.cgi) So my question is, where did he get this 1.1 JAR file? (in case it helps, the timestamp of the files within it is 11/8/2008 9:53 - 9:54 AM and this jar file weights 362,465 bytes) Contents of Manifest.mf: Manifest-Version: 1.0 Ant-Version: Apache Ant 1.7.0 Created-By: 11.0-b15 (Sun Microsystems Inc.) I just want to get the source code for the version we're using. Thanks in advance for your help, -- Rogelio - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [vfs] Where is version 1.1?
Thanks. And I suppose there's no archive of these snapshots, is there? -- Rogelio On Mon, Feb 7, 2011 at 4:10 PM, Gary Gregory ggreg...@seagullsoftware.com wrote: -Original Message- From: Rogelio Flores [mailto:rogelio.flo...@gmail.com] Sent: Monday, February 07, 2011 15:58 To: user@commons.apache.org Subject: [vfs] Where is version 1.1? VFS version 1.1 was not released AFAIK. This is probably a 1.1-SNAPSHOT build. There is a version 2.0 in the works ATM. Gary I have an app where a previous developer--no longer here--added commons-vfs-1.1.jar to our dependencies. I'd like to get the source code for this but the download site lists 1.0 as the latest official download (http://commons.apache.org/vfs/download_vfs.cgi) So my question is, where did he get this 1.1 JAR file? (in case it helps, the timestamp of the files within it is 11/8/2008 9:53 - 9:54 AM and this jar file weights 362,465 bytes) Contents of Manifest.mf: Manifest-Version: 1.0 Ant-Version: Apache Ant 1.7.0 Created-By: 11.0-b15 (Sun Microsystems Inc.) I just want to get the source code for the version we're using. Thanks in advance for your help, -- Rogelio - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
RE: [vfs] Where is version 1.1?
I'm pretty sure only the last SNAPSHOT build is kept, which is usually rebuilt once a day unless the build is in a CI framework and I am not sure what the set up for [vfs] is. Gary -Original Message- From: Rogelio Flores [mailto:rogelio.flo...@gmail.com] Sent: Monday, February 07, 2011 16:35 To: Commons Users List Subject: Re: [vfs] Where is version 1.1? Thanks. And I suppose there's no archive of these snapshots, is there? -- Rogelio On Mon, Feb 7, 2011 at 4:10 PM, Gary Gregory ggreg...@seagullsoftware.com wrote: -Original Message- From: Rogelio Flores [mailto:rogelio.flo...@gmail.com] Sent: Monday, February 07, 2011 15:58 To: user@commons.apache.org Subject: [vfs] Where is version 1.1? VFS version 1.1 was not released AFAIK. This is probably a 1.1-SNAPSHOT build. There is a version 2.0 in the works ATM. Gary I have an app where a previous developer--no longer here--added commons-vfs-1.1.jar to our dependencies. I'd like to get the source code for this but the download site lists 1.0 as the latest official download (http://commons.apache.org/vfs/download_vfs.cgi) So my question is, where did he get this 1.1 JAR file? (in case it helps, the timestamp of the files within it is 11/8/2008 9:53 - 9:54 AM and this jar file weights 362,465 bytes) Contents of Manifest.mf: Manifest-Version: 1.0 Ant-Version: Apache Ant 1.7.0 Created-By: 11.0-b15 (Sun Microsystems Inc.) I just want to get the source code for the version we're using. Thanks in advance for your help, -- Rogelio - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
RE: [vfs] Where is version 1.1?
All: Should we include a SVN revision number in the manifest.mf file to help out in cases like this? Gary Gregory Senior Software Engineer Rocket Software 3340 Peachtree Road, Suite 820 . Atlanta, GA 30326 . USA Tel: +1.404.760.1560 Email: ggreg...@seagullsoftware.com Web: seagull.rocketsoftware.com -Original Message- From: Rogelio Flores [mailto:rogelio.flo...@gmail.com] Sent: Monday, February 07, 2011 16:35 To: Commons Users List Subject: Re: [vfs] Where is version 1.1? Thanks. And I suppose there's no archive of these snapshots, is there? -- Rogelio On Mon, Feb 7, 2011 at 4:10 PM, Gary Gregory ggreg...@seagullsoftware.com wrote: -Original Message- From: Rogelio Flores [mailto:rogelio.flo...@gmail.com] Sent: Monday, February 07, 2011 15:58 To: user@commons.apache.org Subject: [vfs] Where is version 1.1? VFS version 1.1 was not released AFAIK. This is probably a 1.1-SNAPSHOT build. There is a version 2.0 in the works ATM. Gary I have an app where a previous developer--no longer here--added commons-vfs-1.1.jar to our dependencies. I'd like to get the source code for this but the download site lists 1.0 as the latest official download (http://commons.apache.org/vfs/download_vfs.cgi) So my question is, where did he get this 1.1 JAR file? (in case it helps, the timestamp of the files within it is 11/8/2008 9:53 - 9:54 AM and this jar file weights 362,465 bytes) Contents of Manifest.mf: Manifest-Version: 1.0 Ant-Version: Apache Ant 1.7.0 Created-By: 11.0-b15 (Sun Microsystems Inc.) I just want to get the source code for the version we're using. Thanks in advance for your help, -- Rogelio - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [vfs] Where is version 1.1?
On Mon, Feb 7, 2011 at 4:38 PM, Gary Gregory ggreg...@seagullsoftware.com wrote: All: Should we include a SVN revision number in the manifest.mf file to help out in cases like this? snip/ Don't think we can do much -- there is never any confusion for official releases and there is always potential for confusion for home brew jars (unless proper care is taken by those creating them). -Rahul Gary Gregory Senior Software Engineer Rocket Software 3340 Peachtree Road, Suite 820 . Atlanta, GA 30326 . USA Tel: +1.404.760.1560 Email: ggreg...@seagullsoftware.com Web: seagull.rocketsoftware.com -Original Message- From: Rogelio Flores [mailto:rogelio.flo...@gmail.com] Sent: Monday, February 07, 2011 16:35 To: Commons Users List Subject: Re: [vfs] Where is version 1.1? Thanks. And I suppose there's no archive of these snapshots, is there? -- Rogelio On Mon, Feb 7, 2011 at 4:10 PM, Gary Gregory ggreg...@seagullsoftware.com wrote: -Original Message- From: Rogelio Flores [mailto:rogelio.flo...@gmail.com] Sent: Monday, February 07, 2011 15:58 To: user@commons.apache.org Subject: [vfs] Where is version 1.1? VFS version 1.1 was not released AFAIK. This is probably a 1.1-SNAPSHOT build. There is a version 2.0 in the works ATM. Gary I have an app where a previous developer--no longer here--added commons-vfs-1.1.jar to our dependencies. I'd like to get the source code for this but the download site lists 1.0 as the latest official download (http://commons.apache.org/vfs/download_vfs.cgi) So my question is, where did he get this 1.1 JAR file? (in case it helps, the timestamp of the files within it is 11/8/2008 9:53 - 9:54 AM and this jar file weights 362,465 bytes) Contents of Manifest.mf: Manifest-Version: 1.0 Ant-Version: Apache Ant 1.7.0 Created-By: 11.0-b15 (Sun Microsystems Inc.) I just want to get the source code for the version we're using. Thanks in advance for your help, -- Rogelio - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [vfs] - Problem with httpclient
The question I have is why this is flagged as vfs and isn't being asked on the httpclient mailing list? Ralph On Feb 7, 2011, at 8:12 AM, Ismael Marín Carrión wrote: Hi all, I would like to recall my question. Briefly, httpclient is not able to connect to a HTTP server, which has opened a GASS session, using a URI such as: http://localhost:8180/opt/mytext.txt , where /opt/mytext.txt is on /. However, using a web server or tomcat servlet container, httpclient has not problems. Tracking the code, in the generateRequestLine method of HttpMethodBase.java, it does not receives the correct path. protected static String generateRequestLine(HttpConnection connection, String name, String requestPath, String query, String version) Thus, for the GASS session , requestPath shows: HEAD / HTTP/1.1 , instead of HEAD /opt/mytext.txt HTTP/1.1 But, using a URI of tomcat, such as http://localhost:8080/index.jsp , it shows: HEAD /index.jsp HTTP/1.1 I hope it clarifies the problem. Any comment or suggestion is welcome. Regards. On Thu, 2011-02-03 at 17:27 +0100, Ismael Marín Carrión wrote: Dear Martin, thanks for your response. The GASS session does not uses the port 80 (and magno is a local domain). It opens a HTTP session such as $ globus-gass-server -i -p 8180 http://localhost:8180 and so, you can transfer files using the globus-url-copy (in a grid environment) or simply, using wget to a URI such as http://localhost:8180/out/test.txt, where /out/test.txt is on /, the file is downloaded. It seems rare since using a URI of a web server or tomcat servlet, this application has not problems. So, I guess that httpclient is not ready for this kind of HTTP services, no? By other hand, the application previously set the HostConfiguration, client.setHostConfiguration(config);. I am not the developer of this code, and so I unknown some details. Regards. On Thu, 2011-02-03 at 11:09 -0500, Martin Gainty wrote: ssh username@magno (or whatever the IP is assigned to magno in hosts file) netstat -ab | grep 80 //if you do not have HTTPServer running on 80 you will get no results //if you do have HTTPServer running on Port 80 you should see output //also if your HttpClient executeMethod is declared as public int executeMethod(HostConfiguration hostconfig, final HttpMethod method, final HttpState state) throws IOException, HttpException //you should call executeMethod with all of the params initialised e.g. try { int n=client.executeMethod(hostconfig,method,state) } catch(IOException ioe) { log.debug(Handle your IOException from client.executeMethod here); } catch(HttpException http_exception) { log.debug(Handle your HttpException from client.executeMethod here); } Saludos Cordiales, Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Thu, 3 Feb 2011 16:20:33 +0100 From: i.ma...@fdi.ucm.es Subject: Re: [vfs] - Problem with httpclient To: user@commons.apache.org I would like to emphasize that the URI is given by a insecure Globus GASS session (the files are transfered using wget, so the session is ok). This code does not fail with other kind of URIs. Thus, are this kind of URIs valid for httpclient? Regards. On Wed, 2011-02-02 at 10:13 +0100, Ismael Marín Carrión wrote: Dear all, I am working in the development of a driver for a Grid system. In our tests, we are using GridSAM, which use the httpclient and commons-vfs. I am writing you to get some advise of how solving the next problem. GridSAM invokes httpclient classes from the HttpClientFactory class (org.apache.commons.vfs.provider.http), in the method createConnection(). public static HttpClient createConnection(HttpFileSystemConfigBuilder builder, String scheme, String hostname, int port, String username, String password,
Re: [vfs] Where is version 1.1?
I wasn't aware that vfs snapshots were being built by us. Perhaps that happened before I started working on vfs. For my use at my employer I've been manually building 2.0 releases internally using the svn revision in the maven version. Ralph On Feb 7, 2011, at 2:16 PM, Rahul Akolkar wrote: On Mon, Feb 7, 2011 at 4:38 PM, Gary Gregory ggreg...@seagullsoftware.com wrote: All: Should we include a SVN revision number in the manifest.mf file to help out in cases like this? snip/ Don't think we can do much -- there is never any confusion for official releases and there is always potential for confusion for home brew jars (unless proper care is taken by those creating them). -Rahul Gary Gregory Senior Software Engineer Rocket Software 3340 Peachtree Road, Suite 820 . Atlanta, GA 30326 . USA Tel: +1.404.760.1560 Email: ggreg...@seagullsoftware.com Web: seagull.rocketsoftware.com -Original Message- From: Rogelio Flores [mailto:rogelio.flo...@gmail.com] Sent: Monday, February 07, 2011 16:35 To: Commons Users List Subject: Re: [vfs] Where is version 1.1? Thanks. And I suppose there's no archive of these snapshots, is there? -- Rogelio On Mon, Feb 7, 2011 at 4:10 PM, Gary Gregory ggreg...@seagullsoftware.com wrote: -Original Message- From: Rogelio Flores [mailto:rogelio.flo...@gmail.com] Sent: Monday, February 07, 2011 15:58 To: user@commons.apache.org Subject: [vfs] Where is version 1.1? VFS version 1.1 was not released AFAIK. This is probably a 1.1-SNAPSHOT build. There is a version 2.0 in the works ATM. Gary I have an app where a previous developer--no longer here--added commons-vfs-1.1.jar to our dependencies. I'd like to get the source code for this but the download site lists 1.0 as the latest official download (http://commons.apache.org/vfs/download_vfs.cgi) So my question is, where did he get this 1.1 JAR file? (in case it helps, the timestamp of the files within it is 11/8/2008 9:53 - 9:54 AM and this jar file weights 362,465 bytes) Contents of Manifest.mf: Manifest-Version: 1.0 Ant-Version: Apache Ant 1.7.0 Created-By: 11.0-b15 (Sun Microsystems Inc.) I just want to get the source code for the version we're using. Thanks in advance for your help, -- Rogelio - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [vfs] Where is version 1.1?
Hi Rogelio, Rogelio Flores wrote: I have an app where a previous developer--no longer here--added commons-vfs-1.1.jar to our dependencies. I'd like to get the source code for this but the download site lists 1.0 as the latest official download (http://commons.apache.org/vfs/download_vfs.cgi) So my question is, where did he get this 1.1 JAR file? (in case it helps, the timestamp of the files within it is 11/8/2008 9:53 - 9:54 AM and this jar file weights 362,465 bytes) Contents of Manifest.mf: Manifest-Version: 1.0 Ant-Version: Apache Ant 1.7.0 Created-By: 11.0-b15 (Sun Microsystems Inc.) I just want to get the source code for the version we're using. I think, we cannot help you, because IMHO that jar has not been build by the ASF. The manifest lacks the usual entries that are added when we build the jar (even snapshots). So all you can do is to checkout the source from svn using the date above and hope that it matches your jar. - Jörg - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org