Discussion:
[jira] [Created] (MRM-1940) Slashes appended to repo url
Cristian Tarsoaga (JIRA)
8 years ago
Permalink
Cristian Tarsoaga created MRM-1940:
--------------------------------------

Summary: Slashes appended to repo url
Key: MRM-1940
URL: https://issues.apache.org/jira/browse/MRM-1940
Project: Archiva
Issue Type: Bug
Affects Versions: 2.2.1
Environment: ubuntu 14.04.1 LTS
Reporter: Cristian Tarsoaga
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)
Cristian Tarsoaga (JIRA)
8 years ago
Permalink
[ https://issues.apache.org/jira/browse/MRM-1940?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Cristian Tarsoaga updated MRM-1940:
-----------------------------------
Summary: Slashes appended to remote repo url (was: Slashes appended to repo url)
...
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
Martin Stockhammer (JIRA)
8 years ago
Permalink
[ https://issues.apache.org/jira/browse/MRM-1940?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Stockhammer reassigned MRM-1940:
---------------------------------------

Assignee: Martin Stockhammer
...
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
Martin Stockhammer (JIRA)
8 years ago
Permalink
[ https://issues.apache.org/jira/browse/MRM-1940?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Stockhammer updated MRM-1940:
------------------------------------
Fix Version/s: 2.2.3
...
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
Martin Stockhammer (JIRA)
8 years ago
Permalink
[ https://issues.apache.org/jira/browse/MRM-1940?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Stockhammer updated MRM-1940:
------------------------------------
Component/s: repository interface
...
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
Hudson (JIRA)
8 years ago
Permalink
[ 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
...
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
Martin Stockhammer (JIRA)
8 years ago
Permalink
[ https://issues.apache.org/jira/browse/MRM-1940?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Stockhammer resolved MRM-1940.
-------------------------------------
Resolution: Fixed

Fix will be released with 2.2.3
...
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
Cristian Tarsoaga (JIRA)
8 years ago
Permalink
[ https://issues.apache.org/jira/browse/MRM-1940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16009509#comment-16009509 ]

Cristian Tarsoaga commented on MRM-1940:
----------------------------------------

already got the 2.2.3 nightly build, issue is fixed
thanks a lot Martin!
...
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Loading...