You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Ehabc Jewabreh (JIRA)" <ji...@codehaus.org> on 2007/05/07 10:49:12 UTC

[jira] Created: (MPSCM-96) Svn provider- file protocol with 3 slashes

 Svn provider- file protocol with 3 slashes
-------------------------------------------

                 Key: MPSCM-96
                 URL: http://jira.codehaus.org/browse/MPSCM-96
             Project: maven-scm-plugin
          Issue Type: Bug
    Affects Versions: 1.6.1
            Reporter: Ehabc Jewabreh


 I am trying to use the scm:svn within maven release plugin. Currently we access the svn repository via file://....

If i use file://, then i get an error message from the  scm plugin (scm  url is invalid) as you can see in the sourcecode below. 
If i use file:///, then it will be accepted by the scm provider but i
get an error from the svn command.

Is it possible to change the implementation of the method AbstractSvnScmProvider.parseScmUrl( String scmSpecificUrl ) in order to
accept (file://)


###################################

 private ScmUrlParserResult parseScmUrl( String scmSpecificUrl )
    {
        ScmUrlParserResult result = new ScmUrlParserResult();

        String url = scmSpecificUrl;

        // ----------------------------------------------------------------------
        // Do some sanity checking of the SVN url
        // ----------------------------------------------------------------------

        if ( url.startsWith( "file" ) )
        {
            if ( !url.startsWith( "file:///" ) && !url.startsWith( "file://localhost/" ) )
            {
                result.messages.add( "A svn 'file' url must be on the form 'file:///' or 'file://localhost/'." );

                return result;
            }
        }

##############################



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (SCM-307) Svn provider- file protocol with 3 slashes

Posted by "Emmanuel Venisse (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SCM-307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Venisse updated SCM-307:
---------------------------------

    Issue Type: Improvement  (was: Bug)

>  Svn provider- file protocol with 3 slashes
> -------------------------------------------
>
>                 Key: SCM-307
>                 URL: http://jira.codehaus.org/browse/SCM-307
>             Project: Maven SCM
>          Issue Type: Improvement
>            Reporter: Ehab Jewabreh
>
>  I am trying to use the scm:svn within maven release plugin. Currently we access the svn repository via file://....
> If i use file://, then i get an error message from the  scm plugin (scm  url is invalid) as you can see in the sourcecode below. 
> If i use file:///, then it will be accepted by the scm provider but i
> get an error from the svn command.
> Is it possible to change the implementation of the method AbstractSvnScmProvider.parseScmUrl( String scmSpecificUrl ) in order to
> accept (file://)
> ###################################
>  private ScmUrlParserResult parseScmUrl( String scmSpecificUrl )
>     {
>         ScmUrlParserResult result = new ScmUrlParserResult();
>         String url = scmSpecificUrl;
>         // ----------------------------------------------------------------------
>         // Do some sanity checking of the SVN url
>         // ----------------------------------------------------------------------
>         if ( url.startsWith( "file" ) )
>         {
>             if ( !url.startsWith( "file:///" ) && !url.startsWith( "file://localhost/" ) )
>             {
>                 result.messages.add( "A svn 'file' url must be on the form 'file:///' or 'file://localhost/'." );
>                 return result;
>             }
>         }
> ##############################

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (SCM-307) Svn provider- file protocol with 3 slashes

Posted by "Emmanuel Venisse (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SCM-307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Venisse closed SCM-307.
--------------------------------

    Resolution: Fixed

>  Svn provider- file protocol with 3 slashes
> -------------------------------------------
>
>                 Key: SCM-307
>                 URL: http://jira.codehaus.org/browse/SCM-307
>             Project: Maven SCM
>          Issue Type: Improvement
>    Affects Versions: 1.0-rc1
>            Reporter: Ehab Jewabreh
>            Assignee: Emmanuel Venisse
>             Fix For: 1.0
>
>
>  I am trying to use the scm:svn within maven release plugin. Currently we access the svn repository via file://....
> If i use file://, then i get an error message from the  scm plugin (scm  url is invalid) as you can see in the sourcecode below. 
> If i use file:///, then it will be accepted by the scm provider but i
> get an error from the svn command.
> Is it possible to change the implementation of the method AbstractSvnScmProvider.parseScmUrl( String scmSpecificUrl ) in order to
> accept (file://)
> ###################################
>  private ScmUrlParserResult parseScmUrl( String scmSpecificUrl )
>     {
>         ScmUrlParserResult result = new ScmUrlParserResult();
>         String url = scmSpecificUrl;
>         // ----------------------------------------------------------------------
>         // Do some sanity checking of the SVN url
>         // ----------------------------------------------------------------------
>         if ( url.startsWith( "file" ) )
>         {
>             if ( !url.startsWith( "file:///" ) && !url.startsWith( "file://localhost/" ) )
>             {
>                 result.messages.add( "A svn 'file' url must be on the form 'file:///' or 'file://localhost/'." );
>                 return result;
>             }
>         }
> ##############################

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (SCM-307) Svn provider- file protocol with 3 slashes

Posted by "Emmanuel Venisse (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SCM-307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Venisse updated SCM-307:
---------------------------------

             Assignee: Emmanuel Venisse
    Affects Version/s: 1.0-rc1
        Fix Version/s: 1.0

>  Svn provider- file protocol with 3 slashes
> -------------------------------------------
>
>                 Key: SCM-307
>                 URL: http://jira.codehaus.org/browse/SCM-307
>             Project: Maven SCM
>          Issue Type: Improvement
>    Affects Versions: 1.0-rc1
>            Reporter: Ehab Jewabreh
>            Assignee: Emmanuel Venisse
>             Fix For: 1.0
>
>
>  I am trying to use the scm:svn within maven release plugin. Currently we access the svn repository via file://....
> If i use file://, then i get an error message from the  scm plugin (scm  url is invalid) as you can see in the sourcecode below. 
> If i use file:///, then it will be accepted by the scm provider but i
> get an error from the svn command.
> Is it possible to change the implementation of the method AbstractSvnScmProvider.parseScmUrl( String scmSpecificUrl ) in order to
> accept (file://)
> ###################################
>  private ScmUrlParserResult parseScmUrl( String scmSpecificUrl )
>     {
>         ScmUrlParserResult result = new ScmUrlParserResult();
>         String url = scmSpecificUrl;
>         // ----------------------------------------------------------------------
>         // Do some sanity checking of the SVN url
>         // ----------------------------------------------------------------------
>         if ( url.startsWith( "file" ) )
>         {
>             if ( !url.startsWith( "file:///" ) && !url.startsWith( "file://localhost/" ) )
>             {
>                 result.messages.add( "A svn 'file' url must be on the form 'file:///' or 'file://localhost/'." );
>                 return result;
>             }
>         }
> ##############################

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Moved: (SCM-307) Svn provider- file protocol with 3 slashes

Posted by "Lukas Theussl (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SCM-307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukas Theussl moved MPSCM-96 to SCM-307:
----------------------------------------

    Affects Version/s:     (was: 1.6.1)
           Complexity: Intermediate
             Workflow: Maven New  (was: jira)
                  Key: SCM-307  (was: MPSCM-96)
              Project: Maven SCM  (was: maven-scm-plugin)

>  Svn provider- file protocol with 3 slashes
> -------------------------------------------
>
>                 Key: SCM-307
>                 URL: http://jira.codehaus.org/browse/SCM-307
>             Project: Maven SCM
>          Issue Type: Bug
>            Reporter: Ehab Jewabreh
>
>  I am trying to use the scm:svn within maven release plugin. Currently we access the svn repository via file://....
> If i use file://, then i get an error message from the  scm plugin (scm  url is invalid) as you can see in the sourcecode below. 
> If i use file:///, then it will be accepted by the scm provider but i
> get an error from the svn command.
> Is it possible to change the implementation of the method AbstractSvnScmProvider.parseScmUrl( String scmSpecificUrl ) in order to
> accept (file://)
> ###################################
>  private ScmUrlParserResult parseScmUrl( String scmSpecificUrl )
>     {
>         ScmUrlParserResult result = new ScmUrlParserResult();
>         String url = scmSpecificUrl;
>         // ----------------------------------------------------------------------
>         // Do some sanity checking of the SVN url
>         // ----------------------------------------------------------------------
>         if ( url.startsWith( "file" ) )
>         {
>             if ( !url.startsWith( "file:///" ) && !url.startsWith( "file://localhost/" ) )
>             {
>                 result.messages.add( "A svn 'file' url must be on the form 'file:///' or 'file://localhost/'." );
>                 return result;
>             }
>         }
> ##############################

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira