[
https://issues.apache.org/jira/browse/MRM-1940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15998205#comment-15998205
]
Hudson commented on MRM-1940:
-----------------------------
SUCCESS: Integrated in Jenkins build archiva-master-build #1020 (See
[https://builds.apache.org/job/archiva-master-build/1020/])
MRM-1933, MRM-1940: Fixing repository check (martin_s:
[https://github.com/apache/archiva/commit/2bf5154f1366fc21c4ecb02ef4ef71ca6fdc5a45])
* (edit)
archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-api/src/main/java/org/apache/archiva/admin/model/beans/RemoteRepository.java
* (edit)
archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/RemoteRepositoriesServiceTest.java
* (edit)
archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRemoteRepositoriesService.java
> Slashes appended to remote repo url
> -----------------------------------
>
> Key: MRM-1940
> URL: https://issues.apache.org/jira/browse/MRM-1940
> Project: Archiva
> Issue Type: Bug
> Components: repository interface
> Affects Versions: 2.2.1
> Environment: ubuntu 14.04.1 LTS
> Reporter: Cristian Tarsoaga
> Assignee: Martin Stockhammer
> Fix For: 2.2.3
>
> Attachments: archiva-20170502 - Copy.log
>
>
> Archiva is used with remote repositories. I added two repo urls
> - http://nexus.thenewmotion.com/content/groups/public/
> - http://repo.maven.apache.org/maven2/
> Nexus repo is fine, maven central is not.
> Logs only show this:
> 2017-05-02 12:51:31,265 [qtp2059174882-28] ERROR
> org.apache.cxf.jaxrs.utils.JAXRSUtils [] - No message body writer has been
> found for class org.apache.archiva.rest.services.ArchivaRestError,
> ContentType: text/plain
> So I enabled debug logs (in log4j2.xml), and now I see this
> 2017-05-02 13:40:38,286 [Thread-49] DEBUG
> org.apache.archiva.redback.components.taskqueue.DefaultTaskQueue [] - pool
> 2017-05-02 13:40:38,300 [qtp725397266-25] DEBUG
> org.apache.archiva.proxy.common.DebugTransferListener [] - wagon debug
> http://nexus.thenewmotion.com/content/groups/public/// - Status code: 200
> 2017-05-02 13:40:38,325 [Thread-42] DEBUG
> org.apache.archiva.redback.components.taskqueue.DefaultTaskQueue [] - pool
> 2017-05-02 13:40:38,386 [Thread-49] DEBUG
> org.apache.archiva.redback.components.taskqueue.DefaultTaskQueue [] - pool
> 2017-05-02 13:40:38,425 [Thread-42] DEBUG
> org.apache.archiva.redback.components.taskqueue.DefaultTaskQueue [] - pool
> 2017-05-02 13:40:38,445 [qtp725397266-25] DEBUG
> org.apache.archiva.redback.rest.services.interceptors.ThreadLocalUserCleaner
> [] - handleMessage
> 2017-05-02 13:40:38,459 [qtp725397266-23] DEBUG
> org.apache.archiva.proxy.common.DebugTransferListener [] - wagon debug
> https://repo.maven.apache.org/maven2/// - Status code: 404
> 2017-05-02 13:40:38,460 [qtp725397266-23] DEBUG
> org.apache.archiva.redback.rest.services.interceptors.ThreadLocalUserCleaner
> [] - handleMessage
> 2017-05-02 13:40:38,460 [qtp725397266-23] ERROR
> org.apache.cxf.jaxrs.utils.JAXRSUtils [] - No message body writer has been
> found for class org.apache.archiva.rest.services.ArchivaRestError,
> ContentType: text/plain
> ==============
> Seems that Archiva appends two slashes at the end of my urls.
> Somehow nexus works, allows those extra slashes.
> Maven Central doesn't.
> I get the same error if I do not add myself one trailing slash.
> I still get two slashes at the end, and Maven Central query results in 404.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)