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

Bug 358473

Summary: Exception logged when service.pid contains characters restricted by JMX
Product: [RT] Virgo Reporter: szetheli+eclipse
Component: runtimeAssignee: Chris Frost <eclipse>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: eclipse
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows Server 2003   
Whiteboard:
Attachments:
Description Flags
Exception when srevice.pid contains : none

Description szetheli+eclipse CLA 2011-09-21 14:21:57 EDT
Build Identifier: Virgo 2.1.0.RELEASE

Virgo exposes the configuration service.pid via JMX for each registered configuration.  It uses the service.pid as part of the ObjectName, however, it apparently fails to sanitize the service.pid before passing it to JMX.  If that service.pid contains characters that are restricted in JMX, an exception is thrown

Reproducible: Always

Steps to Reproduce:
1. Create a service.pid with configuration, in the exception example: "urn:expedia:cc:samples:sampleservice:v2:contract"
2. Start virgo
3. Look at the logs
Comment 1 szetheli+eclipse CLA 2011-09-21 14:22:34 EDT
Created attachment 203798 [details]
Exception when srevice.pid contains :
Comment 2 Chris Frost CLA 2011-09-29 10:03:18 EDT
Fixed on master. Any property values that contain ':' or ',' or '"' or '=' will now be automatically quoted.