Hi Christian,

I tested pysvn on our server by just using it to successfully checkout the 
repo in question:

[root@wlrbprod01 ~]# /usr/local/bin/python
Python 2.7.5 (default, Nov  5 2017, 11:12:51) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-18)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pysvn
>>> client = pysvn.Client()
>>> 
client.checkout("http://10.XX.XX.XX:89/svn/ourproject/16.4.0","/tmp/test";)
<Revision kind=number 0>

The ReviewBoard logs don't show this failure or a trace for it, and I'm not 
sure how to get more debugging information out of it. As near as I can 
tell, both my test and reviewboard are using the exact same set of shared 
libraries for both pysvn and libsvn, including libsvn_ra_serf, which I 
believe provides the support for http schemas. This should be working, but 
I can't figure out why it isn't.


On Tuesday, 30 January 2018 19:10:12 UTC-7, Christian Hammond wrote:
>
> Hi Rob,
>
> This error is coming directly from libsvn (by way of PySVN).
>
> Can you show me the command line and PySVN testing you performed for this 
> on the server?
>
> Christian
>
> On Tue, Jan 30, 2018 at 1:40 PM, Rob Petti <rob....@gmail.com 
> <javascript:>> wrote:
>
>> Hi there,
>>
>> I'm currently using ReviewBoard 2.5.16, and we're running into issues 
>> using it with http svn urls. Any time we try to post reviews we get this 
>> error back:
>> Unrecognized URL scheme for '
>> http://10.XX.XX.XX:89/svn/ourproject/16.4.0/run-tests.js' (HTTP 400, API 
>> Error 224)
>>
>> I already checked the svn CLI installed on the RB host server, and it has 
>> http/https support:
>> [root@wlrbprod01 conf]# svn --version
>> svn, version 1.8.19 (r1800620)
>>    compiled Aug 10 2017, 22:07:28 on x86_64-unknown-linux-gnu
>>
>> Copyright (C) 2017 The Apache Software Foundation.
>> This software consists of contributions made by many people;
>> see the NOTICE file for more information.
>> Subversion is open source software, see http://subversion.apache.org/
>>
>> The following repository access (RA) modules are available:
>>
>> * ra_svn : Module for accessing a repository using the svn network 
>> protocol.
>>   - with Cyrus SASL authentication
>>   - handles 'svn' scheme
>> * ra_local : Module for accessing a repository on local disk.
>>   - handles 'file' scheme
>> * ra_serf : Module for accessing a repository via WebDAV protocol using 
>> serf.
>>   - using serf 1.3.4
>>   - handles 'http' scheme
>>   - handles 'https' scheme
>>
>>
>> Additionally, I manually tested pysvn, and it also works with http urls.
>>
>> I'm frankly at a loss here, so any assistance would be appreciated! The 
>> host server is an RHEL6 machine with Python 2.7 installed. The full log 
>> from rbt follows:
>>
>> > rbt post -d -o
>> >>> RBTools 0.7.10
>> >>> Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC 
>> v.1500 32 bit (Intel)]
>> >>> Running on Windows-10-10.0.14393
>> >>> Home = C:\Users\rpetti\AppData\Roaming
>> >>> Current directory = C:\Users\rpetti\Documents\rbtest
>> >>> Command line: rbt post -d -o
>> >>> Running: tf vc help
>> >>> Checking for a Subversion repository...
>> >>> Running: svn --non-interactive info
>> >>> Running: diff --version
>> >>> Running: svn --non-interactive --version -q
>> >>> repository info: Path: http://10.XX.XX.XX:89/svn/ourproject, Base 
>> path: /16.4.0, Supports changesets: False
>> >>> Making HTTP GET request to 
>> https://codereview.ourcomanydomain.com/api/
>> >>> Making HTTP GET request to 
>> https://codereview.ourcomanydomain.com/api/repositories/?tool=Subversion
>> >>> Cached response for HTTP GET 
>> https://codereview.ourcomanydomain.com/api/repositories/?tool=Subversion 
>> expired and was modified
>> >>> Running: svn --non-interactive info
>> >>> Running: diff --version
>> >>> Running: svn --non-interactive --version -q
>> >>> repository info: Path: http://10.XX.XX.XX:89/svn/ourproject, Base 
>> path: /16.4.0, Supports changesets: False
>> >>> Running: svn --non-interactive status -q --ignore-externals
>> >>> Running: svn --non-interactive diff --diff-cmd=diff --notice-ancestry 
>> -r BASE
>> >>> Running: svn --non-interactive info run-tests.js
>> >>> Running: svn --non-interactive diff --diff-cmd=diff --notice-ancestry 
>> -r BASE --no-diff-deleted
>> >>> Running: svn --non-interactive info run-tests.js
>> >>> Running: svn --non-interactive info run-tests.js
>> >>> Running: svn --non-interactive info run-tests.js
>> >>> Making HTTP GET request to 
>> https://codereview.ourcomanydomain.com/api/validation/diffs/
>> >>> Cached response for HTTP GET 
>> https://codereview.ourcomanydomain.com/api/validation/diffs/ expired and 
>> was modified
>> >>> Making HTTP POST request to 
>> https://codereview.ourcomanydomain.com/api/validation/diffs/
>> >>> Got API Error 224 (HTTP code 400): Unrecognized URL scheme for '
>> http://10.XX.XX.XX:89/svn/ourproject/16.4.0/run-tests.js'
>> >>> Error data: {u'stat': u'fail', u'err': {u'msg': u"Unrecognized URL 
>> scheme for 'http://10.XX.XX.XX:89/svn/ourproject/16.4.0/run-tests.js'", 
>> u'code': 224}}
>> Traceback (most recent call last):
>>   File "C:\Program Files 
>> (x86)\RBTools\bin\..\Python27\Scripts\rbt-script.py", line 11, in <module>
>>     load_entry_point('RBTools==0.7.10', 'console_scripts', 'rbt')()
>>   File "C:\Program Files 
>> (x86)\RBTools\Python27\lib\site-packages\rbtools-0.7.10-py2.7.egg\rbtools\commands\main.py",
>>  
>> line 133, in main
>>     command.run_from_argv([RB_MAIN, command_name] + args)
>>   File "C:\Program Files 
>> (x86)\RBTools\Python27\lib\site-packages\rbtools-0.7.10-py2.7.egg\rbtools\commands\__init__.py",
>>  
>> line 663, in run_from_argv
>>     exit_code = self.main(*args) or 0
>>   File "C:\Program Files 
>> (x86)\RBTools\Python27\lib\site-packages\rbtools-0.7.10-py2.7.egg\rbtools\commands\post.py",
>>  
>> line 812, in main
>>     (msg_prefix, e))
>> rbtools.commands.CommandError: Error validating diff
>>
>> Unrecognized URL scheme for '
>> http://10.XX.XX.XX:89/svn/ourproject/16.4.0/run-tests.js' (HTTP 400, API 
>> Error 224)
>>
>> ~Rob
>>
>> -- 
>> Supercharge your Review Board with Power Pack: 
>> https://www.reviewboard.org/powerpack/
>> Want us to host Review Board for you? Check out RBCommons: 
>> https://rbcommons.com/
>> Happy user? Let us know! https://www.reviewboard.org/users/
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Review Board Community" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to reviewboard...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Christian Hammond
> President/CEO of Beanbag <https://www.beanbaginc.com/>
> Makers of Review Board <https://www.reviewboard.org/>
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to