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

Bug 332167

Summary: generic capability attribute lists should not be trimmed.
Product: [Eclipse Project] Equinox Reporter: Thomas Watson <tjwatson>
Component: FrameworkAssignee: Thomas Watson <tjwatson>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.7   
Target Milestone: 3.7 M5   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
patch none

Description Thomas Watson CLA 2010-12-08 15:13:30 EST
When specifying a Provide-Capability header an attribute may specify a list of String values:

Provide-Capability: foo; s.attr:List<String>="aString,bString,cString"

When the attribute is of type String then whitespace is significant.  Currently the parser is trimming the whitespace from the beginning and end of the overall attribute value.  This makes the following the same as the above header, which is not correct:

Provide-Capability: foo; s.attr:List<String>=" aString,bString,cString "
Comment 1 Thomas Watson CLA 2010-12-08 15:15:47 EST
Created attachment 184815 [details]
patch
Comment 2 Thomas Watson CLA 2010-12-09 13:27:52 EST
Patch released to head.