Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 317604 - jetty.xml's <Property> does not use the default value attribute as a value.
Summary: jetty.xml's <Property> does not use the default value attribute as a value.
Status: RESOLVED FIXED
Alias: None
Product: Jetty
Classification: RT
Component: other (show other bugs)
Version: 7.1.4   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: 7.1.x   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-22 11:19 EDT by Hugues Malphettes CLA
Modified: 2010-06-22 12:33 EDT (History)
1 user (show)

See Also:


Attachments
Proposed fix and one more assertion in the testunit to test it. (2.35 KB, patch)
2010-06-22 11:39 EDT, Hugues Malphettes CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hugues Malphettes CLA 2010-06-22 11:19:56 EDT
<Property name="jetty.port" default="18080"/>
The default value will actually be: System.getProperty("18080").
According to http://wiki.eclipse.org/Jetty/Reference/jetty.xml_syntax#.3CProperty.3E, it should be 18080

The fix consists of changing one line inorg.eclipse.jetty.xml.XmlConfiguration#propertyObj
Comment 1 Hugues Malphettes CLA 2010-06-22 11:39:25 EDT
Created attachment 172432 [details]
Proposed fix and one more assertion in the testunit to test it.
Comment 2 Hugues Malphettes CLA 2010-06-22 12:33:58 EDT
Committed in revision 2037 for the next release after 7.1.4.