Re: Reviewboard on Centos4.8?

2010-06-30 Thread Christian Hammond
Hi,

What specifically is showing that error?

Can you tell us more about your configuration, including the database type,
web server, Python version, whether or not you're using Lucene, and
everything else you can include about your setup?

Christian

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


On Wed, Jun 30, 2010 at 8:05 PM, van85  wrote:

> Hi everyone. I just wanna ask if anyone here has successfully
> installed Reviewboard on Centos4.8? I tried to install it and after a
> stressful updates and configuration of several libraries I've managed
> to install it but I'm still getting error messages.
>
> [notice] caught SIGTERM, shutting down
>
> Does anyone have a simple and easy installation guide for Reviewboard
> on Centos 4.8?
>
> Thanks!
>
> --
> 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

Reviewboard on Centos4.8?

2010-06-30 Thread van85
Hi everyone. I just wanna ask if anyone here has successfully
installed Reviewboard on Centos4.8? I tried to install it and after a
stressful updates and configuration of several libraries I've managed
to install it but I'm still getting error messages.

[notice] caught SIGTERM, shutting down

Does anyone have a simple and easy installation guide for Reviewboard
on Centos 4.8?

Thanks!

-- 
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: User Account Management through REST API

2010-06-30 Thread Christian Hammond
On Wednesday, June 30, 2010, Thilo-Alexander Ginkel  wrote:
> On Wednesday 30 June 2010 20:34:31 Christian Hammond wrote:
>> You actually can add a user in LDAP who is not in Review Board as a
>> reviewer. They won't appear in the autocomplete, but if you type the
>> name it will work. Review Board checks the auth backend for any
>> unrecognized names that are entered and pulls them down then.
>
> Is this a new feature in 1.5? We are currently still running 1.0.5.1, which
> does not seem to support this. Would be another incentive to upgrade. ;-)

Nope, it's been there since the very early days. So long as you're
hooked up to LDAP, NIS, etc., it should automatically add the user if
adding their username. The username must exist already on the auth
backend.

If this doesn't work, it's an odd regression.

Christian

-- 
-- 
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


Re: User Account Management through REST API

2010-06-30 Thread Thilo-Alexander Ginkel
On Wednesday 30 June 2010 20:34:31 Christian Hammond wrote:
> You actually can add a user in LDAP who is not in Review Board as a
> reviewer. They won't appear in the autocomplete, but if you type the
> name it will work. Review Board checks the auth backend for any
> unrecognized names that are entered and pulls them down then.

Is this a new feature in 1.5? We are currently still running 1.0.5.1, which 
does not seem to support this. Would be another incentive to upgrade. ;-)

Regards,
Thilo

-- 
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


Script to delete fake accounts

2010-06-30 Thread David Solbach
Hi,

a while ago I asked in this mailing list how to delete the accounts of 'fake 
users' or spam accounts in a public reviewboard instance.

Today I managed to do it via a little script that can be run from a python 
console. Maybe it can help some of you to do the same. The script walks over 
all users in the database and deletes all users who have never done anything 
else in reviewboard but registering and visiting a review.

So every user who is associated to at least one ReviewComment or some other 
meaningful object in the database is spared.

Here is the script:

# -*- coding: utf-8 -*-

from django.contrib.auth.models import User
from django.db.models.query_utils import CollectedObjects

spam = 0
ham = 0

for user in User.objects.all():
  print "User: %s ..." % user,
  isactive = False
  seen_objs = None
  seen_objs = CollectedObjects(seen_objs)
  user._collect_sub_objects(seen_objs)
  for obj in seen_objs.keys():
if (obj.__name__ != "Profile") and (obj.__name__ != "ReviewRequestVisit"):
  isactive = True
  break
  if (isactive):
print "Active (found associated %s)" % obj
ham = ham + 1
  else:
spam = spam + 1
#user.delete()
print "DELETED"

