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

Bug 436410

Summary: Gerrit file system plugin: Need a better way to resolve relative URL.
Product: [ECD] Orion Reporter: libing wang <libingw>
Component: ClientAssignee: Project Inbox <orion.client-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: major    
Priority: P3 CC: gheorghe, simon_kaegi
Version: 5.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description libing wang CLA 2014-06-02 17:04:39 EDT
In the Gerrit file system plugin, a folder URL and a file URL have different format. They both use "/" represent the hierarchy of a resource, which is good for translating a relative URL into an absolute one. However all folder URLs start from "/list" and all file URLS start from "/contents".

For example a readme.md file URL under a repo master is something like:
***/contents/myRepo/refs%252Fheads%252Fmaster/readme.md

And a folder URL under a repo master is something like:
***/list/myRepo/refs%252Fheads%252Fmaster/folder123

The issue happens in this case:
If in the readme.md file , I have a line like below
[Please refer to this folder](folder123)

The relative URL "folder123" will be translated to ***/contents/myRepo/refs%252Fheads%252Fmaster/folder123 be cause the base URL comes from the readme.ms. There is no way to know the URL has to start with "/list".
Comment 1 John Arthorne CLA 2015-05-05 16:21:47 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