Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 428224

Summary: Gerrit file system plugin: The .Name property return from fetchChildren and read(metadata) is not identical.
Product: [ECD] Orion Reporter: libing wang <libingw>
Component: ClientAssignee: Bogdan Gheorghe <gheorghe>
Status: RESOLVED WONTFIX QA Contact:
Severity: minor    
Priority: P3 CC: simon_kaegi
Version: 5.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description libing wang CLA 2014-02-14 15:34:41 EST
In the readonly file widget when a gerrit file system starts from the root, the widget uses fetchChildren to get all available branches and names in a a cached list.
Then it picks up a branch called "master"(if exists) or just the first branch as the default branch to show.

When this default branch is determined, the widget asks input manager to handle input on the location of the "master". In turn, the widget has to handle the meta data returned by the input manager. But at this moment the metadata.Name somehow becomes "ref/head/master".

We need identical name on the same Location of a resource, from both read and fetch children.
Comment 1 libing wang CLA 2014-02-14 15:35:41 EST
Github file plugin does not have this issue.
Comment 2 libing wang CLA 2014-03-03 11:48:42 EST
I fixed Bug 429482, which retrieves the label from the cached list on selected "Location".
The inconsistency from the gerrit FS plugin is not affecting the selector's label anymore.
Comment 3 John Arthorne CLA 2015-05-05 14:54:36 EDT
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see:

https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html