Re: SCMError: URL 'http://svn.domain.net/svn/repositories/repo/dir1/trunk/dir2/file.xml' is malformed or the scheme or host or path is missing

2010-10-21 Thread Christian Hammond
Excellent! That was sure bound to cause problems :)

Christian

-- 
Christian Hammond - chip...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com


On Thu, Oct 21, 2010 at 8:37 PM, James  wrote:

> Well I finally got it working.  After narrowing down the problem to
> pysvn I checked out the pysvn shared library with ldd and noticed that
> it was linked against two different versions of libneon.  I removed
> the conflicting version of the libneon library, recompiled pysvn, and
> now everything is working!
>
> -James
>
>
> On Oct 21, 8:45 pm, James  wrote:
> > I installed RB on my laptop, pointed it at the same SVN server, and it
> > works fine.  There must be something wrong with the SVN client,
> > libraries, or pysvn on that server.  I'm not sure what the problem is
> > there, but I'll either try a clean install on that machine or just
> > install it on a different server.
> >
> > Thanks,
> > James
> >
> > On Oct 21, 7:42 pm, James  wrote:
> >
> > > I traced the problem to line 287 in svn.py:
> >
> > > try:
> > > info = client.info2(path, recurse=False)
> > > logging.debug('SVN: Got repository information for %s: %s' %
> > >   (path, info))
> > > except ClientError, e:
> > > ...
> > > raise RepositoryNotFoundError()
> >
> > > I fired up a python shell and can now reproduce the error:
> > > pysvn._pysvn_2_4.ClientError: URL 'http://svn.company.net/svn/
> > > repositories/company' is malformed or the scheme or host or path is
> > > missing
> >
> > > I guess that's a good first step.  It seems like this must be some
> > > problem with pysvn, the svn client/libraries, the neon library
> > > (LD_LIBRARY_PATH?), or the configuration of our svn server.  I'm not
> > > really sure where to start looking next, though.  Maybe I'll try
> > > installing ReviewBoard on my laptop and have it point to our SVN
> > > server.  That might at least tell me if it's the client or server.
> >
> > > -James
> >
> > > On Oct 21, 7:00 pm, James  wrote:
> >
> > > > I went into the admin UI, removed the SVN repository, and then tried
> > > > to add it back in, but it keeps failing.  In the server logs I see:
> >
> > > > ERROR - SVN: Failed to get repository information forhttp://
> svn.company.net/svn/repositories/company/:URL'http://
> > > > svn.company.net/svn/repositories/company' is malformed or the scheme
> > > >  or host or path is missing
> >
> > > > On the machine where ReviewBoard is running (which also happens to be
> > > > where SVN is running) I did the following to make sure that it can
> > > > talk to SVN, resolve hostnames, etc.:
> >
> > > > svn cohttp://svn.company.net/svn/repositories/company/project/trunk
> > > > project
> >
> > > > This worked fine, so I guess SVN is working ok.  Here's the output of
> > > > svn --version in case that helps:
> >
> > > > --
> > > > svn, version 1.6.11 (r934486)
> > > >compiled Apr 20 2010, 00:24:22
> >
> > > > Copyright (C) 2000-2009 CollabNet.
> > > > Subversion is open source software, seehttp://subversion.tigris.org/
> > > > This product includes software developed by CollabNet (
> http://www.Collab.Net/).
> >
> > > > The following repository access (RA) modules are available:
> >
> > > > * ra_neon : Module for accessing a repository via WebDAV protocol
> > > > using Neon.
> > > >   - handles 'http' scheme
> > > >   - handles 'https' scheme
> > > > * 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
> > > > --
> >
> > > > I wonder if something with the basic auth on the SVN DAV server is
> > > > causing problems?  Does RB/SVN need to do an HTTP PROPFIND or OPTIONS
> > > > without authenticating?
> >
> > > > -James
> >
> > > > On Oct 21, 5:33 pm, Christian Hammond  wrote:
> >
> > > > > Hi,
> >
> > > > > Yeah, got the URL, but nothing stands out as being wrong. That's
> very
> > > > > strange.
> >
> > > > > Can you go into the admin UI, click on Repositories -> your SVN
> repository,
> > > > > and resave it? That should re-check the server for validity. If
> that fails,
> > > > > we know something is definitely wrong there with the repository
> path.
> >
> > > > > Is the path set to the root of the SVN repository, or some location
> within
> > > > > it?
> >
> > > > > I haven't seen that problem with git svn find-rev. What version of
> git are
> > > > > you using? I know other people (ourselves included at one point)
> were using
> > > > > git-svn locally, with Review Board hosted in SVN.
> >
> > > > > Christian
> >
> > > > > --
> > > > > Christian Hammond - chip...@chipx86.com
> > > > > Review Board -http://www.review

Re: SCMError: URL 'http://svn.domain.net/svn/repositories/repo/dir1/trunk/dir2/file.xml' is malformed or the scheme or host or path is missing

2010-10-21 Thread James
Well I finally got it working.  After narrowing down the problem to
pysvn I checked out the pysvn shared library with ldd and noticed that
it was linked against two different versions of libneon.  I removed
the conflicting version of the libneon library, recompiled pysvn, and
now everything is working!

-James


On Oct 21, 8:45 pm, James  wrote:
> I installed RB on my laptop, pointed it at the same SVN server, and it
> works fine.  There must be something wrong with the SVN client,
> libraries, or pysvn on that server.  I'm not sure what the problem is
> there, but I'll either try a clean install on that machine or just
> install it on a different server.
>
> Thanks,
> James
>
> On Oct 21, 7:42 pm, James  wrote:
>
> > I traced the problem to line 287 in svn.py:
>
> > try:
> >     info = client.info2(path, recurse=False)
> >     logging.debug('SVN: Got repository information for %s: %s' %
> >                   (path, info))
> > except ClientError, e:
> > ...
> >         raise RepositoryNotFoundError()
>
> > I fired up a python shell and can now reproduce the error:
> > pysvn._pysvn_2_4.ClientError: URL 'http://svn.company.net/svn/
> > repositories/company' is malformed or the scheme or host or path is
> > missing
>
> > I guess that's a good first step.  It seems like this must be some
> > problem with pysvn, the svn client/libraries, the neon library
> > (LD_LIBRARY_PATH?), or the configuration of our svn server.  I'm not
> > really sure where to start looking next, though.  Maybe I'll try
> > installing ReviewBoard on my laptop and have it point to our SVN
> > server.  That might at least tell me if it's the client or server.
>
> > -James
>
> > On Oct 21, 7:00 pm, James  wrote:
>
> > > I went into the admin UI, removed the SVN repository, and then tried
> > > to add it back in, but it keeps failing.  In the server logs I see:
>
> > > ERROR - SVN: Failed to get repository information 
> > > forhttp://svn.company.net/svn/repositories/company/:URL'http://
> > > svn.company.net/svn/repositories/company' is malformed or the scheme
> > >  or host or path is missing
>
> > > On the machine where ReviewBoard is running (which also happens to be
> > > where SVN is running) I did the following to make sure that it can
> > > talk to SVN, resolve hostnames, etc.:
>
> > > svn cohttp://svn.company.net/svn/repositories/company/project/trunk
> > > project
>
> > > This worked fine, so I guess SVN is working ok.  Here's the output of
> > > svn --version in case that helps:
>
> > > --
> > > svn, version 1.6.11 (r934486)
> > >    compiled Apr 20 2010, 00:24:22
>
> > > Copyright (C) 2000-2009 CollabNet.
> > > Subversion is open source software, seehttp://subversion.tigris.org/
> > > This product includes software developed by CollabNet 
> > > (http://www.Collab.Net/).
>
> > > The following repository access (RA) modules are available:
>
> > > * ra_neon : Module for accessing a repository via WebDAV protocol
> > > using Neon.
> > >   - handles 'http' scheme
> > >   - handles 'https' scheme
> > > * 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
> > > --
>
> > > I wonder if something with the basic auth on the SVN DAV server is
> > > causing problems?  Does RB/SVN need to do an HTTP PROPFIND or OPTIONS
> > > without authenticating?
>
> > > -James
>
> > > On Oct 21, 5:33 pm, Christian Hammond  wrote:
>
> > > > Hi,
>
> > > > Yeah, got the URL, but nothing stands out as being wrong. That's very
> > > > strange.
>
> > > > Can you go into the admin UI, click on Repositories -> your SVN 
> > > > repository,
> > > > and resave it? That should re-check the server for validity. If that 
> > > > fails,
> > > > we know something is definitely wrong there with the repository path.
>
> > > > Is the path set to the root of the SVN repository, or some location 
> > > > within
> > > > it?
>
> > > > I haven't seen that problem with git svn find-rev. What version of git 
> > > > are
> > > > you using? I know other people (ourselves included at one point) were 
> > > > using
> > > > git-svn locally, with Review Board hosted in SVN.
>
> > > > Christian
>
> > > > --
> > > > Christian Hammond - chip...@chipx86.com
> > > > Review Board -http://www.reviewboard.org
> > > > VMware, Inc. -http://www.vmware.com
>
> > > > On Thu, Oct 21, 2010 at 12:00 PM, James  wrote:
> > > > > Hi Christian,
>
> > > > > Did you get that URL I sent you?  Did it look strange in any way?
>
> > > > > I've also been experimenting with git-svn + post-review, hoping that
> > > > > might work better.  Unfortunately, it doesn't, but at least it's a
> > > > > different problem:
>
> > > > > $ post-review -dn
> > > > > >>> svn info
> > > > > >>> git rev-parse --git-d

Re: Error (with rather opaque Python diagnostic output) installing P4 integration

2010-10-21 Thread Christian Hammond
I'll be able to have more info for you tonight. By the time I figure
out what needs to be done, I'll probably know how to fix it.

Christian

On Thursday, October 21, 2010, Thor Simon  wrote:
>
>
> On Oct 20, 3:02 pm, Christian Hammond  wrote:
>> The one we use is a custom installer we wrote to do the installation of
>> Perforce's Python library. It's really just a wrapper.
>
> I am not Python savvy and really have no idea how to manually install
> the library so that Reviewboard can use it.  We're trying to migrate
> an existing Reviewboard from one machine to another and are stuck at
> this point.  Sigh.
>
>> I noticed this EOF error myself. It just started a couple days ago. I'm
>> trying to figure it out.
>
> Is there any simple  way to even tell what it's trying to fetch, short
> of taking a packet capture?  Maybe Perforce moved a file on their FTP
> server.
>
> Thor
>
> --
> Want to help the Review Board project? Donate today at 
> http://www.reviewboard.org/donate/
> Happy user? Let us know at http://www.reviewboard.org/users/
> -~--~~~~--~~--~--~---
> To unsubscribe from this group, send email to 
> reviewboard+unsubscr...@googlegroups.com
> For more options, visit this group at 
> http://groups.google.com/group/reviewboard?hl=en

-- 
-- 
Christian Hammond - chip...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en


problem submitting a diff when directories have been renamed using svn mv

2010-10-21 Thread jon
I renamed a bunch of various directories from 'integ' to 's1' by using
'svn mv' in my working copy as well as edited a bunch of files. I am
trying to post a review and it is failing. Here is the post-review -d
output as well as svn status.

I'm running RB 1.5.

post-review --version
RBTools 0.2

thoughts?

jon


>>> svn info
>>> diff --version
>>> repository info: Path: http://svn.mycompany.com/marin, Base path: 
>>> /branches/iteration-0004, Supports changesets: False
>>> svn propget reviewboard:url /Users/jon/checkout/branches/iteration-0004
>>> svn diff --diff-cmd=diff
>>> svn info billing/bin/daily.sh
>>> svn info ftpserver/bin/ftpd.sh
>>> svn info ftpserver/etc/conf/s1/ftpenv.properties
>>> svn info ftpserver/etc/conf/integ/ftpenv.properties
>>> svn info ftpserver/etc/conf/ftp-config.xml
>>> svn info acdc/bin/acdc.sh
>>> svn info acdc/bin/bidharness.sh
>>> svn info acdc/etc/conf/s1/env.properties
>>> svn info acdc/etc/conf/spring-server-app-config.xml
>>> svn info acdc/etc/conf/integ/env.properties
>>> svn info mscm/bin/StartServer
>>> svn info mscm/bin/JavaBridge.sh
>>> svn info mscm/bin/play.sh
>>> svn info mscm/etc/conf.zend/spring-client-config.xml
>>> svn info mscm/etc/conf.zend/s1/env.properties
>>> svn info mscm/etc/conf.zend/s1/failoverDB.properties
>>> svn info mscm/etc/conf.zend/integ/env.properties
>>> svn info mscm/etc/conf.zend/integ/failoverDB.properties
>>> svn info mscm/etc/conf/s1/env.properties
>>> svn info mscm/etc/conf/s1/failoverDB.properties
>>> svn info mscm/etc/conf/s1/datacloudmap.xml
>>> svn info mscm/etc/conf/spring-config.xml
>>> svn info mscm/etc/conf/schema-upgrade-config.xml
>>> svn info mscm/etc/conf/datacloudmap.xml
>>> svn info mscm/etc/conf/integ/env.properties
>>> svn info mscm/etc/conf/integ/failoverDB.properties
>>> svn info mscm/etc/conf/integ/datacloudmap.xml
>>> svn info cs/grails-app/conf/spring/resources.xml
>>> svn info cs/grails-app/conf/DataSource.groovy
>>> svn info cs/src/java/env/s1/env_sentry.properties
>>> svn info cs/src/java/env/s1/failoverDB.properties
>>> svn info cs/src/java/env/s1/env_csr.properties
>>> svn info cs/src/java/env/integ/env_sentry.properties
>>> svn info cs/src/java/env/integ/failoverDB.properties
>>> svn info cs/src/java/env/integ/env_csr.properties
>>> svn info olap_stitch/etc/conf/s1/env.properties
>>> svn info olap_stitch/etc/conf/olap_service_config.xml
>>> svn info olap_stitch/etc/conf/integ/env.properties
>>> svn info olap_stitch/etc/conf/integ/failoverDB.properties
>>> svn info billing/bin/daily.sh
>>> svn info billing/bin/daily.sh
>>> svn info billing/bin/daily.sh
>>> svn info ftpserver/bin/ftpd.sh
>>> svn info ftpserver/bin/ftpd.sh
>>> svn info ftpserver/bin/ftpd.sh
>>> svn info ftpserver/etc/conf/s1/ftpenv.properties
>>> svn info ftpserver/etc/conf/s1/ftpenv.properties
>>> svn info ftpserver/etc/conf/s1/ftpenv.properties
>>> svn info ftpserver/etc/conf/integ/ftpenv.properties
>>> svn info ftpserver/etc/conf/integ/ftpenv.properties
>>> svn info ftpserver/etc/conf/integ/ftpenv.properties
>>> svn info ftpserver/etc/conf/ftp-config.xml
>>> svn info ftpserver/etc/conf/ftp-config.xml
>>> svn info ftpserver/etc/conf/ftp-config.xml
>>> svn info acdc/bin/acdc.sh
>>> svn info acdc/bin/acdc.sh
>>> svn info acdc/bin/acdc.sh
>>> svn info acdc/bin/bidharness.sh
>>> svn info acdc/bin/bidharness.sh
>>> svn info acdc/bin/bidharness.sh
>>> svn info acdc/etc/conf/s1/env.properties
>>> svn info acdc/etc/conf/s1/env.properties
>>> svn info acdc/etc/conf/s1/env.properties
>>> svn info acdc/etc/conf/spring-server-app-config.xml
>>> svn info acdc/etc/conf/spring-server-app-config.xml
>>> svn info acdc/etc/conf/spring-server-app-config.xml
>>> svn info acdc/etc/conf/integ/env.properties
>>> svn info acdc/etc/conf/integ/env.properties
>>> svn info acdc/etc/conf/integ/env.properties
>>> svn info mscm/bin/StartServer
>>> svn info mscm/bin/StartServer
>>> svn info mscm/bin/StartServer
>>> svn info mscm/bin/JavaBridge.sh
>>> svn info mscm/bin/JavaBridge.sh
>>> svn info mscm/bin/JavaBridge.sh
>>> svn info mscm/bin/play.sh
>>> svn info mscm/bin/play.sh
>>> svn info mscm/bin/play.sh
>>> svn info mscm/etc/conf.zend/spring-client-config.xml
>>> svn info mscm/etc/conf.zend/spring-client-config.xml
>>> svn info mscm/etc/conf.zend/spring-client-config.xml
>>> svn info mscm/etc/conf.zend/s1/env.properties
>>> svn info mscm/etc/conf.zend/s1/env.properties
>>> svn info mscm/etc/conf.zend/s1/env.properties
>>> svn info mscm/etc/conf.zend/s1/failoverDB.properties
>>> svn info mscm/etc/conf.zend/s1/failoverDB.properties
>>> svn info mscm/etc/conf.zend/s1/failoverDB.properties
>>> svn info mscm/etc/conf.zend/integ/env.properties
>>> svn info mscm/etc/conf.zend/integ/env.properties
>>> svn info mscm/etc/conf.zend/integ/env.properties
>>> svn info mscm/etc/conf.zend/integ/failoverDB.properties
>>> svn info mscm/etc/conf.zend/integ/failoverDB.properties
>>> svn info mscm/etc/conf.zend/integ/failoverDB.properties
>>> svn info mscm/etc/conf/s1/env.properties
>>> svn inf

Re: SCMError: URL 'http://svn.domain.net/svn/repositories/repo/dir1/trunk/dir2/file.xml' is malformed or the scheme or host or path is missing

2010-10-21 Thread James
I installed RB on my laptop, pointed it at the same SVN server, and it
works fine.  There must be something wrong with the SVN client,
libraries, or pysvn on that server.  I'm not sure what the problem is
there, but I'll either try a clean install on that machine or just
install it on a different server.

Thanks,
James


On Oct 21, 7:42 pm, James  wrote:
> I traced the problem to line 287 in svn.py:
>
> try:
>     info = client.info2(path, recurse=False)
>     logging.debug('SVN: Got repository information for %s: %s' %
>                   (path, info))
> except ClientError, e:
> ...
>         raise RepositoryNotFoundError()
>
> I fired up a python shell and can now reproduce the error:
> pysvn._pysvn_2_4.ClientError: URL 'http://svn.company.net/svn/
> repositories/company' is malformed or the scheme or host or path is
> missing
>
> I guess that's a good first step.  It seems like this must be some
> problem with pysvn, the svn client/libraries, the neon library
> (LD_LIBRARY_PATH?), or the configuration of our svn server.  I'm not
> really sure where to start looking next, though.  Maybe I'll try
> installing ReviewBoard on my laptop and have it point to our SVN
> server.  That might at least tell me if it's the client or server.
>
> -James
>
> On Oct 21, 7:00 pm, James  wrote:
>
> > I went into the admin UI, removed the SVN repository, and then tried
> > to add it back in, but it keeps failing.  In the server logs I see:
>
> > ERROR - SVN: Failed to get repository information 
> > forhttp://svn.company.net/svn/repositories/company/:URL'http://
> > svn.company.net/svn/repositories/company' is malformed or the scheme
> >  or host or path is missing
>
> > On the machine where ReviewBoard is running (which also happens to be
> > where SVN is running) I did the following to make sure that it can
> > talk to SVN, resolve hostnames, etc.:
>
> > svn cohttp://svn.company.net/svn/repositories/company/project/trunk
> > project
>
> > This worked fine, so I guess SVN is working ok.  Here's the output of
> > svn --version in case that helps:
>
> > --
> > svn, version 1.6.11 (r934486)
> >    compiled Apr 20 2010, 00:24:22
>
> > Copyright (C) 2000-2009 CollabNet.
> > Subversion is open source software, seehttp://subversion.tigris.org/
> > This product includes software developed by CollabNet 
> > (http://www.Collab.Net/).
>
> > The following repository access (RA) modules are available:
>
> > * ra_neon : Module for accessing a repository via WebDAV protocol
> > using Neon.
> >   - handles 'http' scheme
> >   - handles 'https' scheme
> > * 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
> > --
>
> > I wonder if something with the basic auth on the SVN DAV server is
> > causing problems?  Does RB/SVN need to do an HTTP PROPFIND or OPTIONS
> > without authenticating?
>
> > -James
>
> > On Oct 21, 5:33 pm, Christian Hammond  wrote:
>
> > > Hi,
>
> > > Yeah, got the URL, but nothing stands out as being wrong. That's very
> > > strange.
>
> > > Can you go into the admin UI, click on Repositories -> your SVN 
> > > repository,
> > > and resave it? That should re-check the server for validity. If that 
> > > fails,
> > > we know something is definitely wrong there with the repository path.
>
> > > Is the path set to the root of the SVN repository, or some location within
> > > it?
>
> > > I haven't seen that problem with git svn find-rev. What version of git are
> > > you using? I know other people (ourselves included at one point) were 
> > > using
> > > git-svn locally, with Review Board hosted in SVN.
>
> > > Christian
>
> > > --
> > > Christian Hammond - chip...@chipx86.com
> > > Review Board -http://www.reviewboard.org
> > > VMware, Inc. -http://www.vmware.com
>
> > > On Thu, Oct 21, 2010 at 12:00 PM, James  wrote:
> > > > Hi Christian,
>
> > > > Did you get that URL I sent you?  Did it look strange in any way?
>
> > > > I've also been experimenting with git-svn + post-review, hoping that
> > > > might work better.  Unfortunately, it doesn't, but at least it's a
> > > > different problem:
>
> > > > $ post-review -dn
> > > > >>> svn info
> > > > >>> git rev-parse --git-dir
> > > > >>> git symbolic-ref -q HEAD
> > > > >>> git svn info
> > > > >>> repository info: 
> > > > >>> Path:http://svn.company.net/svn/repositories/company,
> > > > Base path: /Project/trunk, Supports changesets: False
> > > > >>> git merge-base master refs/heads/reviewboard-test
> > > > >>> git diff --no-color --no-prefix -r -u
> > > > f58148b4094952c076861bcf4a9714ed7093d9ad..refs/heads/reviewboard-test
> > > > >>> git svn find-rev f58148b4094952c076861bcf4a9714ed7093d9ad
> > > > None
>
> > > > The issue is that "git svn find-rev" returns noth

Re: post-review for p4 changelist

2010-10-21 Thread Christian Hammond
Using "0" as a server name isn't going to work. It should be a full IP
address or fully-qualified domain.

Christian

-- 
Christian Hammond - chip...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com


On Thu, Oct 21, 2010 at 3:19 AM, Dolphin  wrote:

> Hi All,
>
> I am getting this error while executing the command. [post-review -d
> p4changelist-num].
>
> >>> diff -urNp c:\docume~1\srinivar\locals~1\temp\tmpj5gzff
> c:\docume~1\srinivar\locals~1\temp\tmpripliy
> >>> Looking for ' 0/' cookie in C:\Documents and
> Settings\srinivar\Application Data\.post-review-cookies.txt
> >>> Couldn't load cookie file: [Errno 2] No such file or directory:
> 'C:\\Documents and Settings\\srinivar\\Application Da
> ta\\.post-review-cookies.txt'
> ==> Review Board Login Required
> Enter username and password for Review Board at 0/
> Username: srini
> Password:
> >>> Logging in with username "srini"
> >>> HTTP POSTing to http://0/0/api/json/accounts/login/: {'username':
> 'srini', 'password': '**'}
> Unable to access http://0/0/api/json/accounts/login/. The host path
> may be invalid
> 
>
> Any idea what is the solution:
>
> Other info:
> Review board is setup correctly.. I can create review requests with
> Graphics only.
>
> --
> Want to help the Review Board project? Donate today at
> http://www.reviewboard.org/donate/
> Happy user? Let us know at http://www.reviewboard.org/users/
> -~--~~~~--~~--~--~---
> To unsubscribe from this group, send email to
> reviewboard+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/reviewboard?hl=en

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en

Re: SCMError: URL 'http://svn.domain.net/svn/repositories/repo/dir1/trunk/dir2/file.xml' is malformed or the scheme or host or path is missing

2010-10-21 Thread James
I traced the problem to line 287 in svn.py:

try:
info = client.info2(path, recurse=False)
logging.debug('SVN: Got repository information for %s: %s' %
  (path, info))
except ClientError, e:
...
raise RepositoryNotFoundError()

I fired up a python shell and can now reproduce the error:
pysvn._pysvn_2_4.ClientError: URL 'http://svn.company.net/svn/
repositories/company' is malformed or the scheme or host or path is
missing

I guess that's a good first step.  It seems like this must be some
problem with pysvn, the svn client/libraries, the neon library
(LD_LIBRARY_PATH?), or the configuration of our svn server.  I'm not
really sure where to start looking next, though.  Maybe I'll try
installing ReviewBoard on my laptop and have it point to our SVN
server.  That might at least tell me if it's the client or server.

-James


On Oct 21, 7:00 pm, James  wrote:
> I went into the admin UI, removed the SVN repository, and then tried
> to add it back in, but it keeps failing.  In the server logs I see:
>
> ERROR - SVN: Failed to get repository information 
> forhttp://svn.company.net/svn/repositories/company/:URL 'http://
> svn.company.net/svn/repositories/company' is malformed or the scheme
>  or host or path is missing
>
> On the machine where ReviewBoard is running (which also happens to be
> where SVN is running) I did the following to make sure that it can
> talk to SVN, resolve hostnames, etc.:
>
> svn cohttp://svn.company.net/svn/repositories/company/project/trunk
> project
>
> This worked fine, so I guess SVN is working ok.  Here's the output of
> svn --version in case that helps:
>
> --
> svn, version 1.6.11 (r934486)
>    compiled Apr 20 2010, 00:24:22
>
> Copyright (C) 2000-2009 CollabNet.
> Subversion is open source software, seehttp://subversion.tigris.org/
> This product includes software developed by CollabNet 
> (http://www.Collab.Net/).
>
> The following repository access (RA) modules are available:
>
> * ra_neon : Module for accessing a repository via WebDAV protocol
> using Neon.
>   - handles 'http' scheme
>   - handles 'https' scheme
> * 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
> --
>
> I wonder if something with the basic auth on the SVN DAV server is
> causing problems?  Does RB/SVN need to do an HTTP PROPFIND or OPTIONS
> without authenticating?
>
> -James
>
> On Oct 21, 5:33 pm, Christian Hammond  wrote:
>
> > Hi,
>
> > Yeah, got the URL, but nothing stands out as being wrong. That's very
> > strange.
>
> > Can you go into the admin UI, click on Repositories -> your SVN repository,
> > and resave it? That should re-check the server for validity. If that fails,
> > we know something is definitely wrong there with the repository path.
>
> > Is the path set to the root of the SVN repository, or some location within
> > it?
>
> > I haven't seen that problem with git svn find-rev. What version of git are
> > you using? I know other people (ourselves included at one point) were using
> > git-svn locally, with Review Board hosted in SVN.
>
> > Christian
>
> > --
> > Christian Hammond - chip...@chipx86.com
> > Review Board -http://www.reviewboard.org
> > VMware, Inc. -http://www.vmware.com
>
> > On Thu, Oct 21, 2010 at 12:00 PM, James  wrote:
> > > Hi Christian,
>
> > > Did you get that URL I sent you?  Did it look strange in any way?
>
> > > I've also been experimenting with git-svn + post-review, hoping that
> > > might work better.  Unfortunately, it doesn't, but at least it's a
> > > different problem:
>
> > > $ post-review -dn
> > > >>> svn info
> > > >>> git rev-parse --git-dir
> > > >>> git symbolic-ref -q HEAD
> > > >>> git svn info
> > > >>> repository info: Path:http://svn.company.net/svn/repositories/company,
> > > Base path: /Project/trunk, Supports changesets: False
> > > >>> git merge-base master refs/heads/reviewboard-test
> > > >>> git diff --no-color --no-prefix -r -u
> > > f58148b4094952c076861bcf4a9714ed7093d9ad..refs/heads/reviewboard-test
> > > >>> git svn find-rev f58148b4094952c076861bcf4a9714ed7093d9ad
> > > None
>
> > > The issue is that "git svn find-rev" returns nothing when passed a git
> > > revision.  It works when passed a subversion revision number, though.
> > > Have you seen that before?  Google didn't turn up anything.
>
> > > -James
>
> > > On Oct 20, 8:12 am, James  wrote:
> > > > Sure, I'll send you the URL.  Thanks for looking into it.
>
> > > > -James
>
> > > > On Oct 19, 8:09 pm, Christian Hammond  wrote:
>
> > > > > Hi James,
>
> > > > > That is indeed strange. Without seeing the URL, it's hard to say. Is
> > > this
> > > > > indeed a fully-qualified domain?
>
> > > > > Just as a sanity check, would you feel comfortable 

Re: SCMError: URL 'http://svn.domain.net/svn/repositories/repo/dir1/trunk/dir2/file.xml' is malformed or the scheme or host or path is missing

2010-10-21 Thread James
I went into the admin UI, removed the SVN repository, and then tried
to add it back in, but it keeps failing.  In the server logs I see:

ERROR - SVN: Failed to get repository information for
http://svn.company.net/svn/repositories/company/: URL 'http://
svn.company.net/svn/repositories/company' is malformed or the scheme
 or host or path is missing

On the machine where ReviewBoard is running (which also happens to be
where SVN is running) I did the following to make sure that it can
talk to SVN, resolve hostnames, etc.:

svn co http://svn.company.net/svn/repositories/company/project/trunk
project

This worked fine, so I guess SVN is working ok.  Here's the output of
svn --version in case that helps:

--
svn, version 1.6.11 (r934486)
   compiled Apr 20 2010, 00:24:22

Copyright (C) 2000-2009 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (http://
www.Collab.Net/).

The following repository access (RA) modules are available:

* ra_neon : Module for accessing a repository via WebDAV protocol
using Neon.
  - handles 'http' scheme
  - handles 'https' scheme
* 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
--

I wonder if something with the basic auth on the SVN DAV server is
causing problems?  Does RB/SVN need to do an HTTP PROPFIND or OPTIONS
without authenticating?

-James


On Oct 21, 5:33 pm, Christian Hammond  wrote:
> Hi,
>
> Yeah, got the URL, but nothing stands out as being wrong. That's very
> strange.
>
> Can you go into the admin UI, click on Repositories -> your SVN repository,
> and resave it? That should re-check the server for validity. If that fails,
> we know something is definitely wrong there with the repository path.
>
> Is the path set to the root of the SVN repository, or some location within
> it?
>
> I haven't seen that problem with git svn find-rev. What version of git are
> you using? I know other people (ourselves included at one point) were using
> git-svn locally, with Review Board hosted in SVN.
>
> Christian
>
> --
> Christian Hammond - chip...@chipx86.com
> Review Board -http://www.reviewboard.org
> VMware, Inc. -http://www.vmware.com
>
> On Thu, Oct 21, 2010 at 12:00 PM, James  wrote:
> > Hi Christian,
>
> > Did you get that URL I sent you?  Did it look strange in any way?
>
> > I've also been experimenting with git-svn + post-review, hoping that
> > might work better.  Unfortunately, it doesn't, but at least it's a
> > different problem:
>
> > $ post-review -dn
> > >>> svn info
> > >>> git rev-parse --git-dir
> > >>> git symbolic-ref -q HEAD
> > >>> git svn info
> > >>> repository info: Path:http://svn.company.net/svn/repositories/company,
> > Base path: /Project/trunk, Supports changesets: False
> > >>> git merge-base master refs/heads/reviewboard-test
> > >>> git diff --no-color --no-prefix -r -u
> > f58148b4094952c076861bcf4a9714ed7093d9ad..refs/heads/reviewboard-test
> > >>> git svn find-rev f58148b4094952c076861bcf4a9714ed7093d9ad
> > None
>
> > The issue is that "git svn find-rev" returns nothing when passed a git
> > revision.  It works when passed a subversion revision number, though.
> > Have you seen that before?  Google didn't turn up anything.
>
> > -James
>
> > On Oct 20, 8:12 am, James  wrote:
> > > Sure, I'll send you the URL.  Thanks for looking into it.
>
> > > -James
>
> > > On Oct 19, 8:09 pm, Christian Hammond  wrote:
>
> > > > Hi James,
>
> > > > That is indeed strange. Without seeing the URL, it's hard to say. Is
> > this
> > > > indeed a fully-qualified domain?
>
> > > > Just as a sanity check, would you feel comfortable e-mailing me
> > privately
> > > > the full path?
>
> > > > Christian
>
> > > > --
> > > > Christian Hammond - chip...@chipx86.com
> > > > Review Board -http://www.reviewboard.org
> > > > VMware, Inc. -http://www.vmware.com
>
> > > > On Tue, Oct 19, 2010 at 4:26 PM, James  wrote:
> > > > > Hi,
>
> > > > > I seem to be having the same problem as is described in this post:
>
> >http://groups.google.com/group/reviewboard/browse_thread/thread/96cc5...
>
> > > > > On the client (post-review) side I see this:
>
> > > > > ---
>
> > > > > Enter username and password for "Please Enter Your [DOMAIN] LDAP
> > > > > Credentials" at reviewboard.domain.net
> > > > > Username: user
> > > > > Password:
> > > > > >>> HTTP GETting /api/json/repositories/1/info/
> > > > > >>> Got API Error 210 (HTTP code 200): There was an error fetching
> > extended
> > > > > information for this repository.
> > > > > >>> Error data: {u'deprecated': {u'in_version': u'1.5'}, u'stat':
> > u'fail',
> > > > > u'err': {u'msg': u'There was an error fetching extended information
> > fo

Re: SCMError: URL 'http://svn.domain.net/svn/repositories/repo/dir1/trunk/dir2/file.xml' is malformed or the scheme or host or path is missing

2010-10-21 Thread Christian Hammond
Hi,

Yeah, got the URL, but nothing stands out as being wrong. That's very
strange.

Can you go into the admin UI, click on Repositories -> your SVN repository,
and resave it? That should re-check the server for validity. If that fails,
we know something is definitely wrong there with the repository path.

Is the path set to the root of the SVN repository, or some location within
it?

I haven't seen that problem with git svn find-rev. What version of git are
you using? I know other people (ourselves included at one point) were using
git-svn locally, with Review Board hosted in SVN.

Christian

-- 
Christian Hammond - chip...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com


On Thu, Oct 21, 2010 at 12:00 PM, James  wrote:

> Hi Christian,
>
> Did you get that URL I sent you?  Did it look strange in any way?
>
> I've also been experimenting with git-svn + post-review, hoping that
> might work better.  Unfortunately, it doesn't, but at least it's a
> different problem:
>
> $ post-review -dn
> >>> svn info
> >>> git rev-parse --git-dir
> >>> git symbolic-ref -q HEAD
> >>> git svn info
> >>> repository info: Path: http://svn.company.net/svn/repositories/company,
> Base path: /Project/trunk, Supports changesets: False
> >>> git merge-base master refs/heads/reviewboard-test
> >>> git diff --no-color --no-prefix -r -u
> f58148b4094952c076861bcf4a9714ed7093d9ad..refs/heads/reviewboard-test
> >>> git svn find-rev f58148b4094952c076861bcf4a9714ed7093d9ad
> None
>
> The issue is that "git svn find-rev" returns nothing when passed a git
> revision.  It works when passed a subversion revision number, though.
> Have you seen that before?  Google didn't turn up anything.
>
> -James
>
>
> On Oct 20, 8:12 am, James  wrote:
> > Sure, I'll send you the URL.  Thanks for looking into it.
> >
> > -James
> >
> > On Oct 19, 8:09 pm, Christian Hammond  wrote:
> >
> > > Hi James,
> >
> > > That is indeed strange. Without seeing the URL, it's hard to say. Is
> this
> > > indeed a fully-qualified domain?
> >
> > > Just as a sanity check, would you feel comfortable e-mailing me
> privately
> > > the full path?
> >
> > > Christian
> >
> > > --
> > > Christian Hammond - chip...@chipx86.com
> > > Review Board -http://www.reviewboard.org
> > > VMware, Inc. -http://www.vmware.com
> >
> > > On Tue, Oct 19, 2010 at 4:26 PM, James  wrote:
> > > > Hi,
> >
> > > > I seem to be having the same problem as is described in this post:
> >
> > > >
> http://groups.google.com/group/reviewboard/browse_thread/thread/96cc5...
> >
> > > > On the client (post-review) side I see this:
> >
> > > > ---
> >
> > > > Enter username and password for "Please Enter Your [DOMAIN] LDAP
> > > > Credentials" at reviewboard.domain.net
> > > > Username: user
> > > > Password:
> > > > >>> HTTP GETting /api/json/repositories/1/info/
> > > > >>> Got API Error 210 (HTTP code 200): There was an error fetching
> extended
> > > > information for this repository.
> > > > >>> Error data: {u'deprecated': {u'in_version': u'1.5'}, u'stat':
> u'fail',
> > > > u'err': {u'msg': u'There was an error fetching extended information
> for this
> > > > repository.', u'code': 210}}
> > > > >>> HTTP GETting /api/json/repositories/4/info/
> > > > >>> Got API Error 210 (HTTP code 200): There was an error fetching
> extended
> > > > information for this repository.
> > > > >>> Error data: {u'deprecated': {u'in_version': u'1.5'}, u'stat':
> u'fail',
> > > > u'err': {u'msg': u'There was an error fetching extended information
> for this
> > > > repository.', u'code': 210}}
> > > > >>> Attempting to create review request on
> > > >http://svn.domain.net/svn/repositories/repoforNone
> > > > >>> HTTP POSTing to
> > > >http://reviewboard.domain.net/api/json/reviewrequests/new/:
> > > > {'repository_path': 'http://svn.domain.net/svn/repositories/repo'}
> > > > >>> Review request created
> > > > >>> Uploading diff, size: 18990
> > > > >>> HTTP POSTing to
> > > >http://reviewboard.domain.net/api/json/reviewrequests/31/diff/new/:
> > > > {'basedir': '/dir1/trunk'}
> > > > >>> Got API Error 105 (HTTP code 200): One or more fields had errors
> > > > >>> Error data: {u'fields': {u'path': [u"URL '
> > > >
> http://svn.domain.net/svn/repositories/repo/dir1/trunk/dir2/file.xml'is
> > > > malformed or the scheme or host or path is missing"]}, u'stat':
> u'fail',
> > > > u'err': {u'msg': u'One or more fields had errors', u'code': 105},
> > > > u'deprecated': {u'in_version': u'1.5'}}
> >
> > > > Error uploading diff
> >
> > > > The generated diff file was empty. This usually means no files were
> > > > modified in this change.
> >
> > > > ---
> >
> > > > On the server side i see this:
> >
> > > > ---
> >
> > > > 2010-10-19 19:07:20,764 - DEBUG - DiffParser.parse: Beginning parse
> of
> > > > diff, size = 18990
> > > > 2010-10-19 19:07:20,766 - DEBUG - Diff

Re: log level

2010-10-21 Thread Christian Hammond
In conf/settings_local.py, add:

LOGGING_LEVEL = "INFO"

And then restart the web server.

We probably should have some UI for this. Feel free to file a feature
request.

Christian

-- 
Christian Hammond - chip...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com


On Thu, Oct 21, 2010 at 10:07 AM, Chris van Es  wrote:

> Is there a way to reduce the log level in reiewboard to something
> other than the default debug? Had a look through some of the settings
> scripts but I don't see anything obvious and it isn't available in the
> GUI either.
>
> Chris.
>
> --
> Want to help the Review Board project? Donate today at
> http://www.reviewboard.org/donate/
> Happy user? Let us know at http://www.reviewboard.org/users/
> -~--~~~~--~~--~--~---
> To unsubscribe from this group, send email to
> reviewboard+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/reviewboard?hl=en

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en

Re: Moving to a different server

2010-10-21 Thread Christian Hammond
Hi Charles,

Yeah, I'd start with a test install, but you should be able to just
dump/import the SQL and copy over the entire site directory (make sure to
preserve permissions).

Christian

-- 
Christian Hammond - chip...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com


On Thu, Oct 21, 2010 at 1:08 PM, Charles Gagnon wrote:

> I have a working reviewboard site that needs to be moved to a
> different server. I am trying to figure out the best approach. I just
> started maintaining this site so I'm not super familiar with the
> product.
>
> I assume I would have to install everything I need on the new box.
> Maybe create a test site to check things. Than dump and import all the
> related mysql files. Can I just copy over the site directory
> structure?
>
> Anybody has notes on this?
>
> Thanks in advance.
>
> --
> Charles Gagnon
> http://unixrealm.com
> charlesg at unixrealm.com
>
> --
> Want to help the Review Board project? Donate today at
> http://www.reviewboard.org/donate/
> Happy user? Let us know at http://www.reviewboard.org/users/
> -~--~~~~--~~--~--~---
> To unsubscribe from this group, send email to
> reviewboard+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/reviewboard?hl=en

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en

Moving to a different server

2010-10-21 Thread Charles Gagnon
I have a working reviewboard site that needs to be moved to a
different server. I am trying to figure out the best approach. I just
started maintaining this site so I'm not super familiar with the
product.

I assume I would have to install everything I need on the new box.
Maybe create a test site to check things. Than dump and import all the
related mysql files. Can I just copy over the site directory
structure?

Anybody has notes on this?

Thanks in advance.

-- 
Charles Gagnon
http://unixrealm.com
charlesg at unixrealm.com

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en


Re: SCMError: URL 'http://svn.domain.net/svn/repositories/repo/dir1/trunk/dir2/file.xml' is malformed or the scheme or host or path is missing

2010-10-21 Thread James
Well I figured out one issue.  There was some problem with my git
repository.  I did a fresh git svn clone, and I didn't have that find-
rev problem any more.  However, now I'm back to the original SCMError
saying that the URL is "malformed or the scheme or host or path is
missing" on the ReviewBoard server.

-James


On Oct 21, 3:00 pm, James  wrote:
> Hi Christian,
>
> Did you get that URL I sent you?  Did it look strange in any way?
>
> I've also been experimenting with git-svn + post-review, hoping that
> might work better.  Unfortunately, it doesn't, but at least it's a
> different problem:
>
> $ post-review -dn>>> svn info
> >>> git rev-parse --git-dir
> >>> git symbolic-ref -q HEAD
> >>> git svn info
> >>> repository info: Path:http://svn.company.net/svn/repositories/company, 
> >>> Base path: /Project/trunk, Supports changesets: False
> >>> git merge-base master refs/heads/reviewboard-test
> >>> git diff --no-color --no-prefix -r -u 
> >>> f58148b4094952c076861bcf4a9714ed7093d9ad..refs/heads/reviewboard-test
> >>> git svn find-rev f58148b4094952c076861bcf4a9714ed7093d9ad
>
> None
>
> The issue is that "git svn find-rev" returns nothing when passed a git
> revision.  It works when passed a subversion revision number, though.
> Have you seen that before?  Google didn't turn up anything.
>
> -James
>
> On Oct 20, 8:12 am, James  wrote:
>
> > Sure, I'll send you the URL.  Thanks for looking into it.
>
> > -James
>
> > On Oct 19, 8:09 pm, Christian Hammond  wrote:
>
> > > Hi James,
>
> > > That is indeed strange. Without seeing the URL, it's hard to say. Is this
> > > indeed a fully-qualified domain?
>
> > > Just as a sanity check, would you feel comfortable e-mailing me privately
> > > the full path?
>
> > > Christian
>
> > > --
> > > Christian Hammond - chip...@chipx86.com
> > > Review Board -http://www.reviewboard.org
> > > VMware, Inc. -http://www.vmware.com
>
> > > On Tue, Oct 19, 2010 at 4:26 PM, James  wrote:
> > > > Hi,
>
> > > > I seem to be having the same problem as is described in this post:
>
> > > >http://groups.google.com/group/reviewboard/browse_thread/thread/96cc5...
>
> > > > On the client (post-review) side I see this:
>
> > > > ---
>
> > > > Enter username and password for "Please Enter Your [DOMAIN] LDAP
> > > > Credentials" at reviewboard.domain.net
> > > > Username: user
> > > > Password:
> > > > >>> HTTP GETting /api/json/repositories/1/info/
> > > > >>> Got API Error 210 (HTTP code 200): There was an error fetching 
> > > > >>> extended
> > > > information for this repository.
> > > > >>> Error data: {u'deprecated': {u'in_version': u'1.5'}, u'stat': 
> > > > >>> u'fail',
> > > > u'err': {u'msg': u'There was an error fetching extended information for 
> > > > this
> > > > repository.', u'code': 210}}
> > > > >>> HTTP GETting /api/json/repositories/4/info/
> > > > >>> Got API Error 210 (HTTP code 200): There was an error fetching 
> > > > >>> extended
> > > > information for this repository.
> > > > >>> Error data: {u'deprecated': {u'in_version': u'1.5'}, u'stat': 
> > > > >>> u'fail',
> > > > u'err': {u'msg': u'There was an error fetching extended information for 
> > > > this
> > > > repository.', u'code': 210}}
> > > > >>> Attempting to create review request on
> > > >http://svn.domain.net/svn/repositories/repoforNone
> > > > >>> HTTP POSTing to
> > > >http://reviewboard.domain.net/api/json/reviewrequests/new/:
> > > > {'repository_path': 'http://svn.domain.net/svn/repositories/repo'}
> > > > >>> Review request created
> > > > >>> Uploading diff, size: 18990
> > > > >>> HTTP POSTing to
> > > >http://reviewboard.domain.net/api/json/reviewrequests/31/diff/new/:
> > > > {'basedir': '/dir1/trunk'}
> > > > >>> Got API Error 105 (HTTP code 200): One or more fields had errors
> > > > >>> Error data: {u'fields': {u'path': [u"URL '
> > > >http://svn.domain.net/svn/repositories/repo/dir1/trunk/dir2/file.xml'is
> > > > malformed or the scheme or host or path is missing"]}, u'stat': u'fail',
> > > > u'err': {u'msg': u'One or more fields had errors', u'code': 105},
> > > > u'deprecated': {u'in_version': u'1.5'}}
>
> > > > Error uploading diff
>
> > > > The generated diff file was empty. This usually means no files were
> > > > modified in this change.
>
> > > > ---
>
> > > > On the server side i see this:
>
> > > > ---
>
> > > > 2010-10-19 19:07:20,764 - DEBUG - DiffParser.parse: Beginning parse of
> > > > diff, size = 18990
> > > > 2010-10-19 19:07:20,766 - DEBUG - DiffParser.parse: Finished parsing
> > > > diff.
> > > > 2010-10-19 19:07:20,767 - ERROR - Error uploading new diff: URL
> > > > 'http://svn.domain.net/svn/repositories/repo/dir1/trunk/dir2/file.xml'
> > > > is malformed or the scheme or host or path is missing
> > > > Traceback (most recent call last):
> > > >  File "/usr/lib/python2.4/site-packages/ReviewBoard-1.5-py2.4.egg/
> > > > reviewboard/webapi/json.py", line 1169, in new_diff
> > > >    request.FILES.get('parent_diff_path

Re: SCMError: URL 'http://svn.domain.net/svn/repositories/repo/dir1/trunk/dir2/file.xml' is malformed or the scheme or host or path is missing

2010-10-21 Thread James
Hi Christian,

Did you get that URL I sent you?  Did it look strange in any way?

I've also been experimenting with git-svn + post-review, hoping that
might work better.  Unfortunately, it doesn't, but at least it's a
different problem:

$ post-review -dn
>>> svn info
>>> git rev-parse --git-dir
>>> git symbolic-ref -q HEAD
>>> git svn info
>>> repository info: Path: http://svn.company.net/svn/repositories/company, 
>>> Base path: /Project/trunk, Supports changesets: False
>>> git merge-base master refs/heads/reviewboard-test
>>> git diff --no-color --no-prefix -r -u 
>>> f58148b4094952c076861bcf4a9714ed7093d9ad..refs/heads/reviewboard-test
>>> git svn find-rev f58148b4094952c076861bcf4a9714ed7093d9ad
None

The issue is that "git svn find-rev" returns nothing when passed a git
revision.  It works when passed a subversion revision number, though.
Have you seen that before?  Google didn't turn up anything.

-James


On Oct 20, 8:12 am, James  wrote:
> Sure, I'll send you the URL.  Thanks for looking into it.
>
> -James
>
> On Oct 19, 8:09 pm, Christian Hammond  wrote:
>
> > Hi James,
>
> > That is indeed strange. Without seeing the URL, it's hard to say. Is this
> > indeed a fully-qualified domain?
>
> > Just as a sanity check, would you feel comfortable e-mailing me privately
> > the full path?
>
> > Christian
>
> > --
> > Christian Hammond - chip...@chipx86.com
> > Review Board -http://www.reviewboard.org
> > VMware, Inc. -http://www.vmware.com
>
> > On Tue, Oct 19, 2010 at 4:26 PM, James  wrote:
> > > Hi,
>
> > > I seem to be having the same problem as is described in this post:
>
> > >http://groups.google.com/group/reviewboard/browse_thread/thread/96cc5...
>
> > > On the client (post-review) side I see this:
>
> > > ---
>
> > > Enter username and password for "Please Enter Your [DOMAIN] LDAP
> > > Credentials" at reviewboard.domain.net
> > > Username: user
> > > Password:
> > > >>> HTTP GETting /api/json/repositories/1/info/
> > > >>> Got API Error 210 (HTTP code 200): There was an error fetching 
> > > >>> extended
> > > information for this repository.
> > > >>> Error data: {u'deprecated': {u'in_version': u'1.5'}, u'stat': u'fail',
> > > u'err': {u'msg': u'There was an error fetching extended information for 
> > > this
> > > repository.', u'code': 210}}
> > > >>> HTTP GETting /api/json/repositories/4/info/
> > > >>> Got API Error 210 (HTTP code 200): There was an error fetching 
> > > >>> extended
> > > information for this repository.
> > > >>> Error data: {u'deprecated': {u'in_version': u'1.5'}, u'stat': u'fail',
> > > u'err': {u'msg': u'There was an error fetching extended information for 
> > > this
> > > repository.', u'code': 210}}
> > > >>> Attempting to create review request on
> > >http://svn.domain.net/svn/repositories/repoforNone
> > > >>> HTTP POSTing to
> > >http://reviewboard.domain.net/api/json/reviewrequests/new/:
> > > {'repository_path': 'http://svn.domain.net/svn/repositories/repo'}
> > > >>> Review request created
> > > >>> Uploading diff, size: 18990
> > > >>> HTTP POSTing to
> > >http://reviewboard.domain.net/api/json/reviewrequests/31/diff/new/:
> > > {'basedir': '/dir1/trunk'}
> > > >>> Got API Error 105 (HTTP code 200): One or more fields had errors
> > > >>> Error data: {u'fields': {u'path': [u"URL '
> > >http://svn.domain.net/svn/repositories/repo/dir1/trunk/dir2/file.xml'is
> > > malformed or the scheme or host or path is missing"]}, u'stat': u'fail',
> > > u'err': {u'msg': u'One or more fields had errors', u'code': 105},
> > > u'deprecated': {u'in_version': u'1.5'}}
>
> > > Error uploading diff
>
> > > The generated diff file was empty. This usually means no files were
> > > modified in this change.
>
> > > ---
>
> > > On the server side i see this:
>
> > > ---
>
> > > 2010-10-19 19:07:20,764 - DEBUG - DiffParser.parse: Beginning parse of
> > > diff, size = 18990
> > > 2010-10-19 19:07:20,766 - DEBUG - DiffParser.parse: Finished parsing
> > > diff.
> > > 2010-10-19 19:07:20,767 - ERROR - Error uploading new diff: URL
> > > 'http://svn.domain.net/svn/repositories/repo/dir1/trunk/dir2/file.xml'
> > > is malformed or the scheme or host or path is missing
> > > Traceback (most recent call last):
> > >  File "/usr/lib/python2.4/site-packages/ReviewBoard-1.5-py2.4.egg/
> > > reviewboard/webapi/json.py", line 1169, in new_diff
> > >    request.FILES.get('parent_diff_path'))
> > >  File "/usr/lib/python2.4/site-packages/ReviewBoard-1.5-py2.4.egg/
> > > reviewboard/reviews/forms.py", line 249, in create
> > >    history)
> > >  File "/usr/lib/python2.4/site-packages/ReviewBoard-1.5-py2.4.egg/
> > > reviewboard/diffviewer/forms.py", line 62, in create
> > >    files = list(self._process_files(
> > >  File "/usr/lib/python2.4/site-packages/ReviewBoard-1.5-py2.4.egg/
> > > reviewboard/diffviewer/forms.py", line 144, in _process_files
> > >    if (revision != PRE_CREATION and
> > >  File "/usr/lib/python2.4/site-packages/ReviewBoard-1.5-p

log level

2010-10-21 Thread Chris van Es
Is there a way to reduce the log level in reiewboard to something
other than the default debug? Had a look through some of the settings
scripts but I don't see anything obvious and it isn't available in the
GUI either.

Chris.

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en


A few questions about ereviewboard.

2010-10-21 Thread Stefan Brandt
Hi,

i have a few questions regarding the ereviewboard plugin for Eclipse.
Maybe someone who´s using it can help me out.

1.) Is there any kind of end user documentation available? I know how
to install the plugin via the update site but what i´m missing is
something like "How to configure the task repository" and "How to
create a review request".

2.) What are the main features of the plugin. Is it possible to create
pre- and post-commit reviews as well or are there any restrictions?

3.) Is there still active development? The last commit on
http://github.com/mknittig/ereviewboard is more than five month ago.

Thanks a lot.

Regards
Stefan

PS: I would love to help out with some documentation, but right now
http://github.com/mknittig/ereviewboard/issues#issue/3 prevents me
from installing the plugin! ;-(

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en


Authentication problems with 1.5 api via perl.

2010-10-21 Thread Jeff
I'm trying to write an svn pre-commit hook against a totally new
installation of reviewboard 1.5 (upgraded from the previous version,
but never really used).

As far as I can tell from the documentation, the json login page isn't
used anymore, and I just use basic HTTP authentication.

My perl code looks like this:

#!/usr/bin/perl
use LWP::UserAgent;

my $ua = LWP::UserAgent->new;
#$ua->credentials("$rbhost:80","Web API",'user' => 'password');

my $req = HTTP::Request->new(GET => "http://reviewboard.local.com/
rboard/api/review-requests/93/last-update/");
$req->authorization_basic('user', 'password');

my $res = $ua->request($req);
print $res->as_string;


I've tried both the useragent credential and the request-
>authorization_basic.

The result I get back is:


HTTP/1.1 401 UNAUTHORIZED
Cache-Control: max-age=0
Connection: close
Date: Thu, 21 Oct 2010 17:53:43 GMT
ETag: "3818aa0b0928af747aebc006814783fe"
Server: Apache/2.2.3 (CentOS)
Vary: Cookie,Accept-Language
WWW-Authenticate: Basic realm="Web API"
Content-Language: en-us
Content-Length: 70
Content-Type: application/json
Expires: Thu, 21 Oct 2010 17:53:43 GMT
Last-Modified: Thu, 21 Oct 2010 17:53:43 GMT
Client-Date: Thu, 21 Oct 2010 17:53:43 GMT
Client-Peer: 10.20.30.183:80
Client-Response-Num: 1

{"stat": "fail", "err": {"msg": "You are not logged in", "code": 103}}



If I try and hit the same page in an web browser after authenticating,
I get a 500 error and an email post at the end of this message.

What am I doing wrong? Is there any example perl code that hit's the
new API?  I assume the existing stuff that I'm finding on the net
won't work anymore.


Traceback (most recent call last):

  File "/usr/local/reviewboard/python/Django-1.2.1-py2.7.egg/django/
core/handlers/base.py", line 100, in get_response
response = callback(request, *callback_args, **callback_kwargs)

  File "/usr/local/reviewboard/python/Django-1.2.1-py2.7.egg/django/
views/decorators/cache.py", line 70, in _wrapped_view_func
add_never_cache_headers(response)

  File "/usr/local/reviewboard/python/Django-1.2.1-py2.7.egg/django/
utils/cache.py", line 116, in add_never_cache_headers
patch_response_headers(response, cache_timeout=-1)

  File "/usr/local/reviewboard/python/Django-1.2.1-py2.7.egg/django/
utils/cache.py", line 105, in patch_response_headers
response['ETag'] = '"%s"' %
md5_constructor(response.content).hexdigest()

  File "/usr/local/reviewboard/python/Djblets-0.6.4-py2.7.egg/djblets/
webapi/core.py", line 273, in _get_content
content = adapter.encode(self.api_data, request=self.request)

  File "/usr/local/reviewboard/python/Djblets-0.6.4-py2.7.egg/djblets/
webapi/core.py", line 119, in encode
self.__encode(o, *args, **kwargs)

  File "/usr/local/reviewboard/python/Djblets-0.6.4-py2.7.egg/djblets/
webapi/core.py", line 136, in __encode
self.__encode(value, *args, **kwargs)

  File "/usr/local/reviewboard/python/Djblets-0.6.4-py2.7.egg/djblets/
webapi/core.py", line 136, in __encode
self.__encode(value, *args, **kwargs)

  File "/usr/local/reviewboard/python/Djblets-0.6.4-py2.7.egg/djblets/
webapi/core.py", line 164, in __encode
return self.__encode(result, *args, **kwargs)

  File "/usr/local/reviewboard/python/Djblets-0.6.4-py2.7.egg/djblets/
webapi/core.py", line 136, in __encode
self.__encode(value, *args, **kwargs)

  File "/usr/local/reviewboard/python/Djblets-0.6.4-py2.7.egg/djblets/
webapi/core.py", line 162, in __encode
raise TypeError("%r is not XML serializable" % (o,))

TypeError: 2L is not XML serializable


,
POST:,
COOKIES:{'csrftoken': '3c25a25c4c6ced636686afac7a25a4f1',
 'rbsessionid': '2aeedaf117ffddcef6c72c0d5a2a407b'},
META:{'DOCUMENT_ROOT': '/usr/local/reviewboard/web/htdocs',
 'GATEWAY_INTERFACE': 'CGI/1.1',
 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/
xml;q=0.9,*/*;q=0.8',
 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
 'HTTP_ACCEPT_ENCODING': 'gzip,deflate',
 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5',
 'HTTP_CONNECTION': 'keep-alive',
 'HTTP_COOKIE': 'rbsessionid=2aeedaf117ffddcef6c72c0d5a2a407b;
csrftoken=3c25a25c4c6ced636686afac7a25a4f1',
 'HTTP_HOST': 'reviewboard',
 'HTTP_KEEP_ALIVE': '115',
 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10',
 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin',
 'PATH_INFO': u'/rboard/api/review-requests/93/last-update/',
 'PATH_TRANSLATED': '/usr/local/reviewboard/web/htdocs/
reviewboard.fcgi/rboard/api/review-requests/93/last-update/',
 'QUERY_STRING': '',
 'REMOTE_ADDR': '10.20.68.52',
 'REMOTE_PORT': '3620',
 'REQUEST_METHOD': 'GET',
 'REQUEST_URI': '/rboard/api/review-requests/93/last-update/',
 'SCRIPT_FILENAME': '/usr/local/reviewboard/web/htdocs/
reviewboard.fcgi',
 'SCRIPT_NAME': u'',
 'SCRIPT_URI': 'http://reviewboard/rboard/api/review-requests/93/last-
update/',
 'SCRIPT_URL': '/rboard/api/review-requests/93/last-update/',
 'SERVER_ADDR': '10.20.30.183',
 'SERVER_ADMIN': 'r...

post-review for p4 changelist

2010-10-21 Thread Dolphin
Hi All,

I am getting this error while executing the command. [post-review -d
p4changelist-num].

>>> diff -urNp c:\docume~1\srinivar\locals~1\temp\tmpj5gzff 
>>> c:\docume~1\srinivar\locals~1\temp\tmpripliy
>>> Looking for ' 0/' cookie in C:\Documents and Settings\srinivar\Application 
>>> Data\.post-review-cookies.txt
>>> Couldn't load cookie file: [Errno 2] No such file or directory: 
>>> 'C:\\Documents and Settings\\srinivar\\Application Da
ta\\.post-review-cookies.txt'
==> Review Board Login Required
Enter username and password for Review Board at 0/
Username: srini
Password:
>>> Logging in with username "srini"
>>> HTTP POSTing to http://0/0/api/json/accounts/login/: {'username': 'srini', 
>>> 'password': '**'}
Unable to access http://0/0/api/json/accounts/login/. The host path
may be invalid


Any idea what is the solution:

Other info:
Review board is setup correctly.. I can create review requests with
Graphics only.

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en


RE: Review Board with Perforce proxy servers

2010-10-21 Thread Dana Lacoste
I can't give a full response to everything here, but if you're using
post-review (likely) then the P4PORT env variable is effectively
ignored.

Instead, post-review runs "p4 info" and pulls the port information from
the "Server address: server.domain.com:1666" line.

It then calls "gethostbyaddr()" on the result and compares the results
to the values on the reviewboard server's repository list.

The reviewboard server contacts the perforce server using the locations
defined in the reviewboard server's repository list and dynamically
generates the diff content every time the diff is viewed.

So, how to optimize this for your users?  I don't know, but I thought
I could shed some light on how it's working to help figure that out :)

Dana Lacoste

-Original Message-
From: reviewboard@googlegroups.com [mailto:reviewbo...@googlegroups.com]
On Behalf Of Jason Alday
Sent: Wednesday, October 20, 2010 4:16 PM
To: reviewboard
Subject: Review Board with Perforce proxy servers

Hi,

We've recently starting using Review Board for our team but we are
spread out across several sites in the US.  Each site has it's own P4
proxy server that people on that site use for their P4 activity.
Behind the scenes I understand these proxies phone home to master P4
server (which is actually outside the US).  The Review Board server is
actually located in one of these remote sites inside the US, far from
the master P4 server.

>From what we can tell, when the user is using post-review the p4Info
that comes back appears to be the master server that is outside the US
(even though their P4PORT env variable is set to their local proxy)
The repositories for Review Board are also set to the server outside
the US.

It would be ideal if the post-review diff was generated based on the
users local P4 proxy as that would be the fastest.  Then it would be
ideal if the Review Board server used the local proxy for it's
location.  Is this possible?

It's not clear to me how much P4 server contacting the Review Board
server does.  When the user clicks on "View Diff" in Review Board,
does that result in the server contacting the P4 server for any info
or is all of this info stored locally in the Review Board's database
from the submission time?


Thanks,
Jason.

-- 
Want to help the Review Board project? Donate today at
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/reviewboard?hl=en

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en


Re: Error (with rather opaque Python diagnostic output) installing P4 integration

2010-10-21 Thread Thor Simon


On Oct 20, 3:02 pm, Christian Hammond  wrote:
> The one we use is a custom installer we wrote to do the installation of
> Perforce's Python library. It's really just a wrapper.

I am not Python savvy and really have no idea how to manually install
the library so that Reviewboard can use it.  We're trying to migrate
an existing Reviewboard from one machine to another and are stuck at
this point.  Sigh.

> I noticed this EOF error myself. It just started a couple days ago. I'm
> trying to figure it out.

Is there any simple  way to even tell what it's trying to fetch, short
of taking a packet capture?  Maybe Perforce moved a file on their FTP
server.

Thor

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en