You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Harri Halttunen (JIRA)" <ji...@codehaus.org> on 2010/10/30 17:31:05 UTC

[jira] Created: (MGPG-33) Signing fails if passphrase contains non-English letters

Signing fails if passphrase contains non-English letters
--------------------------------------------------------

                 Key: MGPG-33
                 URL: http://jira.codehaus.org/browse/MGPG-33
             Project: Maven 2.x GPG Plugin
          Issue Type: Bug
    Affects Versions: 1.1
         Environment: - Mac OSX 10.6.4
- Maven 2.2.1
- Java 1.6.0_22
            Reporter: Harri Halttunen


If passphrase contains non-English letters, like ä, ö (Scandinavian alphabets) then signing fails.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] Updated: (MGPG-33) Signing fails if passphrase contains non-English letters

Posted by "Stephen Connolly (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MGPG-33?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stephen Connolly updated MGPG-33:
---------------------------------

    Labels: contributers-welcome  (was: )

> Signing fails if passphrase contains non-English letters
> --------------------------------------------------------
>
>                 Key: MGPG-33
>                 URL: https://jira.codehaus.org/browse/MGPG-33
>             Project: Maven 2.x GPG Plugin
>          Issue Type: Bug
>    Affects Versions: 1.1
>         Environment: - Mac OSX 10.6.4
> - Maven 2.2.1
> - Java 1.6.0_22
>            Reporter: Harri Halttunen
>              Labels: contributers-welcome
>
> If passphrase contains non-English letters, like ä, ö (Scandinavian alphabets) then signing fails.

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

       

[jira] Commented: (MGPG-33) Signing fails if passphrase contains non-English letters

Posted by "Stephen Connolly (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MGPG-33?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=276635#comment-276635 ] 

Stephen Connolly commented on MGPG-33:
--------------------------------------

Could somebody create a throwaway gpg key based test case? (i.e. create a GPG key that is not yours and you created just for the throw away test case, attach the key, the passphrase for the key, and hopefully a test project that shows the buggy behaviour)

> Signing fails if passphrase contains non-English letters
> --------------------------------------------------------
>
>                 Key: MGPG-33
>                 URL: https://jira.codehaus.org/browse/MGPG-33
>             Project: Maven 2.x GPG Plugin
>          Issue Type: Bug
>    Affects Versions: 1.1
>         Environment: - Mac OSX 10.6.4
> - Maven 2.2.1
> - Java 1.6.0_22
>            Reporter: Harri Halttunen
>              Labels: contributers-welcome
>
> If passphrase contains non-English letters, like ä, ö (Scandinavian alphabets) then signing fails.

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

       

[jira] Commented: (MGPG-33) Signing fails if passphrase contains non-English letters

Posted by "Harri Halttunen (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MGPG-33?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=241551#action_241551 ] 

Harri Halttunen commented on MGPG-33:
-------------------------------------

Here is the result of {{mvn -v}}:
{code:none}
Apache Maven 2.2.1 (r801777; 2009-08-06 22:16:01+0300)
Java version: 1.6.0_22
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: fi_FI, platform encoding: MacRoman
OS name: "mac os x" version: "10.6.4" arch: "x86_64" Family: "mac"
{code}

If I use {{gpg}} from the command line everything works just perfect. For example:
{code:none}
gpg -ab MyClass.java
{code}

{{gpg}} will ask for passphrase and everything works as expected. Maven gpg plugin however does not work no matter if I am using {{-Dgpg.passphrase}} or let the plugin ask for the passphrase. It started to work similarily than {{gpg}} when I removed all the Scandinavian letters from the passphrase.

One more thing. I noticed that if Ctrl-C is pressed while Maven gpg plugin asks for passphrase all the letters typed to the point when Ctlr-C was pressed are visible.

> Signing fails if passphrase contains non-English letters
> --------------------------------------------------------
>
>                 Key: MGPG-33
>                 URL: http://jira.codehaus.org/browse/MGPG-33
>             Project: Maven 2.x GPG Plugin
>          Issue Type: Bug
>    Affects Versions: 1.1
>         Environment: - Mac OSX 10.6.4
> - Maven 2.2.1
> - Java 1.6.0_22
>            Reporter: Harri Halttunen
>
> If passphrase contains non-English letters, like ä, ö (Scandinavian alphabets) then signing fails.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] Commented: (MGPG-33) Signing fails if passphrase contains non-English letters

Posted by "SebbASF (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MGPG-33?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=258048#action_258048 ] 

SebbASF commented on MGPG-33:
-----------------------------

Note that one can use the GPG2 agent to handle passwords.

> Signing fails if passphrase contains non-English letters
> --------------------------------------------------------
>
>                 Key: MGPG-33
>                 URL: http://jira.codehaus.org/browse/MGPG-33
>             Project: Maven 2.x GPG Plugin
>          Issue Type: Bug
>    Affects Versions: 1.1
>         Environment: - Mac OSX 10.6.4
> - Maven 2.2.1
> - Java 1.6.0_22
>            Reporter: Harri Halttunen
>
> If passphrase contains non-English letters, like ä, ö (Scandinavian alphabets) then signing fails.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] Commented: (MGPG-33) Signing fails if passphrase contains non-English letters

Posted by "Werner Guttmann (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MGPG-33?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=257596#action_257596 ] 

Werner Guttmann commented on MGPG-33:
-------------------------------------

I have got the same problem, but apparently not related to encoding and/or character sets. In other words, my passphrase is all numbers and letters only.

The problem for my seems to occur only when I try to use {{-Dgpg.keyname}} next to {{-Dgpg.passphrase}}. Why do I need to do this ? I have got more than on key in my setup, and I would like to use the non-default one.

Using pgp, I can perfectly well sign any file with the right key using 

{code}
> gpg --local-user <some-identity> -ab <filename>
{code}

Here's my setup re: Maven:

{code}
C:\Users\me>mvn -v
Apache Maven 3.0.2 (r1056850; 2011-01-09 01:58:10+0100)
Java version: 1.5.0_22, vendor: Sun Microsystems Inc.
Java home: C:\dev\java\jdk1.5.0_22\jre
Default locale: de_AT, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"
{code}

> Signing fails if passphrase contains non-English letters
> --------------------------------------------------------
>
>                 Key: MGPG-33
>                 URL: http://jira.codehaus.org/browse/MGPG-33
>             Project: Maven 2.x GPG Plugin
>          Issue Type: Bug
>    Affects Versions: 1.1
>         Environment: - Mac OSX 10.6.4
> - Maven 2.2.1
> - Java 1.6.0_22
>            Reporter: Harri Halttunen
>
> If passphrase contains non-English letters, like ä, ö (Scandinavian alphabets) then signing fails.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] Commented: (MGPG-33) Signing fails if passphrase contains non-English letters

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MGPG-33?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=241525#action_241525 ] 

Benjamin Bentmann commented on MGPG-33:
---------------------------------------

Given this is likely an encoding issue, you should also include infos about your local/encoding setup, e.g. the output of {{mvn -v}} and locale related environment variables.

> Signing fails if passphrase contains non-English letters
> --------------------------------------------------------
>
>                 Key: MGPG-33
>                 URL: http://jira.codehaus.org/browse/MGPG-33
>             Project: Maven 2.x GPG Plugin
>          Issue Type: Bug
>    Affects Versions: 1.1
>         Environment: - Mac OSX 10.6.4
> - Maven 2.2.1
> - Java 1.6.0_22
>            Reporter: Harri Halttunen
>
> If passphrase contains non-English letters, like ä, ö (Scandinavian alphabets) then signing fails.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira