Weird authentication issue - username + password not working with RBT

2019-07-22 Thread 'Eric Johnson' via Review Board Community
I'm not even sure where / how to troubleshoot this issue.

I've got clients of the server that I'm managing that have no problem
accessing the ReviewBoard website with a standard username and password
login.

(Note, as it may be relevant to understanding / diagnosing the issue:

   - I server multiple instances of ReviewBoard from the same server - each
   gets a separate database - but they are all sharing the same memcached
   instance.
   - I've got a custom authentication handler, as I need to be able to
   authenticate against two possible LDAP servers.

)

Weirdly, for some users, for some ReviewBoard instances (but not all of
them), the "rbt" tool now no longer works with username + password for
authentication.

So far, users have been able to get back to work using API tokens for
authentication instead. The question remains, though:

Why is it that only some users can no longer use "rbt" with username +
password authentication, but the same username + password works when
logging into the website directly?

Any suggestions for how to troubleshoot this / reproduce the problem?

Eric.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/CANu9%3DNdH0pjv8g6RT0-SZ_vBtkjwwbB-fqLn74JFs_HPRT%3D-Sg%40mail.gmail.com.


RB 3.0.15: warnings from rb-site update_index

2019-07-22 Thread john h
Hi all,

I recently upgraded a ReviewBoard install from Ubuntu 14.04/RB 1.6.9 to 
18.04/3.0.15.  I did it by advancing through each final minor release of RB 
with pip (starting with 1.7.xx, since that was the earliest available via 
pip), and running rb-site upgrade and recommended commands/edits.  RB was 
messily/incompletely installed, and I had to remove/reinstall 
/usr/local/python2.7/dist-packages to clean up the dependency mess in 
there.  More details if needed-- it was fairly messy, and I'm a little 
unsure the site is 100% clean at this point, but it appears to be Mostly 
Working.

Search functionality had never been enabled or installed in crontab.  I did 
that (using Whoosh, our site seems fairly small at 6000 review requests 
over a decade), but now I'm getting the following error from sudo -u 
www-data "/usr/bin/python" "/usr/local/bin/rb-site" manage 
"/var/www/mercury-reviewboard.pct.niksun.com" update_index -- -a 1:

WARNING:py.warnings:/usr/local/lib/python2.7/dist-packages/haystack/indexes.py:167:
 
UserWarning: No updated date field found for 'User' - not restricting by 
age.
  warnings.warn(update_field_msg)

Indexing 82 users
Indexing 0 Review Requests

My first try at indexing had this all running as root, so I removed the 
data/search-index directory, reran everything as the www-data user RB is 
running as, and the error persists.  How might I clear this error?  TOO 
MUCH MAIL FROM ROOT :)

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/4248b707-3179-431a-a8e7-d9bd43c09cf0%40googlegroups.com.


Re: rbtools.commands.CommandError: Error validating diff 'ascii' codec can't decode byte 0xc2 in position 1333: ordinal not in range(128) (HTTP 400, API Error 224)

2019-07-22 Thread Christian Hammond
Glad to hear it! We’ll have that rolled up into the next release.

Christian


On Mon, Jul 22, 2019 at 06:28 Paul Mansfield 
wrote:

> ok, this fix didn't break anything and I was able to submit a review on
> the feature branch which previously caused the codec error.
>
> thanks
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/reviewboard/f0f6c33d-055d-4389-aad0-9f337f20eb17%40googlegroups.com
> 
> .
>
-- 
-- 
Christian Hammond
President/CEO of Beanbag
Makers of Review Board

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/CAE7VndkGnUFJ7p0R5sggo2xXP0_A_9cvh8285dsbB60%2BLPB1Uw%40mail.gmail.com.


Re: rbtools.commands.CommandError: Error validating diff 'ascii' codec can't decode byte 0xc2 in position 1333: ordinal not in range(128) (HTTP 400, API Error 224)

2019-07-22 Thread Paul Mansfield
ok, this fix didn't break anything and I was able to submit a review on the 
feature branch which previously caused the codec error.

thanks

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/f0f6c33d-055d-4389-aad0-9f337f20eb17%40googlegroups.com.


Re: rbtools.commands.CommandError: Error validating diff 'ascii' codec can't decode byte 0xc2 in position 1333: ordinal not in range(128) (HTTP 400, API Error 224)

2019-07-22 Thread Paul Mansfield
oh, wait... somehow pip got aliassed to pip3. now I've rerun without that, 
it worked.

apologies for the distraction


On Monday, 22 July 2019 12:21:48 UTC+1, Paul Mansfield wrote:
>
> thanks for that
>
> I think I am doing something wrong
>
> $ sudo pip install 
> ReviewBoardPowerPack-3.0.3a0.dev20190701141953-cp27-none-any.whl ERROR: 
> ReviewBoardPowerPack-3.0.3a0.dev20190701141953-cp27-none-any.whl is not a 
> supported wheel on this platform.
>
>
>
>
>
> and yet,,,
>>
>>
> $ wheel unpack 
> ReviewBoardPowerPack-3.0.3a0.dev20190701141953-cp27-none-any.whl 
> Unpacking to: ./ReviewBoardPowerPack-3.0.3a0.dev20190701141953...OK
>
>
>
> /paul is puzzled.
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/07398a29-315a-455c-aef2-8139f83a0eed%40googlegroups.com.


Re: rbtools.commands.CommandError: Error validating diff 'ascii' codec can't decode byte 0xc2 in position 1333: ordinal not in range(128) (HTTP 400, API Error 224)

2019-07-22 Thread Paul Mansfield
thanks for that

I think I am doing something wrong

$ sudo pip install 
ReviewBoardPowerPack-3.0.3a0.dev20190701141953-cp27-none-any.whl ERROR: 
ReviewBoardPowerPack-3.0.3a0.dev20190701141953-cp27-none-any.whl is not a 
supported wheel on this platform.





and yet,,,
>
>
$ wheel unpack 
ReviewBoardPowerPack-3.0.3a0.dev20190701141953-cp27-none-any.whl 
Unpacking to: ./ReviewBoardPowerPack-3.0.3a0.dev20190701141953...OK



/paul is puzzled.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/786e3790-ad80-4941-9436-336bf3894ed7%40googlegroups.com.