This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 46157 - Export to HTML generates invalid URLs
Summary: Export to HTML generates invalid URLs
Status: CLOSED FIXED
Alias: None
Product: contrib
Classification: Unclassified
Component: Tasklist (show other bugs)
Version: 4.x
Hardware: PC All
: P4 blocker (vote)
Assignee: Tim Lebedkov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-14 16:26 UTC by _ pkuzel
Modified: 2005-08-12 11:05 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ pkuzel 2004-07-14 16:26:02 UTC
<http://tasklist.netbeans.org/usertasks/sample.html>
contains "open" links. These are invalid URLs. URL
cannot contain "\". Try to use
File.toURI().toURL().toExternalForm(). Note
File.toURL() is broken.
Comment 1 Tim Lebedkov 2004-07-14 19:12:02 UTC
fixed

Index: UserTaskListXMLTranslator.java
===================================================================
RCS file:
/cvs/tasklist/usertasks/src/org/netbeans/modules/tasklist/usertasks/translators/UserTaskListXMLTranslator.java,v
retrieving revision 1.6
diff -r1.6 UserTaskListXMLTranslator.java
16a17
> import java.net.MalformedURLException;
145c146,151
<             attrs.add(task.getFilename());
---
>             File f = new File(task.getFilename());
>             try {
>                 attrs.add(f.toURI().toURL().toExternalForm());
>             } catch (MalformedURLException e) {
>                 // ignore
>             }
Comment 2 Tim Lebedkov 2005-08-12 11:05:55 UTC
nb 4.1 is out