maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Jean-Prost (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (WAGON-487) Saved password with french accent breaks deployment
Date Thu, 03 May 2018 08:05:00 GMT

    [ https://issues.apache.org/jira/browse/WAGON-487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16462077#comment-16462077
] 

Dominique Jean-Prost edited comment on WAGON-487 at 5/3/18 8:04 AM:
--------------------------------------------------------------------

Well, I still cannot manage to get it done.
 I added this to my {{settings.xml}}
{code:xml}
<settings>
...
	<servers>
		<server>
			<id>repo-snapshots</id>
			<username>djeanprost</username>
			<password>passwordé</password>
			 <configuration>
				<httpConfiguration>
					<put>
						<params>
							<property>
								<name>http.auth.credential-charset</name>
								<value>UTF-8</value>
							</property>
						</params>
					</put>
				</httpConfiguration>
			</configuration>
		</server>
	</servers>
...
</settings>

{code}
I copied {{J:\git\maven-wagon\wagon-providers\wagon-http\target\wagon-http-2.13-SNAPSHOT-shaded.jar}}
to {{C:\bin\apache-maven-3.5.3\lib\ext\wagon-http-2.13-SNAPSHOT-shaded.jar}} and tried to
deploy my artifact, but it still doesn't work.
 I tried with another password, same configuration, and it's ok.

Actually, I'm not sure the setup I discribed is ok. Can you confirm it is ? Thank you.
{code:java}
 mvn --version
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512M; support was removed
in 8.0
Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297; 2018-02-24T20:49:05+01:00)
Maven home: C:\bin\apache-maven-3.5.3\bin\..
Java version: 1.8.0_152, vendor: Oracle Corporation
Java home: C:\bin\jdk1.8.0_152\jre
Default locale: fr_FR, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
{code}


was (Author: djeanprost):
Well, I still cannot manage to get it done.
 I added this to my {{settings.xml}}
{code:xml}
<settings>
	<localRepository>c:/maven-repository</localRepository>
	<servers>
		<server>
			<id>repo-snapshots</id>
			<username>djeanprost</username>
			<password>passwordé</password>
			 <configuration>
				<httpConfiguration>
					<put>
						<params>
							<property>
								<name>http.auth.credential-charset</name>
								<value>UTF-8</value>
							</property>
						</params>
					</put>
				</httpConfiguration>
			</configuration>
		</server>
	</servers>
{code}
I copied {{J:\git\maven-wagon\wagon-providers\wagon-http\target\wagon-http-2.13-SNAPSHOT-shaded.jar}}
to {{C:\bin\apache-maven-3.5.3\lib\ext\wagon-http-2.13-SNAPSHOT-shaded.jar}} and tried to
deploy my artifact, but it still doesn't work.
 I tried with another password, same configuration, and it's ok.

Actually, I'm not sure the setup I discribed is ok. Can you confirm it is ? Thank you.
{code:java}
 mvn --version
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512M; support was removed
in 8.0
Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297; 2018-02-24T20:49:05+01:00)
Maven home: C:\bin\apache-maven-3.5.3\bin\..
Java version: 1.8.0_152, vendor: Oracle Corporation
Java home: C:\bin\jdk1.8.0_152\jre
Default locale: fr_FR, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
{code}

> Saved password with french accent breaks deployment
> ---------------------------------------------------
>
>                 Key: WAGON-487
>                 URL: https://issues.apache.org/jira/browse/WAGON-487
>             Project: Maven Wagon
>          Issue Type: New Feature
>          Components: wagon-http
>    Affects Versions: 2.12
>            Reporter: Dominique Jean-Prost
>            Priority: Critical
>             Fix For: waiting-for-feedback
>
>
> I cannot deploy any artifact to my sonatype nexus instance when using a pasword with
french accetn, like 'é'.
> This instance needs authentication to deploy.
> My test : 
> # Check authentication against nexus directly with a password containing accent : OK
> # Check deploy with clear password in {{settings.xml}} with no accent : OK
> # Check deploy with encrypted password in {{settings.xml}} with no accent : OK
> # Check deploy with clear password in {{settings.xml}} with accent : KO
> # Check deploy with encrypted password in {{settings.xml}} with accent : KO
> After many minutes of debugging, I managed to verify that my password is correctly "read"
in the settings {{org.apache.maven.settings.Server}} : it has nothing to do with {{settings.xml}}
XML encoding.
> When finally wagon enters the game, the http header with authentication basic contains
a '? ' instead of my 'é'. I managed to narrow the problem to {{org.apache.maven.wagon.providers.http.httpclient.impl.auth.BasicScheme}}
which I think is the cuplrit by not dealing correctly with charset encoding in the {{authenticate}}
method.
> I came to the end of what I can do for the moment, appart of changing my password to
remove the accent.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message