| Issue 2096: | Trying to use RefControl.canDelete() from SSH command of a plugin fails because AccessPath is UNKNOWN | |
| 1 person starred this issue and may be notified of changes. | Back to list |
************************************************************ ***** NOTE: THIS BUG TRACKER IS FOR GERRIT CODE REVIEW ***** ***** DO NOT SUBMIT BUGS FOR CHROME, ANDROID, INTERNAL ***** ***** ISSUES WITH YOUR COMPANY'S GERRIT SETUP, ETC. ***** ***** THOSE ISSUE BELONG IN DIFFERENT ISSUE TRACKERS! ***** ************************************************************ Affected Version: current master (9dd5400f1299ca17f377efa3f44f3b4787e4c2da) What steps will reproduce the problem? 1. Write a plugin that implements an SSH command 2. From within this SSH get a RefControl for a ref of one of the repositories 3. invoke RefControl.canDelete() and see that it always returns false (even if the user can delete the ref) What is the expected output? What do you see instead? RefControl.canDelete() should return true if the user can delete the ref Please provide any additional information below. RefControl.canDelete() always returns false since the AccessPath was not set and getCurrentUser().getAccessPath() returns 'UNKNOWN'.
Sep 2, 2013
Project Member
#1
edwin.ke...@gmail.com
Status:
ChangeUnderReview
Sep 2, 2013
(No comment was entered for this change.)
Status:
Submitted
Labels: FixedIn-2.8
Dec 9, 2013
(No comment was entered for this change.)
Status:
Released
|
|
| ► Sign in to add a comment |