- Branch:
-
1.0.xmaster
patch for perforce. If changing the security level of perforce server, perhaps fail to login perforce when creating diffs.
Review Request #1537 — Created April 27, 2010 and discarded
patch for perforce. If changing the security level of perforce server, perhaps fail to login perforce when creating diffs.
SE
- Description:
-
patch for perforce. If changing the security level of perforce server, perhaps fail to login perforce when creating diffs.
+ + To solve this issue:
+ + Traceback (most recent call last):
+ File "c:\python25\lib\site-packages\ReviewBoard-1.0.8-py2.5.egg\reviewboard\diffviewer\views.py", line 153, in view_diff + interdiffset, highlighting, True) + File "c:\python25\lib\site-packages\ReviewBoard-1.0.8-py2.5.egg\reviewboard\diffviewer\diffutils.py", line 623, in get_diff_files + large_data=True) + File "c:\python25\lib\site-packages\Djblets-0.6.1-py2.5.egg\djblets\util\misc.py", line 166, in cache_memoize + data = lookup_callable() + File "c:\python25\lib\site-packages\ReviewBoard-1.0.8-py2.5.egg\reviewboard\diffviewer\diffutils.py", line 622, in <lambda> + enable_syntax_highlighting), + File "c:\python25\lib\site-packages\ReviewBoard-1.0.8-py2.5.egg\reviewboard\diffviewer\diffutils.py", line 344, in get_chunks + old = get_original_file(filediff) + File "c:\python25\lib\site-packages\ReviewBoard-1.0.8-py2.5.egg\reviewboard\diffviewer\diffutils.py", line 251, in get_original_file + large_data=True)[0] + File "c:\python25\lib\site-packages\Djblets-0.6.1-py2.5.egg\djblets\util\misc.py", line 166, in cache_memoize + data = lookup_callable() + File "c:\python25\lib\site-packages\ReviewBoard-1.0.8-py2.5.egg\reviewboard\diffviewer\diffutils.py", line 250, in <lambda> + data = cache_memoize(key, lambda: [fetch_file(file, revision)], + File "c:\python25\lib\site-packages\ReviewBoard-1.0.8-py2.5.egg\reviewboard\diffviewer\diffutils.py", line 229, in fetch_file + data = tool.get_file(file, revision) + File "C:\Python25\lib\site-packages\reviewboard-1.0.8-py2.5.egg\reviewboard\scmtools\perforce.py", line 101, in get_file + raise SCMError('\n'.join(line.lstrip("\t") for line in error)) + SCMError: Password not allowed at this server security level, use 'p4 login'.
SE
- Description:
-
patch for perforce. If changing the security level of perforce server, perhaps fail to login perforce when creating diffs.
- - To solve this issue:
- - Traceback (most recent call last):
- File "c:\python25\lib\site-packages\ReviewBoard-1.0.8-py2.5.egg\reviewboard\diffviewer\views.py", line 153, in view_diff - interdiffset, highlighting, True) - File "c:\python25\lib\site-packages\ReviewBoard-1.0.8-py2.5.egg\reviewboard\diffviewer\diffutils.py", line 623, in get_diff_files - large_data=True) - File "c:\python25\lib\site-packages\Djblets-0.6.1-py2.5.egg\djblets\util\misc.py", line 166, in cache_memoize - data = lookup_callable() - File "c:\python25\lib\site-packages\ReviewBoard-1.0.8-py2.5.egg\reviewboard\diffviewer\diffutils.py", line 622, in <lambda> - enable_syntax_highlighting), - File "c:\python25\lib\site-packages\ReviewBoard-1.0.8-py2.5.egg\reviewboard\diffviewer\diffutils.py", line 344, in get_chunks - old = get_original_file(filediff) - File "c:\python25\lib\site-packages\ReviewBoard-1.0.8-py2.5.egg\reviewboard\diffviewer\diffutils.py", line 251, in get_original_file - large_data=True)[0] - File "c:\python25\lib\site-packages\Djblets-0.6.1-py2.5.egg\djblets\util\misc.py", line 166, in cache_memoize - data = lookup_callable() - File "c:\python25\lib\site-packages\ReviewBoard-1.0.8-py2.5.egg\reviewboard\diffviewer\diffutils.py", line 250, in <lambda> - data = cache_memoize(key, lambda: [fetch_file(file, revision)], - File "c:\python25\lib\site-packages\ReviewBoard-1.0.8-py2.5.egg\reviewboard\diffviewer\diffutils.py", line 229, in fetch_file - data = tool.get_file(file, revision) - File "C:\Python25\lib\site-packages\reviewboard-1.0.8-py2.5.egg\reviewboard\scmtools\perforce.py", line 101, in get_file - raise SCMError('\n'.join(line.lstrip("\t") for line in error)) - SCMError: Password not allowed at this server security level, use 'p4 login'. - Diff:
-
Revision 3 (+9 -2)
AR
-
Using "p4 login" is what my patch (http://reviews.reviewboard.org/r/1445/) also does. It should now include all of the changes Christian requested some time ago. What it does different is that it won't enforce "p4 login" but makes it optional depending on a configuration setting. What I don't understand is why you call the login command with each connect. Running the login command should replace both user and password attributes of the p4 class with the ticket credentials so those will be used for further p4 calls. I don't see the necessity to redo that step with each connect.