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 103674

Summary: Additional WEBrick instances mistakenly spawned when index.html has no DOCTYPE
Product: ruby Reporter: max3000 <max3000>
Component: RailsAssignee: Erno Mononen <emononen>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description max3000 2007-05-10 18:24:21 UTC
When running a rhtml file (shift-F6), the rails component will conveniently
start WEBrick if it's not already started.

However, it mistakenly starts additional WEBrick instances when
public/index.html does not contain a DOCTYPE.
Ex: This works fine:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <!-- Start on the news page -->
    <script type="text/javascript">
    //<![CDATA[
    window.location.href = "/news"
    //]]>
    </script>

But this does not:
    <!-- Start on the news page -->
    <script type="text/javascript">
    //<![CDATA[
    window.location.href = "/news"
    //]]>
    </script>

The latter will spawn additional and unecessary WEBrick instances.

I would normally investigate more and try to find the exact root cause but I'm
strapped for time, sorry. :/
Comment 1 Jiri Kovalsky 2007-07-03 14:12:44 UTC
Reassigning this issue to newly created 'ruby' component.
Comment 2 Quality Engineering 2009-12-21 05:53:33 UTC
This bug was reported against NetBeans IDE 6.0 or an older release, or against a non-maintained module. NetBeans team does not have enough resources to get to this issue, therefore we are closing the issue as a WONTFIX. If you are interested in providing a patch for this bug, please see our NetFIX guidelines for how to proceed. 

We apologize for any inconvenience.


Thank you.
The NetBeans Team