Closed GoogleCodeExporter closed 9 years ago
Check this out.
Original comment by vojta.kr...@gmail.com
on 7 Nov 2012 at 11:55
Attachments:
Check this out.
Original comment by vojta.kr...@gmail.com
on 7 Nov 2012 at 11:55
Attachments:
Hi,
On which source folder shall i apply this patch? i tried on the latest and on
the rev 256 in trunk and in tag 1.6.5, but always get some error messages, like
this:
[ibrain2@systemsx04 src]$ patch -p1 < ../../../Authentication.patch
(Stripping trailing CRs from patch.)
patching file main/java/org/grep4j/core/model/ServerDetails.java
Hunk #1 FAILED at 21.
Hunk #2 FAILED at 36.
Hunk #3 FAILED at 46.
Hunk #4 FAILED at 67.
4 out of 4 hunks FAILED -- saving rejects to file
main/java/org/grep4j/core/model/ServerDetails.java.rej
(Stripping trailing CRs from patch.)
patching file test/java/org/grep4j/core/fixtures/ServerDetailsFixtures.java
(Stripping trailing CRs from patch.)
patching file main/java/org/grep4j/core/model/ProfileBuilder.java
(Stripping trailing CRs from patch.)
patching file main/java/org/grep4j/core/model/BasicAuthentication.java
(Stripping trailing CRs from patch.)
patching file test/java/org/grep4j/core/model/ServerDetailsTest.java
Hunk #1 FAILED at 14.
1 out of 1 hunk FAILED -- saving rejects to file
test/java/org/grep4j/core/model/ServerDetailsTest.java.rej
(Stripping trailing CRs from patch.)
patching file main/java/org/grep4j/core/model/KeyAuthentication.java
(Stripping trailing CRs from patch.)
patching file main/java/org/grep4j/core/command/linux/SshCommandExecutor.java
Hunk #1 FAILED at 11.
Hunk #2 FAILED at 46.
Hunk #3 FAILED at 65.
3 out of 3 hunks FAILED -- saving rejects to file
main/java/org/grep4j/core/command/linux/SshCommandExecutor.java.rej
(Stripping trailing CRs from patch.)
patching file test/java/org/grep4j/core/model/ProfileValidationTest.java
(Stripping trailing CRs from patch.)
patching file main/java/org/grep4j/core/model/Authentication.java
Thanks,
Bela
Original comment by hullarb
on 9 Jan 2013 at 1:11
try this, it should work on newest revision.
Original comment by vojta.kr...@gmail.com
on 9 Jan 2013 at 2:42
Attachments:
and you should apply it on the project folder
Original comment by vojta.kr...@gmail.com
on 9 Jan 2013 at 2:44
also these dependencies might come handy if you want to try it
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcpkix-jdk15on</artifactId>
<version>1.47</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk16</artifactId>
<version>1.46</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-ext-jdk15on</artifactId>
<version>1.47</version>
<scope>test</scope>
</dependency>
Original comment by vojta.kr...@gmail.com
on 9 Jan 2013 at 2:46
Thanks for the quick response, unfortunately it still not works with me. I
tried on the trunk of the latest revision (267) and on rev 264 (this was in the
new patch). I got the following errors:
dyn-43-99:src hullarb$ patch -p1 < ../KeyAuthentication.patch
(Stripping trailing CRs from patch.)
patching file main/java/org/grep4j/core/model/ServerDetails.java
Hunk #1 FAILED at 21.
Hunk #2 FAILED at 36.
Hunk #3 FAILED at 46.
Hunk #4 FAILED at 67.
Hunk #5 FAILED at 97.
5 out of 5 hunks FAILED -- saving rejects to file
main/java/org/grep4j/core/model/ServerDetails.java.rej
(Stripping trailing CRs from patch.)
patching file test/java/org/grep4j/core/fixtures/ServerDetailsFixtures.java
(Stripping trailing CRs from patch.)
patching file main/java/org/grep4j/core/model/ProfileBuilder.java
(Stripping trailing CRs from patch.)
patching file main/java/org/grep4j/core/model/BasicAuthentication.java
(Stripping trailing CRs from patch.)
patching file main/java/org/grep4j/core/command/linux/SshjCommandExecutor.java
Hunk #1 FAILED at 10.
Hunk #2 FAILED at 28.
Hunk #3 FAILED at 50.
Hunk #4 FAILED at 64.
Hunk #5 FAILED at 115.
5 out of 5 hunks FAILED -- saving rejects to file
main/java/org/grep4j/core/command/linux/SshjCommandExecutor.java.rej
(Stripping trailing CRs from patch.)
patching file test/java/org/grep4j/core/model/ServerDetailsTest.java
Hunk #1 FAILED at 19.
1 out of 1 hunk FAILED -- saving rejects to file
test/java/org/grep4j/core/model/ServerDetailsTest.java.rej
(Stripping trailing CRs from patch.)
patching file main/java/org/grep4j/core/model/KeyAuthentication.java
(Stripping trailing CRs from patch.)
patching file test/java/org/grep4j/core/model/ProfileValidationTest.java
(Stripping trailing CRs from patch.)
patching file main/java/org/grep4j/core/model/Authentication.java
(Stripping trailing CRs from patch.)
patching file main/java/org/grep4j/core/command/linux/JschCommandExecutor.java
Hunk #1 FAILED at 3.
Hunk #2 FAILED at 37.
2 out of 2 hunks FAILED -- saving rejects to file
main/java/org/grep4j/core/command/linux/JschCommandExecutor.java.rej
Original comment by hullarb
on 10 Jan 2013 at 10:29
what do you use for applying?
Original comment by vojta.kr...@gmail.com
on 10 Jan 2013 at 10:40
I think the problem might be that it was created on windows, but I guess
Eclipse could handle it...
Original comment by vojta.kr...@gmail.com
on 10 Jan 2013 at 10:48
Thanks for the hint. Probably it's something with the char encoding. Finally i
could apply the patch from eclipse, previously i tried from command line with
tha patch command (on mac and on redhat). It worked on rev 264
But i see that you actively develop this project and maybe replace the ssh
engine under it. Also when i build this revision 47 tests are failing. Do you
plan to release a stable version soon which contains the key authentication?
Original comment by hullarb
on 10 Jan 2013 at 1:11
That was on me?
Original comment by vojta.kr...@gmail.com
on 11 Feb 2013 at 10:09
Hi Guys,
yes, we are going soon to support authentication using public key.
Thanks for the feedback
Original comment by marcocast@gmail.com
on 24 Feb 2013 at 11:33
Original comment by marcocast@gmail.com
on 28 Feb 2013 at 9:21
Original comment by marcocast@gmail.com
on 28 Feb 2013 at 9:21
Original comment by marcocast@gmail.com
on 6 Mar 2013 at 3:47
released in 1.8.0
Original comment by marcocast@gmail.com
on 11 Mar 2013 at 11:30
Hi Guys,
Thanks for the public key support, it looks really good.
The only little problem i had is that the example you have on the main page
doesn't work. If you specify the key file with the tilde like ~/.ssh/id_rsa
then you get FileNotFoundException. It worked to me with absolute path.
Original comment by hullarb
on 3 Apr 2013 at 1:46
Thanks for the feedback, I will have a look at it soon
Original comment by marcocast@gmail.com
on 3 Apr 2013 at 2:18
Original comment by marcocast@gmail.com
on 27 Apr 2013 at 9:50
Original issue reported on code.google.com by
vojta.kr...@gmail.com
on 6 Nov 2012 at 2:13