print "Total HAM  %d" % ham
print "Total SPAM %d" % spam


You can simply run it by typing 

rb-site manage /path/to/site shell

and then pasting the script above. (make sure you have a backup of you 
database!)

Cheers,

David

PS: note that I commented the line that actually does the deletion, so you can 
do a dry run  before

-- 
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: User Account Management through REST API

2010-06-30 Thread Christian Hammond
On Wed, Jun 30, 2010 at 1:53 PM, Jeff Mitchell  wrote:

> On 6/30/2010 2:34 PM, Christian Hammond wrote:
> > You actually can add a user in LDAP who is not in Review Board as a
> > reviewer. They won't appear in the autocomplete, but if you type the
> > name it will work. Review Board checks the auth backend for any
> > unrecognized names that are entered and pulls them down then.
> >
> > Going the LDAP route solves the password issue too. How would you
> > set/change passwords using the REST method? You're unlikely to get
> > password data from redmine (I would expect).
>
> That was the idea behind using OpenID for authentication; then we don't
> have to be in the business of storing passwords for any of the webapps
> (ReviewBoard is IIRC currently the only one of our webapps that doesn't
> support it; MediaWiki, Drupal and Redmine all do).
>
> --Jeff
>
>
Right. I was speaking more on a general level with LDAP. I wasn't really
sure how many people from which groups were involved in this discussion :)

OpenID is something I'd like to see. It won't happen for 1.5 (we're about to
release our RC and then hopefully the final release shortly after), but
probably 1.6 (which I want to be a much shorter release).

Christian

-- 
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

Re: User Account Management through REST API

2010-06-30 Thread Jeff Mitchell
On 6/30/2010 2:34 PM, Christian Hammond wrote:
> You actually can add a user in LDAP who is not in Review Board as a
> reviewer. They won't appear in the autocomplete, but if you type the
> name it will work. Review Board checks the auth backend for any
> unrecognized names that are entered and pulls them down then.
> 
> Going the LDAP route solves the password issue too. How would you
> set/change passwords using the REST method? You're unlikely to get
> password data from redmine (I would expect).

That was the idea behind using OpenID for authentication; then we don't
have to be in the business of storing passwords for any of the webapps
(ReviewBoard is IIRC currently the only one of our webapps that doesn't
support it; MediaWiki, Drupal and Redmine all do).

--Jeff



signature.asc
Description: OpenPGP digital signature


Re: Showing repositories paths to users

2010-06-30 Thread Christian Hammond
Hi,

Glad you like it enough to think it's perfect :)

What some places do is put the repository path (or part of it) in the
repository name so it's easily visible in the selector. I assume you're
wanting this for the New Review Request page? Or do you just need something
on, say, the review request page where we show the repository name?

I don't know if anyone there is using post-review to post the review
requests, but if you use that you shouldn't even have to see the repository
path, as it will figure it out for you.

Christian

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


On Tue, Jun 29, 2010 at 6:31 AM, sergius wrote:

> Hi. We are using your perfect tool for a year already, thank you for
> it.
>
> Can someone, please, help me with next question: we have several
> hundreds repositories on our organization so users tends to mix them
> so just naming doesn't work. Is there any way to expose exact
> repository paths to regular users?
>
> Thanks.
>
> --
> 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

Fwd: User Account Management through REST API

2010-06-30 Thread Ben Cooksley
Forwarding...

-- Forwarded message --
From: Tom Albers 
Date: Wed, Jun 30, 2010 at 9:29 PM
Subject: Re: User Account Management through REST API
To: Christian Hammond 
Cc: reviewboard@googlegroups.com, sysad...@kde.org



On Wed, 30 Jun 2010 02:19:55 -0700, Christian Hammond
 wrote:
