This error is a bit unclear, but it's referring to the web API's HTTP
authentication.

Some of this code changed, and it looks like the problem is that we're
doing the check regarding --diff-filename=- too early, preventing the
provided username/password from working.

Would you mind filing a bug for this, so that we can track it and get this
in for 0.6.1?

As a workaround, you should be able to do an initial request (without
--username and --password) to get a cookie generated. Future attempts
should just end up reusing the cookie instead of going down this code path.

Christian

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


On Fri, Apr 18, 2014 at 5:41 PM, Jacob Weber <weberja...@gmail.com> wrote:

> Using rbt 0.6, I'm trying to use "rbt post" by piping in a svn diff. I'm
> getting this error: "HTTP authentication is required, but cannot be used
> with --diff-filename=-". My RB server doesn't require HTTP authentication,
> so I'm not sure why this happens. The same request works with rbt 0.5.1.
> Here's the verbose output:
>
> $ svn diff [...] | rbt post 
> --repository-url=https://svn-repos-url--username=rbuser --password=rbpass 
> --submit-as=other-user --server=
>>> http://reviewboard-url --diff-filename=- --basedir=/basedir
>>> --summary='test' --description='test' -d
>>
>>
>>> >>> RBTools 0.6
>>
>> >>> Python 2.7.3 (default, Mar 11 2013, 22:38:13)
>>
>> [GCC 4.4.7 20120313 (Red Hat 4.4.7-3)]
>>
>> >>> Running on
>>> Linux-2.6.32-358.18.1.el6.x86_64-x86_64-with-redhat-6.4-Santiago
>>
>> >>> Home = /home/myuser
>>
>> >>> Current directory = /home/myuser
>>
>> >>> Checking for a Subversion repository...
>>
>> >>> Running: svn info https://svn-repos-url --non-interactive
>>
>> >>> Running: diff --version
>>
>> >>> repository info: Path: https://svn-repos-url, Base path: /, Supports
>>> changesets: False
>>
>> >>> Making HTTP GET request to http://reviewboard-url/api/
>>
>> HTTP authentication is required, but cannot be used with --diff-filename=-
>>
>>
> Any ideas?
>
> --
> Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
> ---
> Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
> ---
> Happy user? Let us know at http://www.reviewboard.org/users/
> ---
> You received this message because you are subscribed to the Google Groups
> "reviewboard" 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.
>

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" 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