[ 
https://jira.codehaus.org/browse/MSITE-601?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=308778#comment-308778
 ] 

Rob Elliot commented on MSITE-601:
----------------------------------

Followed this link from issue MSITE-654. The discussion about valid URIs is a 
red herring; yes https://USERNAME:passw...@code.google.com/p/MYPROJECT.site/./ 
is a valid URI, but that doesn't mean it points to the same resource as 
https://USERNAME:passw...@code.google.com/p/MYPROJECT.site . Specifically, the 
second (correct) one is effectively a URI to a file, whereas the one ending in 
/./ is a URI to a directory. If as far as Google are concerned the Mercurial 
repo is a file (and Github have the same opinion about their git repositories) 
then the second URI quite rightly returns a 404.

It's the same as trying to run the following set of commands:
{code:none}
echo "some text" > afile.txt
cat afile.txt
cat afile.txt/
cat afile.txt/./
{code}

The first cat will work, the latter two will not because they are paths to a 
directory and afile.txt is not a directory. You can't just randomly append a 
slash to a URI and expect it to have the same meaning as the URI without the 
slash. Sometimes it does, sometimes it doesn't and both possibilities are valid.

                
> Period added to URL prevents proper cloning with Mercurial
> ----------------------------------------------------------
>
>                 Key: MSITE-601
>                 URL: https://jira.codehaus.org/browse/MSITE-601
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: site:deploy
>    Affects Versions: 3.0-beta-3
>         Environment: Javac 7 on Fedora Linux 15, Mercurial 1.9
>            Reporter: Leon Blakey
>            Priority: Critical
>             Fix For: backlog
>
>
> I deploy my Maven site over Mercurial on Google Code. I use this configuration
> {code:xml}<distributionManagement>
>       <!--Site deploy repository-->
>       <site>
>               <id>MYPROJECT.googlecode.com</id>
>               <url>scm:hg:https://code.google.com/p/MYPROJECT.site/</url>
>       </site>
> </distributionManagement>{code}
> And a standard <server> in settings.xml
> {code:xml}<servers>
>       <server>
>               <id>MYPROJECT.googlecode.com</id>
>               <username>USERNAME</username>
>               <password>PASSWORD</password>
>       </server>
> </servers>{code}
> However when running site:deploy it decides that it should add a dot to the 
> URL, meaning it tries to execute this command
> EXECUTING: /bin/sh -c cd /tmp && hg clone -r tip 
> https://USERNAME:passw...@code.google.com/p/MYPROJECT.site//. 
> /tmp/wagon-scm1348091978.checkout
> Which on Google and other repositories gives a 404 since the file . (look at 
> the end of the URL) doesn't exist. Why is that period there? Is it coming 
> from Maven Site or the Mercurial plugin (I'm assuming here)? Can it get 
> removed>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to