-
Improvement
-
Resolution: Fixed
-
Major
-
None
Trac browser URL can not always be created by appending the Trac URL and the changed file path.
Sometimes the file path must be truncated (see JENKINS-7032), sometime the file path must be extended by a prefix.
Example for Truncate
The link will then point at:
http://trac.mycompany.com/trac-project/browser/Product/Trunk/subdir/file.txt
But my Trac installation has its root at Product/Trunk/, so the only link that would work is:
http://trac.mycompany.com/trac-project/browser/subdir/file.txt
Example for Prefix
Only the path to the file is included resulting in incorrect urls. So for example, I get this incorrect url:
http://trac.mycompany.com/browser/myfile.py
instead of this correct url:
http://trac.mycompany.com/browser/myrepo/myfile.py
[JENKINS-13366] Prefix or truncate the file path of a change set to build Trac source browser URL
Description |
Original:
Trac browser URL can not always be created by appending the Trac URL and the changed file path. Sometimes the file path must be truncated (see JENKINS-7032), sometime the file path must be extended by a prefix. *Example for Truncate* The link will then point at: {{http://trac.mycompany.com/trac-project/browser/Product/Trunk/subdir/file.txt}} But my Trac installation has its root at Product/Trunk/, so the only link that would work is: {{http://trac.mycompany.com/trac-project/browser/subdir/file.txt}} *Example for Prefix* Only the path to the file is included resulting in incorrect urls. So for example, I get this incorrect url: {{http:// trac.mycompany.com/browser/myfile.py}} instead of this correct url: {{http:// trac.mycompany.com/browser/*myrepo/*myfile.py}} |
New:
Trac browser URL can not always be created by appending the Trac URL and the changed file path. Sometimes the file path must be truncated (see JENKINS-7032), sometime the file path must be extended by a prefix. *Example for Truncate* The link will then point at: {{http://trac.mycompany.com/trac-project/browser/Product/Trunk/subdir/file.txt}} But my Trac installation has its root at Product/Trunk/, so the only link that would work is: {{http://trac.mycompany.com/trac-project/browser/subdir/file.txt}} *Example for Prefix* Only the path to the file is included resulting in incorrect urls. So for example, I get this incorrect url: {{http://trac.mycompany.com/browser/myfile.py}} instead of this correct url: {{http://trac.mycompany.com/browser/*myrepo/*myfile.py}} |
Description |
Original:
Trac browser URL can not always be created by appending the Trac URL and the changed file path. Sometimes the file path must be truncated (see JENKINS-7032), sometime the file path must be extended by a prefix. *Example for Truncate* The link will then point at: {{http://trac.mycompany.com/trac-project/browser/Product/Trunk/subdir/file.txt}} But my Trac installation has its root at Product/Trunk/, so the only link that would work is: {{http://trac.mycompany.com/trac-project/browser/subdir/file.txt}} *Example for Prefix* Only the path to the file is included resulting in incorrect urls. So for example, I get this incorrect url: {{http://trac.mycompany.com/browser/myfile.py}} instead of this correct url: {{http://trac.mycompany.com/browser/*myrepo/*myfile.py}} |
New:
Trac browser URL can not always be created by appending the Trac URL and the changed file path. Sometimes the file path must be truncated (see JENKINS-7032), sometime the file path must be extended by a prefix. *Example for Truncate* The link will then point at: {{http://trac.mycompany.com/trac-project/browser/Product/Trunk/subdir/file.txt}} But my Trac installation has its root at Product/Trunk/, so the only link that would work is: {{http://trac.mycompany.com/trac-project/browser/subdir/file.txt}} *Example for Prefix* Only the path to the file is included resulting in incorrect urls. So for example, I get this incorrect url: {{http://trac.mycompany.com/browser/myfile.py}} instead of this correct url: {{http://trac.mycompany.com/browser/myrepo/myfile.py}} |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Assignee | New: Gerd Zanker [ gerd_zanker ] |
Status | Original: In Progress [ 3 ] | New: Open [ 1 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Workflow | Original: JNJira [ 143830 ] | New: JNJira + In-Review [ 190766 ] |