Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 1557 by nahor.j: post-review crashed if the home directory is not writable
http://code.google.com/p/reviewboard/issues/detail?id=1557

What version are you running?
post-review 0.8

What steps will reproduce the problem?
1. Have a non writable home directory (can happen when an automated tool
calls post-review)
2. Post a review using post-review
=> crash
Traceback (most recent call last):
  File "/usr/bin/post-review", line 9, in <module>
    load_entry_point('RBTools==0.2rc1', 'console_scripts', 'post-review')()
  File
"/usr/lib64/python2.6/site-packages/RBTools-0.2rc1-py2.6.egg/rbtools/postreview.py",
line 2804, in main
    server.login()
  File
"/usr/lib64/python2.6/site-packages/RBTools-0.2rc1-py2.6.egg/rbtools/postreview.py",
line 341, in login
    'password': password,
  File
"/usr/lib64/python2.6/site-packages/RBTools-0.2rc1-py2.6.egg/rbtools/postreview.py",
line 622, in api_post
    return self.process_json(self.http_post(path, fields, files))
  File
"/usr/lib64/python2.6/site-packages/RBTools-0.2rc1-py2.6.egg/rbtools/postreview.py",
line 606, in http_post
    self.cookie_jar.save(self.cookie_file)
  File "/usr/lib64/python2.6/_MozillaCookieJar.py", line 118, in save
    f = open(filename, "w")
IOError: [Errno 13] Permission denied: '.post-review-cookies.txt'


What is the expected output? What do you see instead?
post-review should handle that gracefully. The cookie file is not necessary
to the functioning of post-review so the error should be ignored (and
display a warning when run with -d/--debug parameter).

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to reviewboard-iss...@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.

Reply via email to