Closed HalldorLyngmo closed 4 years ago
This one on was also happening on v8 with the Deploy.Contrib v3. There is another issue being fixed - https://github.com/umbraco/Umbraco.Deploy.Contrib/pull/40 - that changes the method at fault here.
I did some testing and after adding that fix the square brackets issue was gone for v8 and contrib v3. So logic dictates that when we backport the fix to contrib v2 this issue can be closed.
There is a PR for that here so I'll update this issue when it has been fully tested - https://github.com/umbraco/Umbraco.Deploy.Contrib/pull/41 -
Tested on v7 as well and there was no exception when transferring values with square brackets after applying the fix.
This will most likely be a part of the next release for the Deploy Contrib v2.
This was fixed in 3.0.1 of Deploy and backported to v7 - closing the issue here.
This will most likely be a part of the next release for the Deploy Contrib v2.
This was fixed in 3.0.1 of Deploy and backported to v7 - closing the issue here.
This fix isn't merged/released for Umbraco 7 though, as https://github.com/umbraco/Umbraco.Deploy.Contrib/pull/41 is still open and the latest release is from 2019: https://www.nuget.org/packages/UmbracoDeploy.Contrib/2.0.0.
Reproduction
Bug summary
I'm using nested content on a document type. There I've selected a document type which has a text string property.
So I create a node using the document type with the nested content and then fill out the textstring property with content like this: [something].
Save it and try to restore the content to the next env.
That fails like this:
What I believe is happening is this. There is be a parsing issue as this is not valid json which is what they are expecting because of the square brackets.
After attaching deploy contrib to the process I was able to get a bit more info. Deploy contrib is failing at line 232:
Umbraco.Deploy.Contrib.Connectors.ValueConnectors.NestedContentValueConnector.SetValue(IContentBase content, String alias, String value) in C:\Git\Umbraco.Deploy.Contrib\src\Umbraco.Deploy.Contrib.Connectors\ValueConnectors\NestedContentValueConnector.cs:line 232
Not sure what would be the best solution, but a validation of the input or a better error message when this happens would be good. Outputting "convertedValue.ToString()" in the error so you know where it fails f.ex.
Specifics
Umbraco version 7.14.0 assembly: 1.0.7009.26199 Umbraco.Deploy.Contrib - Release-v1.0.37
Steps to reproduce
Expected result
The node should be there with the content
Actual result
An error message connected to parsing the nested content
_This item has been added to our backlog AB#2627_