> On Wed, Jun 30, 2010 at 1:45 AM, David Solbach  wrote:
>   On Tue, Jun 29, 2010 at 10:35 AM, David Solbach  wrote:
>
>   Hi there,
>
>  is it possible to create / delete / modify users using the REST API in
> 1.5?
>  I
>  found a call to list all users, but nothing more in the documentation,
> yet.
>
>  Is there a list of undocumented API calls somewhere?
>
>  Zitat von Christian Hammond :
>   Hi David,
>
>  There aren't any calls for this today. The only way to programatically
> do
>  this is by issuing HTTP POSTs to the proper page in the admin UI. It's
>  something we could possibly add in a future release, but won't happen
> for
>  1.5.
>
>  Technically, all the new APIs in 1.5 are undocumented, in that we have
> a new
>  resource tree that I'm still writing docs for.
>
>  What are your needs for a RESTful user administration API?
>
>  Hi Christian,
>
>  in my understanding, we evaluate the possibility to create uuser
> accounts in one application (say redmine) and automatically create a
user
> with the same credentials in another application on another server
> (revieboard).
>
>  Therefore I guess we would need the possibility to Create/Delete and
> Modify users in Reviewboard via a RESTful API.
>
>  Although I think that deleting is not an easy use case, since RB will
> delete all DB Items created by that user as well, right?
>
>  David
>
> Right. It's best never to delete a user in Review Board. Marking them as
> inactive is fine, though.
>
> I know what other people have done is written custom auth backends to
> talk to a central database for users, so instead of creating/updating
> users in Review Board based on redmine's data, you'd just have Review
> Board use redmine for authentication in some way.
>
> I'm not familiar enough with redmine, but if it could use something like
> LDAP for authentication, that'd be even easier.
>
> Christian

Yeah, LDAP should work fine. But then it would still need to be based on
openid verification. We have no plans to store passwords in ldap. If you
can help us facilitating that, that would be great.

Best,
--
Tom Albers
KDE Sysadmin

-- 
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


Fwd: User Account Management through REST API

2010-06-30 Thread Ben Cooksley
Forwarding due to delivery failure...

-- Forwarded message --
From: Eike Hein 
Date: Wed, Jun 30, 2010 at 9:40 PM
Subject: Re: User Account Management through REST API
To: reviewboard@googlegroups.com
Cc: sysad...@kde.org


On 6/30/2010 11:19 AM, Christian Hammond wrote:
>
> Right. It's best never to delete a user in Review Board. Marking them as
> inactive is fine, though.

That's fine, actually: Deleting users is not allowed in
Redmine, only disabling them.


--
Best regards,
Eike Hein

-- 
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


Showing repositories paths to users

2010-06-30 Thread sergius
Hi. We are using your perfect tool for a year already, thank you for
it.

Can someone, please, help me with next question: we have several
hundreds repositories on our organization so users tends to mix them
so just naming doesn't work. Is there any way to expose exact
repository paths to regular users?

Thanks.

-- 
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: User Account Management through REST API

2010-06-30 Thread Christian Hammond
On Wednesday, June 30, 2010, Thilo-Alexander Ginkel  wrote:
> Redmine does support LDAP as a backend and adding a custom
> authentication backend to Redmine is also trivial (just implement an
> AuthSource - takes less than 40 lines of code for simple DB-based
> authentication).
>
> What I could consider somewhat problematic with these custom auth
> backends in both Review Board and Redmine is the "pull" approach that
> is implemented by them: The user account data is only pulled from the
> backend when an account is used for the first time, so you cannot add
> somebody as a reviewer before he has signed on at least once.
>
> Regards,
> Thilo

You actually can add a user in LDAP who is not in Review Board as a
reviewer. They won't appear in the autocomplete, but if you type the
name it will work. Review Board checks the auth backend for any
unrecognized names that are entered and pulls them down then.

Going the LDAP route solves the password issue too. How would you
set/change passwords using the REST method? You're unlikely to get
password data from redmine (I would expect).

Christian

-- 
-- 
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


Re: User Account Management through REST API

