Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 106087

Summary: new HTML wizard does not handle .HTML extension (capitalized)
Product: [WebTools] WTP Source Editing Reporter: Ying Chen <ying1>
Component: wst.htmlAssignee: Amy Wu <for.work.things>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 Keywords: Documentation
Version: unspecified   
Target Milestone: 1.5 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Ying Chen CLA 2005-08-04 15:23:53 EDT
This is found for Eclipse 3.1 

1. In a web project, launch the New wizard.
2. Select Web -> HTML 
3. Select an project for the web page. Fill in name "simple.HTML" 
(NOTE: its all caps for the extension) 
4. The file name validation error remains. "The file name must end in one of the
following extensions [html, htm, xhtml, htpl, wml, shtml, shtm]." 
5. This problem is not isolated to .HTML.  It happens for .HTM, .XHTML .. etc
(capitalized extension).
Comment 1 David Williams CLA 2005-08-10 12:24:19 EDT
Amy ... mind if I "double up" ... as you look to fix this (please check if
there's a base bug in contentType support) ... 

Also please consider 1. not requiring an extension at all (and assume "first"?)
for file preferred file type, 2. if a non-qualifying filetype is used, detect
this and offer a user choice for adding to contentType definition? 

As always, your recommendation is desired. 

Comment 2 Amy Wu CLA 2006-01-24 23:28:42 EST
All our wizards (xml, html, jsp, js, css, dtd) were fixed so that the extension check/validation is case insensitive.

I also took David's suggestion #1 into consideration.  A new preference was added to all the "xx Files" preference pages, "Add this suffix (if not specified):"
This allows users to specify their own default extension, so if they do not specify one in the new file wizards, the default one will be used.
Comment 3 Amy Wu CLA 2006-04-14 17:21:14 EDT
Added Documentation keyword to flag UI changes made (explained in comment #2)
Comment 4 Ying Chen CLA 2006-06-19 12:56:56 EDT
verified the fix... 
Comment 5 Amy Wu CLA 2006-06-20 15:12:30 EDT
closing