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

Summary: Export to HTML generates invalid URLs
Product: contrib Reporter: _ pkuzel <pkuzel>
Component: TasklistAssignee: Tim Lebedkov <lebedkov>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P4    
Version: 4.x   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:

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