My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
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
Status:  Released
Owner:  ----
Closed:  Sep 2013


Sign in to add a comment
 
Project Member Reported by edwin.ke...@gmail.com, Aug 30, 2013
************************************************************
***** 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
#2 sop@google.com
(No comment was entered for this change.)
Status: Submitted
Labels: FixedIn-2.8
Dec 9, 2013
Project Member #3 david.pu...@sonymobile.com
(No comment was entered for this change.)
Status: Released
Sign in to add a comment

Powered by Google Project Hosting