2010-06-30 Thread Thilo-Alexander Ginkel
On Wed, Jun 30, 2010 at 11:19, Christian Hammond  wrote:
> I know what other people have done is written custom auth backends to talk
> to a central database for users, so instead of creating/updating users in
> Review Board based on redmine's data, you'd just have Review Board use
> redmine for authentication in some way.
>
> I'm not familiar enough with redmine, but if it could use something like
> LDAP for authentication, that'd be even easier.

Redmine does support LDAP as a backend and adding a custom
authentication backend to Redmine is also trivial (just implement an
AuthSource - takes less than 40 lines of code for simple DB-based
authentication).

What I could consider somewhat problematic with these custom auth
backends in both Review Board and Redmine is the "pull" approach that
is implemented by them: The user account data is only pulled from the
backend when an account is used for the first time, so you cannot add
somebody as a reviewer before he has signed on at least once.

Regards,
Thilo

-- 
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: User Account Management through REST API

2010-06-30 Thread Christian Hammond
On Wed, Jun 30, 2010 at 1:45 AM, David Solbach  wrote:

>  On Tue, Jun 29, 2010 at 10:35 AM, David Solbach  wrote:
>>
>>  Hi there,
>>>
>>> is it possible to create / delete / modify users using the REST API in
>>> 1.5?
>>> I
>>> found a call to list all users, but nothing more in the documentation,
>>> yet.
>>>
>>> Is there a list of undocumented API calls somewhere?
>>>
>>
> Zitat von Christian Hammond :
>
>  Hi David,
>>
>> There aren't any calls for this today. The only way to programatically do
>> this is by issuing HTTP POSTs to the proper page in the admin UI. It's
>> something we could possibly add in a future release, but won't happen for
>> 1.5.
>>
>> Technically, all the new APIs in 1.5 are undocumented, in that we have a
>> new
>> resource tree that I'm still writing docs for.
>>
>> What are your needs for a RESTful user administration API?
>>
>
> Hi Christian,
>
> in my understanding, we evaluate the possibility to create uuser accounts
> in one application (say redmine) and automatically create a user with the
> same credentials in another application on another server (revieboard).
>
> Therefore I guess we would need the possibility to Create/Delete and Modify
> users in Reviewboard via a RESTful API.
>
> Although I think that deleting is not an easy use case, since RB will
> delete all DB Items created by that user as well, right?
>
> David
>
>
Right. It's best never to delete a user in Review Board. Marking them as
inactive is fine, though.

I know what other people have done is written custom auth backends to talk
to a central database for users, so instead of creating/updating users in
Review Board based on redmine's data, you'd just have Review Board use
redmine for authentication in some way.

I'm not familiar enough with redmine, but if it could use something like
LDAP for authentication, that'd be even easier.

Christian

-- 
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

Re: User Account Management through REST API

2010-06-30 Thread David Solbach

On Tue, Jun 29, 2010 at 10:35 AM, David Solbach  wrote:


Hi there,

is it possible to create / delete / modify users using the REST API in 1.5?
I
found a call to list all users, but nothing more in the documentation, yet.

Is there a list of undocumented API calls somewhere?


Zitat von Christian Hammond :

Hi David,

There aren't any calls for this today. The only way to programatically do
this is by issuing HTTP POSTs to the proper page in the admin UI. It's
something we could possibly add in a future release, but won't happen for
1.5.

Technically, all the new APIs in 1.5 are undocumented, in that we have a new
resource tree that I'm still writing docs for.

What are your needs for a RESTful user administration API?


Hi Christian,

in my understanding, we evaluate the possibility to create uuser  
accounts in one application (say redmine) and automatically create a  
user with the same credentials in another application on another  
server (revieboard).


Therefore I guess we would need the possibility to Create/Delete and  
Modify users in Reviewboard via a RESTful API.


Although I think that deleting is not an easy use case, since RB will  
delete all DB Items created by that user as well, right?


David

--
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