Issue Details (XML | Word | Printable)

Key: NBRCP_KOLEKTIV-5
Type: Bug Bug
Status: Open Open
Priority: Critical Critical
Assignee: Varun Nischal
Reporter: Varun Nischal
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
nbrcp-kolektiv

Can't resolve Html filename when identifier has dot-dot-forward_slash (../) as prefix

Created: 30/Jun/09 07:27 AM   Updated: 01/Jul/09 06:52 AM
Component/s: nbm-hyperlink
Affects Version/s: RHN v1.0, RHN v1.1
Fix Version/s: RHN v1.2

Time Tracking:
Not Specified

Environment: NetBeans 6.0 IDE, JDK 1.5 (Source Level and Java Platform) Recommended

Tags: hyperlink fileobject java


 Description  « Hide
Line #144 of OpenThreadImpl.java[1] causing issues;
htmlFileURI = htmlFileURI.resolve(htmlFileName);

This resolves the file name incorrectly, when identifier contains "../path/to/ref.html". Thus, causing serious problems in navigation, returns null reference of FileObject (Line #155).

[1] http://kenai.com/projects/nbrcp-kolektiv/sources/incubator/content/nbplugins/trunk/ahrefhyperlink.revamped/src/com/wp/nbguru/ahrefhyperlink/revamped/OpenThreadImpl.java?rev=79



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order

Varun Nischal added a comment - 01/Jul/09 06:52 AM
Should be fixed for version 1.2