Bug 13252

Summary: Javadoc: problems with spaces in destination name
Product: [Eclipse Project] Platform Reporter: Andre Weinand <andre_weinand>
Component: User AssistanceAssignee: Dorian Birsan <birsan>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P1    
Version: 2.0   
Target Milestone: 2.0 M5   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Andre Weinand CLA 2002-04-10 09:21:42 EDT
1) open javdoc wizard on project
2) enter destination name where the last folder name contains a space character
3) 'finish' the wizard
4) select a class with javadoc within that project
5) from context menu select 'Open external javadoc'
-> a help viewer appears showing the folder containing the javadoc
   as iconic 'files and folders' (and not html)
Comment 1 Martin Aeschlimann CLA 2002-04-11 05:06:16 EDT
help browser used
Comment 2 Martin Aeschlimann CLA 2002-04-11 05:06:36 EDT
moving to help
Comment 3 Martin Aeschlimann CLA 2002-04-11 05:18:57 EDT
note that I am using IHelp.displayHelpResource(IHelpResource),
(IHelpResource.getHref() {
  return url.toExternalForm();
)

with
IHelp.displayHelpResource(url.toExternalForm())
things work, but then I run into the javascript access error, which isn't there 
with the first method
Comment 4 Martin Aeschlimann CLA 2002-04-11 06:42:22 EDT
for M5 I change out code to
IHelp.displayHelpResource(url.toExternalForm())
Comment 5 Dorian Birsan CLA 2002-04-11 09:58:47 EDT
There is a bit of inconsistency in the way we handle url's. In some cases we 
call URLEncoder.encode(urlstring), in other cases we don't. It is also 
difficult to know whether the caller has already encoded his url or not. 
Perhaps we should just be consistent and always encode them. 
Comment 6 Dorian Birsan CLA 2002-04-17 22:32:07 EDT
Fixed.
There is now an "Access Denied" error when displaying javadoc inside help but 
this is caused by the buggy html generated by the standard doclet.