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

Bug 312286

Summary: Plug-in problem gives an error for a valid Manifest
Product: [Eclipse Project] PDE Reporter: Zina Mostafia <zina>
Component: UIAssignee: PDE-UI-Inbox <pde-ui-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: caniszczyk, curtis.windatt.public, darin.eclipse, klmcclam
Version: 3.6Flags: curtis.windatt.public: review+
curtis.windatt.public: review? (darin.eclipse)
Target Milestone: 3.6 RC1   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
patch
none
Additional Fixes none

Description Zina Mostafia CLA 2010-05-10 11:59:22 EDT
Build Identifier: 3.6

The Plug-in Manifest validator is complaining from a missing Bundle-Name header, while this header entry is optional according to the OSGi specifications.

Bundle-Name          optional Recommended human readable name of this framework.



Reproducible: Always

Steps to Reproduce:
1.Create a new Plugin
2.Open the Manifest and remove the optional entry Bundle-Name: x.y.z
3.You will get a Validation error.
Comment 1 Darin Wright CLA 2010-05-10 16:04:32 EDT
Created attachment 167808 [details]
patch

Validation has been there since day one, but the header is not required. Simple fix to remove the check.
Comment 2 Darin Wright CLA 2010-05-10 16:04:52 EDT
please review, Curtis.
Comment 3 Curtis Windatt CLA 2010-05-10 17:06:12 EDT
Created attachment 167820 [details]
Additional Fixes
Comment 4 Chris Aniszczyk CLA 2010-05-10 17:08:38 EDT
We should make sure this doesn't have any unintended repercussions... for example, if you change the preference to show bundle name's instead of IDs... do we fail?
Comment 5 Curtis Windatt CLA 2010-05-10 17:09:52 EDT
+1 I applied the patch.  There were some outstanding issues, which I fixed in HEAD, but they are captured by the attached "additional fixes" patch.

Darin, please verify these fixes.

Fix 1: The manifest editor had additional validation in the general info section
Fix 2: The new project creation wizard had additional validation of the name header
Comment 6 Curtis Windatt CLA 2010-05-10 17:14:15 EDT
(In reply to comment #4)
> We should make sure this doesn't have any unintended repercussions... for
> example, if you change the preference to show bundle name's instead of IDs...
> do we fail?

No, the label provider uses blank strings in that case.
Comment 7 Darin Wright CLA 2010-05-10 22:19:20 EDT
If I remove the name of a plug-in that has been externalized (in the manifest editor), I still get a warning in the editor: "The specified value is not externalized".