jraine/munkiserver — Issue #107: display_name constraints in package_branch.rb causes conflicts
Author: dayglojesus
Created: 2011-11-30 19:11:15+00:00
State: open

Uploading a pkg that shares a display_name attrib with a package in another branch, causes a conflict:

*** ERROR ***
1 error prohibited this package from being saved
There were problems with the following fields:
Package branch display name has already been taken

*** EXAMPLE ***
Branch A, Name: Silverlight
- empty branch, no packages
- this branch is the name that `makepkginfo` parses out by default

Branch B, Name: Microsoft_Silverlight
- contains multiple packages with display_name: Microsoft® Silverlight™ Browser Plug-In
- this branch's name was edited manually
- this branch name is referenced in all manifests and is the preferred name

Upload a New Package: Silverlight.dmg
- this package was downloaded directly from Microsoft
- makepkginfo determines
1. display_name: Microsoft® Silverlight™ Browser Plug-In
2. name: Silverlight

Upon upload, the package will produce an error because the constraints in package_branch.rb demand that all display_name attributes be unique across all branches. The conflicting display_name in the two different branches is not allowed.

The display_name attribute should be arbitrary.