Comment #2 on issue 3913 by [email protected]: Update to RBTools 0.7.4,
scripts to interface with reviewboard now error.
https://code.google.com/p/reviewboard/issues/detail?id=3913
Hi Barret,
Thank you for looking into the issue.
I validated the username:password by logging out of the WebGUI and then
logged back in with the username:password which I used in the "rbt" command
line. The log
in was successful and I could see my dashboard. I'm going to assume that
this is a valid test of the username and password.
I performed the same steps as you and here are the results. Based on the
results, if I manually enter the password, the action is performed
successfully, but if I specify the password on the command line is fails.
Has something changed in how the --password option parses the argument
passed in on the command line?
1. Remove ~/.rbtools-cookies and run `rbt status --username username
--password password`. *** FAILED
~/ws/myproject/code > rbt status --debug
--server "https://review.my.server.com/" --repository "myRepo"
--username "jstobern" --password "mypassword"
RBTools 0.7.4
Python 2.7.5 (default, Jun 24 2015, 00:41:19)
[GCC 4.8.3 20140911 (Red Hat 4.8.3-9)]
Running on
Linux-3.10.0-229.7.2.el7.x86_64-x86_64-with-centos-7.1.1503-Core
Home = /home/jstobern
Current directory = /home/jstobern/ws/myproject/code
Running: git version
Checking for a Subversion repository...
Running: svn --non-interactive info
Command exited with rc 1: ['svn', '--non-interactive', u'info']
svn: E155007: '/home/jstobern/ws/myproject/code' is not a working copy
---
Checking for a Git repository...
Running: git rev-parse --git-dir
Command exited with rc 128: ['git', 'rev-parse', '--git-dir']
fatal: Not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
---
Checking for a Mercurial repository...
Unable to execute "hg --help": skipping Mercurial
Checking for a CVS repository...
repository info: Path: cvspc.my.server.com:/swdev/cvsrep, Base path:
None, Supports changesets: False
Making HTTP GET request to https://review.my.server.com/api/
Got API Error 103 (HTTP code 401): You are not logged in
Error data: {u'stat': u'fail', u'err': {u'msg': u'You are not logged
in', u'code': 103}}
Traceback (most recent call last):
File "/usr/bin/rbt", line 9, in <module>
load_entry_point('RBTools==0.7.4', 'console_scripts', 'rbt')()
File "/usr/lib/python2.7/site-packages/rbtools/commands/main.py", line
133, in main
command.run_from_argv([RB_MAIN, command_name] + args)
File "/usr/lib/python2.7/site-packages/rbtools/commands/__init__.py",
line 612, in run_from_argv
exit_code = self.main(*args) or 0
File "/usr/lib/python2.7/site-packages/rbtools/commands/status.py", line
39, in main
api_client, api_root = self.get_api(server_url)
File "/usr/lib/python2.7/site-packages/rbtools/commands/__init__.py",
line 768, in get_api
raise CommandError('Unexpected API Error: %s' % e)
rbtools.commands.CommandError: Unexpected API Error: You are not logged in
(HTTP 401, API Error 103)
2. Remove ~/.rbtools-cookies and run `rbt status --username username` ***
PASSED
~/ws/myproject/code > rm -f /home/jstobern/.rbtools-cookies
~/ws/myproject/code > rbt status --debug
--server "https://review.my.server.com/" --repository "myRepo"
--username "jstobern"
RBTools 0.7.4
Python 2.7.5 (default, Jun 24 2015, 00:41:19)
[GCC 4.8.3 20140911 (Red Hat 4.8.3-9)]
Running on
Linux-3.10.0-229.7.2.el7.x86_64-x86_64-with-centos-7.1.1503-Core
Home = /home/jstobern
Current directory = /home/jstobern/ws/myproject/code
Running: git version
Checking for a Subversion repository...
Running: svn --non-interactive info
Command exited with rc 1: ['svn', '--non-interactive', u'info']
svn: E155007: '/home/jstobern/ws/myproject/code' is not a working copy
---
Checking for a Git repository...
Running: git rev-parse --git-dir
Command exited with rc 128: ['git', 'rev-parse', '--git-dir']
fatal: Not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
---
Checking for a Mercurial repository...
Unable to execute "hg --help": skipping Mercurial
Checking for a CVS repository...
repository info: Path: cvspc.my.server.com:/swdev/cvsrep, Base path:
None, Supports changesets: False
Making HTTP GET request to https://review.my.server.com/api/
Please log in to the Review Board server at review.my.server.com.
Password:
Making HTTP GET request to https://review.my.server.com/api/info/
Making HTTP GET request to
https://review.my.server.com/api/session/?expand=user
Making HTTP GET request to
https://review.my.server.com/api/repositories/?only-links=&only-fields=id%2Cname%2Cmirror_path%2Cpath
Making HTTP GET request to
https://review.my.server.com/api/review-requests/?status=pending&expand=draft&repository=14&from-user=jstobern
<snip ... lots of output>
Making HTTP GET request to
https://review.my.server.com/api/review-requests/?max-results=25&start=25&status=pending&from-user=jstobern&repository=14&expand=draft
<snip ... lots of output>
~/ws/myproject/code >
3. Change the session ID in ~/.rbtools-cookies and run `rbt status
--username username --password password`. *** FAILED
~/ws/myproject/code > vi /home/jstobern/.rbtools-cookies
~/ws/myproject/code > rbt status --debug
--server "https://review.my.server.com/" --repository "myRepo"
--username "jstobern" --password "mypassword"
RBTools 0.7.4
Python 2.7.5 (default, Jun 24 2015, 00:41:19)
[GCC 4.8.3 20140911 (Red Hat 4.8.3-9)]
Running on
Linux-3.10.0-229.7.2.el7.x86_64-x86_64-with-centos-7.1.1503-Core
Home = /home/jstobern
Current directory = /home/jstobern/ws/myproject/code
Running: git version
Checking for a Subversion repository...
Running: svn --non-interactive info
Command exited with rc 1: ['svn', '--non-interactive', u'info']
svn: E155007: '/home/jstobern/ws/myproject/code' is not a working copy
---
Checking for a Git repository...
Running: git rev-parse --git-dir
Command exited with rc 128: ['git', 'rev-parse', '--git-dir']
fatal: Not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
---
Checking for a Mercurial repository...
Unable to execute "hg --help": skipping Mercurial
Checking for a CVS repository...
repository info: Path: cvspc.my.server.com:/swdev/cvsrep, Base path:
None, Supports changesets: False
Making HTTP GET request to https://review.my.server.com/api/
Got API Error 103 (HTTP code 401): You are not logged in
Error data: {u'stat': u'fail', u'err': {u'msg': u'You are not logged
in', u'code': 103}}
Traceback (most recent call last):
File "/usr/bin/rbt", line 9, in <module>
load_entry_point('RBTools==0.7.4', 'console_scripts', 'rbt')()
File "/usr/lib/python2.7/site-packages/rbtools/commands/main.py", line
133, in main
command.run_from_argv([RB_MAIN, command_name] + args)
File "/usr/lib/python2.7/site-packages/rbtools/commands/__init__.py",
line 612, in run_from_argv
exit_code = self.main(*args) or 0
File "/usr/lib/python2.7/site-packages/rbtools/commands/status.py", line
39, in main
api_client, api_root = self.get_api(server_url)
File "/usr/lib/python2.7/site-packages/rbtools/commands/__init__.py",
line 768, in get_api
raise CommandError('Unexpected API Error: %s' % e)
rbtools.commands.CommandError: Unexpected API Error: You are not logged in
(HTTP 401, API Error 103)
~/ws/myproject/code >
4. Change the session ID in ~/.rbtools-cookies and run `rbt status
--username username`. ***PASSED
~/ws/myproject/code > vi /home/jstobern/.rbtools-cookies
~/ws/myproject/code > rbt status --debug
--server "https://review.my.server.com/" --repository "myRepo"
--username "jstobern"
RBTools 0.7.4
Python 2.7.5 (default, Jun 24 2015, 00:41:19)
[GCC 4.8.3 20140911 (Red Hat 4.8.3-9)]
Running on
Linux-3.10.0-229.7.2.el7.x86_64-x86_64-with-centos-7.1.1503-Core
Home = /home/jstobern
Current directory = /home/jstobern/ws/myproject/code
Running: git version
Checking for a Subversion repository...
Running: svn --non-interactive info
Command exited with rc 1: ['svn', '--non-interactive', u'info']
svn: E155007: '/home/jstobern/ws/myproject/code' is not a working copy
---
Checking for a Git repository...
Running: git rev-parse --git-dir
Command exited with rc 128: ['git', 'rev-parse', '--git-dir']
fatal: Not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
---
Checking for a Mercurial repository...
Unable to execute "hg --help": skipping Mercurial
Checking for a CVS repository...
repository info: Path: cvspc.my.server.com:/swdev/cvsrep, Base path:
None, Supports changesets: False
Making HTTP GET request to https://review.my.server.com/api/
Please log in to the Review Board server at review.my.server.com.
Password:
Making HTTP GET request to https://review.my.server.com/api/info/
Making HTTP GET request to
https://review.my.server.com/api/session/?expand=user
Making HTTP GET request to
https://review.my.server.com/api/repositories/?only-links=&only-fields=id%2Cname%2Cmirror_path%2Cpath
Making HTTP GET request to
https://review.my.server.com/api/review-requests/?status=pending&expand=draft&repository=14&from-user=jstobern
<snip ... lots of output>
Making HTTP GET request to
https://review.my.server.com/api/review-requests/?max-results=25&start=25&status=pending&from-user=jstobern&repository=14&expand=draft
<snip ... lots of output>
~/ws/myproject/code >
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/d/optout.