Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMS Package, data installer, using allowOverwrite fail for data not already existing #297

Closed
mawtex opened this issue Nov 9, 2016 · 1 comment

Comments

@mawtex
Copy link
Collaborator

mawtex commented Nov 9, 2016

The allowOverwrite attribute which you can set on elements for DataPackageFragmentInstaller will cause an exception, if data being loaded is new (does not exist in the system already).

Repro:

  1. Install attached Orckestra.Test.BeforeOverwriteData.zip as local package
  2. Install attached Orckestra.Test.OverwriteData.zip as local package

Expected:
In step 1, we install 3 data elements (Item 1, Item 3, Item 4).
In step 2, we update "Item 3" and add new data element "Item 2"

Actual:
Package install fail in step 2 with "Non-static method requires a target" error text.

Orckestra.Test.BeforeOverwriteData.zip
Orckestra.Test.OverwriteData.zip

Sample use of the allowOverwrite attribute:

<mi:PackageFragmentInstallers>
	<mi:Add installerType="Composite.Core.PackageSystem.PackageFragmentInstallers.DataPackageFragmentInstaller, Composite" uninstallerType="Composite.Core.PackageSystem.PackageFragmentInstallers.DataPackageFragmentUninstaller, Composite">
		<Types>
			<Type type="Orckestra.Test.Data" allowOverwrite="true">
				<Data dataScopeIdentifier="public" dataFilename="~\Datas\Orckestra.Test.Datas_public.xml" />
			</Type>
		</Types>
	</mi:Add>
</mi:PackageFragmentInstallers>
@mawtex mawtex self-assigned this Nov 9, 2016
mawtex added a commit that referenced this issue Nov 9, 2016
@wwwysocki
Copy link
Contributor

Verified in 20161109.3 (fix-bugs)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants