Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.0.9
-
Fix Version/s: 2.0.10
-
Component/s: dependencies task
-
Labels:None
-
Number of attachments :
Description
The default id for a remote repository is just the repo URL. However, a URL typically contains all kind of characters that are not safe for usage in local file paths. E.g. the colon ':' from the URL scheme will just blow up on Windows. The slashes from the URL also cause troubles for a path that is meant to be a simple file name instead of a directory spec.
Better choices for the default repo id could be the host name only or just some hex-encoded MD5-digest of the URL.
Issue Links
- is related to
-
MANTTASKS-78
unable to download a dependency when it is a SNAPSHOT and multiple remoteRepositories are used
-
- relates to
-
MANTTASKS-103
Can't deploy to a file: repository
-
I'm not sure using the hostname would be a good idea, since not all repository urls have a host name. For example deploying to the local file system "file:///home/user/stuff". Also it seems fairly common that two repositories could be on the same hostname.
Maybe the MD5 digest could work though.
When would the repository id be used in a file path that the special characters would blow up?