Skip to content

[MJARSIGNER-62] additionalArguments should not have double quotes #87

@jira-importer

Description

@jira-importer

Manfred Koch opened MJARSIGNER-62 and commented

Adding additional arguments to the jarsigner with the arguments option will be double qouted in the command line. That causes errors and should be avoided.

 

Example:

 

<arguments>-certchain c:\chain.crt</arguments>

 

Results in

c:\Jenkins\tools\hudson.model.JDK\jdk-1.8.0_144-windows-x64\jre\..\bin\jarsigner.exe -keystore NONE -storepass *** -storetype PKCS11 -providerClass sun.security.pkcs11.SunPKCS11 -providerArg C:\config.conf "-certchain c:\chain.crt" -tsa http://timestamp.digicert.com library.jar alias

That can't be executed. I check that manually on the system.

But without double qoutes

c:\Jenkins\tools\hudson.model.JDK\jdk-1.8.0_144-windows-x64\jre\..\bin\jarsigner.exe -keystore NONE -storepass *** -storetype PKCS11 -providerClass sun.security.pkcs11.SunPKCS11 -providerArg C:\config.conf -certchain c:\chain.crt -tsa http://timestamp.digicert.com library.jar alias

it is possible to execute the command. I have checked the source code of the AbstractJarsignerMojo. All additionalArguments should not be double quoted.

 


Affects: 3.0.0

Issue Links:

Remote Links:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:majorMajor loss of function

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions