Re: Issue 2322 in reviewboard: Unable to post reviews with post-review (0.3.4): can not log in into Reviewboard (1.6.1)

2013-08-10 Thread reviewboard

Updates:
Status: SetupIssue

Comment #23 on issue 2322 by trowb...@gmail.com: Unable to post reviews  
with post-review (0.3.4): can not log in into Reviewboard (1.6.1)

http://code.google.com/p/reviewboard/issues/detail?id=2322

Digging through the mailing list, this seems to be when combining ldap +  
fastcgi. Since there's really nothing we can do about the fastcgi  
interface, I'm going to change the docs to more heavily recommend mod_wsgi  
and cite this issue specifically.


--
You received this message because this project is configured to send all  
issue notifications to this address.

You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Issue 2322 in reviewboard: Unable to post reviews with post-review (0.3.4): can not log in into Reviewboard (1.6.1)

2012-12-23 Thread reviewboard

Updates:
Labels: Component-Deployment Component-API

Comment #22 on issue 2322 by trowb...@gmail.com: Unable to post reviews  
with post-review (0.3.4): can not log in into Reviewboard (1.6.1)

http://code.google.com/p/reviewboard/issues/detail?id=2322

(No comment was entered for this change.)

--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to reviewboard-issues@googlegroups.com.
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en.



Re: Issue 2322 in reviewboard: Unable to post reviews with post-review (0.3.4): can not log in into Reviewboard (1.6.1)

2012-12-07 Thread reviewboard


Comment #21 on issue 2322 by mvanb...@gmail.com: Unable to post reviews  
with post-review (0.3.4): can not log in into Reviewboard (1.6.1)

http://code.google.com/p/reviewboard/issues/detail?id=2322

Ok, I had some time today and setup reviewboard with mod_wsgi3
Now everything is working!!
So the problem is only showing when using fastcgi!

After the weekend I will move our production reviewboards to wsgi to see if  
it is also fixed in the production enviroment. (It's a pain in the ass to  
setup because we run apache chrooted, so I have to copy a lot of python and  
system files into the chroot. That was the reason to setup the whole thing  
with fastcgi)


--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to reviewboard-issues@googlegroups.com.
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en.



Re: Issue 2322 in reviewboard: Unable to post reviews with post-review (0.3.4): can not log in into Reviewboard (1.6.1)

2012-12-04 Thread reviewboard


Comment #20 on issue 2322 by mvanb...@gmail.com: Unable to post reviews  
with post-review (0.3.4): can not log in into Reviewboard (1.6.1)

http://code.google.com/p/reviewboard/issues/detail?id=2322

Just to give some more info:
I'm running reviewboard fastcgi with the following command:
 /usr/local/bin/python /usr/local/bin/rb-site manage /sites/domain/reviews  
runfcgi socket=/sites/domain/reviews/tmp/fastcgi.sock  
pidfile=/var/run/reviews.pid


and this is my apache config:

AddHandler fcgid-script .fcgi



AddHandler fastcgi-script .fcgi

 
FastCGIExternalServer "/sites/domain/reviews/htdocs/reviewboard.fcgi"  
-socket "/sites/domain/reviews/tmp/fastcgi.sock"




ServerName reviews.domain
DocumentRoot "/sites/domain/reviews/htdocs"

# Alias static media requests to filesystem
Alias /media "/sites/domain/reviews/htdocs/media"
Alias /errordocs "/sites/domain/reviews/htdocs/errordocs"

# Error handlers
ErrorDocument 500 /errordocs/500.html


AllowOverride All
Options -Indexes FollowSymLinks
Allow from all


# Direct all other requests to the fastcgi server
RewriteEngine on

RewriteRule ^/(media.*)$ /$1 [QSA,L,PT]
RewriteRule ^/(errordocs.*)$ /$1 [QSA,L,PT]



RewriteRule ^/(media.*)$ /$1 [QSA,L,PT]
RewriteRule ^/(errordocs.*)$ /$1 [QSA,L,PT]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$ /reviewboard.fcgi/$1 [QSA,L]



The content of the reviewboard.fcgi is:
#!/usr/local/bin/python

import os, sys

sys.path.insert(0, "/sites/domain/reviews/conf")
os.environ["DJANGO_SETTINGS_MODULE"] = "reviewboard.settings"
os.environ["PYTHON_EGG_CACHE"] = "/sites/domain/reviews/tmp/egg_cache"
os.environ["HOME"] = "/sites/domain/reviews/data"

from django.core.servers.fastcgi import runfastcgi
runfastcgi(method="threaded", daemonize="false")

Hope this helps.

--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to reviewboard-issues@googlegroups.com.
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en.



Re: Issue 2322 in reviewboard: Unable to post reviews with post-review (0.3.4): can not log in into Reviewboard (1.6.1)

2012-12-04 Thread reviewboard


Comment #18 on issue 2322 by kb...@memcpy.com: Unable to post reviews with  
post-review (0.3.4): can not log in into Reviewboard (1.6.1)

http://code.google.com/p/reviewboard/issues/detail?id=2322

I could reproduce this earlier, but now it works fine for me. The only  
thing that has changed is my password. I used a password manager and let it  
auto-generate random garbage passwords. My previous password was something  
similar to:

.;FFver2&335l:Ab/1o7\x2k

My new password contains only alphanumerics. I suspect there's a problem  
with escaping the input.



--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to reviewboard-issues@googlegroups.com.
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en.



Re: Issue 2322 in reviewboard: Unable to post reviews with post-review (0.3.4): can not log in into Reviewboard (1.6.1)

2012-12-04 Thread reviewboard


Comment #16 on issue 2322 by kb...@memcpy.com: Unable to post reviews with  
post-review (0.3.4): can not log in into Reviewboard (1.6.1)

http://code.google.com/p/reviewboard/issues/detail?id=2322

Chipx86, I can reproduce this as well. Others on my network don't have the  
problem. We're all on OSX. What can I do to help?


--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to reviewboard-issues@googlegroups.com.
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en.



Re: Issue 2322 in reviewboard: Unable to post reviews with post-review (0.3.4): can not log in into Reviewboard (1.6.1)

2012-12-03 Thread reviewboard


Comment #15 on issue 2322 by mvanb...@gmail.com: Unable to post reviews  
with post-review (0.3.4): can not log in into Reviewboard (1.6.1)

http://code.google.com/p/reviewboard/issues/detail?id=2322

I updated to Reviewboard 1.6.14 and the same problem remains.


--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to reviewboard-issues@googlegroups.com.
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en.



Re: Issue 2322 in reviewboard: Unable to post reviews with post-review (0.3.4): can not log in into Reviewboard (1.6.1)

2012-12-03 Thread reviewboard


Comment #14 on issue 2322 by mvanb...@gmail.com: Unable to post reviews  
with post-review (0.3.4): can not log in into Reviewboard (1.6.1)

http://code.google.com/p/reviewboard/issues/detail?id=2322

Some info to get you started:

$ fetch -o - http:///api/info
Authentication required for :80/>!
Login: username
Password:
fetch: http:///api/info: Unauthorized

Yes, I supplied the correct username and password.
And they do work in the webapplication, just not when talking to the api.

--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to reviewboard-issues@googlegroups.com.
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en.



Re: Issue 2322 in reviewboard: Unable to post reviews with post-review (0.3.4): can not log in into Reviewboard (1.6.1)

2012-11-28 Thread reviewboard


Comment #13 on issue 2322 by mvanb...@gmail.com: Unable to post reviews  
with post-review (0.3.4): can not log in into Reviewboard (1.6.1)

http://code.google.com/p/reviewboard/issues/detail?id=2322

Well, I can help you with tracing and testing.
I have a ReviewBoard setup that is not yet used in production (because of  
this particular issue) and I have full access to it.

Just tell me what you need.

As I mentioned before, it looks like the problem is in  
djblets/webapi/auth.py
Since this is totally new for me, and with limited time on hands I dont  
feel confident on fixing it. But helping to get it fixed is the least I can  
do right?


Just let me know. You can always mail me in person if you want to  
discuss/test someting

mvanbaak (at) gmail (dot) com

--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to reviewboard-issues@googlegroups.com.
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en.



Re: Issue 2322 in reviewboard: Unable to post reviews with post-review (0.3.4): can not log in into Reviewboard (1.6.1)

2012-11-28 Thread reviewboard


Comment #12 on issue 2322 by chip...@gmail.com: Unable to post reviews with  
post-review (0.3.4): can not log in into Reviewboard (1.6.1)

http://code.google.com/p/reviewboard/issues/detail?id=2322

I'll spend some time on this. Last few times I looked, though, I couldn't  
repro it and nothing looks obviously wrong. What we really need is someone  
who actively hits it who can trace the code. I would really like to see  
this fixed.


--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to reviewboard-issues@googlegroups.com.
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en.



Re: Issue 2322 in reviewboard: Unable to post reviews with post-review (0.3.4): can not log in into Reviewboard (1.6.1)

2012-11-28 Thread reviewboard


Comment #11 on issue 2322 by mvanb...@gmail.com: Unable to post reviews  
with post-review (0.3.4): can not log in into Reviewboard (1.6.1)

http://code.google.com/p/reviewboard/issues/detail?id=2322

Is anyone actually going to look into this?
The same problem still exists with the latest reviewboard!
I updated from 1.6.11 to 1.6.14 with easy_install -U ReviewBoard, so I also  
have the latest djblets.


PLEASE, this is not a medium issue, this is a serious issue for installs  
that depend on ldap!


--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to reviewboard-issues@googlegroups.com.
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en.



Re: Issue 2322 in reviewboard: Unable to post reviews with post-review (0.3.4): can not log in into Reviewboard (1.6.1)

2012-07-13 Thread reviewboard


Comment #10 on issue 2322 by mvanb...@gmail.com: Unable to post reviews  
with post-review (0.3.4): can not log in into Reviewboard (1.6.1)

http://code.google.com/p/reviewboard/issues/detail?id=2322

For this, I think it goes wrong in djblets/webapi/auth.py :( My knowledge  
of djblets and django is close to 0, so now I have no idea how to go from  
here to fix this.


--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to reviewboard-issues@googlegroups.com.
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en.



Re: Issue 2322 in reviewboard: Unable to post reviews with post-review (0.3.4): can not log in into Reviewboard (1.6.1)

2012-07-13 Thread reviewboard


Comment #9 on issue 2322 by mvanb...@gmail.com: Unable to post reviews with  
post-review (0.3.4): can not log in into Reviewboard (1.6.1)

http://code.google.com/p/reviewboard/issues/detail?id=2322

It is not a problem in post-review, but in the api.
If I go to the url /api/info/ without being logged in, it gives me a http  
authentication box. If I fill in my username and password, it will not  
login and simply return the login box again.


Yes, I have LDAP authentication inside my ReviewBoard.

Anything I can do to debug this?
Running reviewboard 1.6.9

--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to reviewboard-issues@googlegroups.com.
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en.



Re: Issue 2322 in reviewboard: Unable to post reviews with post-review (0.3.4): can not log in into Reviewboard (1.6.1)

2011-11-07 Thread reviewboard


Comment #8 on issue 2322 by chip...@gmail.com: Unable to post reviews with  
post-review (0.3.4): can not log in into Reviewboard (1.6.1)

http://code.google.com/p/reviewboard/issues/detail?id=2322

I'm confused about your comment above about not having code trying to log  
in. That's what the BasicHTTPAuthHandler is doing. When it sees a response  
from the server for /api/info/ saying that authorization is required, that  
handler will kick in and ask the user for credentials.


--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to reviewboard-issues@googlegroups.com.
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en.



Re: Issue 2322 in reviewboard: Unable to post reviews with post-review (0.3.4): can not log in into Reviewboard (1.6.1)

2011-10-20 Thread reviewboard


Comment #7 on issue 2322 by teki...@gmail.com: Unable to post reviews with  
post-review (0.3.4): can not log in into Reviewboard (1.6.1)

http://code.google.com/p/reviewboard/issues/detail?id=2322

Workaround: copy the cookie from the browser.

A script for OSX:
#!/usr/bin/python

import plistlib
import os
import time

HOME=os.environ["HOME"]
COOKIES=plistlib.readPlist(HOME + "/Library/Cookies/Cookies.plist")

rbs = [x for x in COOKIES if x["Name"] == "rbsessionid"]

f = open(HOME + "/.post-review-cookies.txt", "w")
f.write("""# Netscape HTTP Cookie File
# http://www.netscape.com/newsref/std/cookie_spec.html
# This is a generated file!  Do not edit.

""") 
for rb in rbs:
	f.write("%s\tFALSE\t%s\tFALSE\t%d\t%s\t%s\n" % (rb["Domain"], rb["Path"],  
int(time.mktime(rb["Expires"].timetuple())), rb["Name"], rb["Value"]))

f.close()


--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to reviewboard-issues@googlegroups.com.
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en.



Re: Issue 2322 in reviewboard: Unable to post reviews with post-review (0.3.4): can not log in into Reviewboard (1.6.1)

2011-10-06 Thread reviewboard


Comment #6 on issue 2322 by teki...@gmail.com: Unable to post reviews with  
post-review (0.3.4): can not log in into Reviewboard (1.6.1)

http://code.google.com/p/reviewboard/issues/detail?id=2322

Ok, I give up.

What I found:
- check_api_version() does not work in post-review because it tries to get  
api/info which can only be accessed after you logged in
- no code is trying to log in through the api in post-review (there is some  
code for the deprecated api)


--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to reviewboard-issues@googlegroups.com.
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en.



Re: Issue 2322 in reviewboard: Unable to post reviews with post-review (0.3.4): can not log in into Reviewboard (1.6.1)

2011-10-06 Thread reviewboard


Comment #5 on issue 2322 by teki...@gmail.com: Unable to post reviews with  
post-review (0.3.4): can not log in into Reviewboard (1.6.1)

http://code.google.com/p/reviewboard/issues/detail?id=2322

check_api_version() fails because  
http://nitrogen.local/reviewboard/api/info/ can not be requested without  
logging in.



--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to reviewboard-issues@googlegroups.com.
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en.



Re: Issue 2322 in reviewboard: Unable to post reviews with post-review (0.3.4): can not log in into Reviewboard (1.6.1)

2011-10-06 Thread reviewboard


Comment #4 on issue 2322 by teki...@gmail.com: Unable to post reviews with  
post-review (0.3.4): can not log in into Reviewboard (1.6.1)

http://code.google.com/p/reviewboard/issues/detail?id=2322

Added logging to the ldap module, it is not called when trying to use the  
api.


--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to reviewboard-issues@googlegroups.com.
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en.



Re: Issue 2322 in reviewboard: Unable to post reviews with post-review (0.3.4): can not log in into Reviewboard (1.6.1)

2011-10-06 Thread reviewboard


Comment #3 on issue 2322 by teki...@gmail.com: Unable to post reviews with  
post-review (0.3.4): can not log in into Reviewboard (1.6.1)

http://code.google.com/p/reviewboard/issues/detail?id=2322

No, usernames and passwords are very simple.

--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to reviewboard-issues@googlegroups.com.
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en.



Re: Issue 2322 in reviewboard: Unable to post reviews with post-review (0.3.4): can not log in into Reviewboard (1.6.1)

2011-10-06 Thread reviewboard


Comment #2 on issue 2322 by teki...@gmail.com: Unable to post reviews with  
post-review (0.3.4): can not log in into Reviewboard (1.6.1)

http://code.google.com/p/reviewboard/issues/detail?id=2322

Seems to be the same problem as 2281

--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to reviewboard-issues@googlegroups.com.
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en.



Re: Issue 2322 in reviewboard: Unable to post reviews with post-review (0.3.4): can not log in into Reviewboard (1.6.1)

2011-10-06 Thread reviewboard

Updates:
Status: NeedInfo

Comment #1 on issue 2322 by chip...@gmail.com: Unable to post reviews with  
post-review (0.3.4): can not log in into Reviewboard (1.6.1)

http://code.google.com/p/reviewboard/issues/detail?id=2322

There appear to be several incidents of people specifically on LDAP being  
unable to log in with the API. We're trying to figure it out, but so far  
nothing is standing out as obviously wrong.


Can you tell me if either your username or password has any non-ascii  
characters in it?


--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to reviewboard-issues@googlegroups.com.
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en.