Invalid Subversion URL

Help
2009-07-27
2013-04-26
  • Mahmoud Khaled
    Mahmoud Khaled
    2009-07-27

    First, I want to send my congratulations for this good work.

    When I create a review request using Subversion URL that doesn't need any credentials, it works successfully. But I have problems when trying to request a review for a code that requires svn username/password.

    I have tried to add the following lines to resource_handler_svn.php in the constructor ResourceTypeSVN but still with the same error invalid subversion url
    svn_auth_set_parameter(SVN_AUTH_PARAM_DEFAULT_USERNAME, '********'); 
    svn_auth_set_parameter(SVN_AUTH_PARAM_DEFAULT_PASSWORD, '*******'); 

    I tried to make a php file and requested this php script and it worked successfully, but still doesn't work from groogle!!!
    <?php
    svn_auth_set_parameter(PHP_SVN_AUTH_PARAM_IGNORE_SSL_VERIFY_ERRORS, true);
    svn_auth_set_parameter(SVN_AUTH_PARAM_DEFAULT_USERNAME, '*********');
    svn_auth_set_parameter(SVN_AUTH_PARAM_DEFAULT_PASSWORD, '********');
    print_r(svn_ls("https://myproject.googlecode.com/svn/trunk/",-1));
    ?>

    Am I missing something ?
    Thanks in advance :)

     
    • Graham Pitt
      Graham Pitt
      2009-07-27

      Hello,

      The next version of Groogle will support subversion authentication natively.

      For now, you should be able to set the parameter $svn_ignore_ssl_verify_errors = true in htdocs/conf/svn.php and add your svn_auth_set_parameter lines after line 27 in resource_handler_svn.php (assuming you are using Groogle 0.9.1).  It looks like you are on the right track.

      The 'invalid subversion URL' is displayed upon any error querying the repository during url validation.  If you are using self signed certificates or the certificate is invalid then you will need to make sure that the ignore ssl errors parameter is enabled.

      If you are still getting errors the try setting the log level to PEAR_LOG_DEBUG in htdocs/conf/log.php and add tail the log/groogle.log file.  The chances are that the repository URL is being transformed via one of your URL transforms in conf/svn.php.

      Thanks,

      Graham

       
  • Hi Graham,
    I have tried everything you declared above. My repository is located in remote svn server.
    https://server_ip/svn/my_repo/trunk
    Now, When I am entering above url in subversion url then it shows nothing in Revisions box. My server requires authentication.

    Help Me.
    Thanx

     
  • oh yes I forgot to mention one thing that my repository server is located in svn server installed at Windows machine. Is this create any problem?

     
  • Graham Pitt
    Graham Pitt
    2012-07-25

    Hi,

    Is your https server using a self-signed certificate?  If so you need to flag the repository to ignore ssl validation errors when you declare the repository.

    Graham