U4-6043 - Error parsing package.manifest value Path line 0 position 0

Created by Rasmus Eeg Møller 21 Dec 2014, 08:20:34 Updated by Sebastiaan Janssen 19 Aug 2015, 17:11:26

Is duplicated by: U4-6991

I am trying out the custom section and property editors for Umbraco V7

I cound't understand why i kept getting 'Brand.EditController' is not a function.

But then i looked in the UmbracoLog.txt file and realised it had thrown a few error parsing package.manifest Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: . Path '', line 0, position 0.

Checked the encoding for the package.manifest, and is UTF-8 width DOM Tried with single and double quotes

What am i missing?

2 Attachments

Download package.manifest

Download UmbracoTraceLog.txt

Comments

Sebastiaan Janssen 06 Jan 2015, 16:02:48

I think the problem is that it needs to be without BOM, the parser doesn't seem to know what to do with the BOM characters at the beginning of the file. Could you check if that helps?

Also there's a comma at the end of "App_Plugins/uCar/brandResource.js", which is the last line, you might want to remove that. I also don't know if the comment at the beginning would interfere with anything. When you update the package.manifest file, make sure to recycle your application pool each time so that the new version gets picked up.


Sebastiaan Janssen 19 Aug 2015, 15:44:28

We need to remove the BOM when passing the package.manifest to ManifestParse.CreateManifests - we're doing this in the ViewHelper but this is a bytestream so I'm not sure how to do this correctly with a string.


Sebastiaan Janssen 19 Aug 2015, 16:11:28

Commit made by '''Sebastiaan Janssen''' on ''2015-08-19T18:11:18+02:00'' https://github.com/umbraco/Umbraco-CMS/commit/028ee831b822ae09feb75a776e567ead04fe5a62

U4-6043 Error parsing package.manifest value Path line 0 position 0

#U4-6043 Fixed


Sebastiaan Janssen 19 Aug 2015, 17:11:26

Commit made by '''Sebastiaan Janssen''' on ''2015-08-19T19:11:20+02:00'' https://github.com/umbraco/Umbraco-CMS/commit/f3a965841b170cd48f19c625f24ae84016fa8655

U4-6043 Error parsing package.manifest value Path line 0 position 0

Added a unit test and updated the logic as it was doing the wrong thing #U4-6043 Fixed


Priority: Normal

Type: Bug

State: Fixed

Assignee:

Difficulty: Normal

Category: Packages

Backwards Compatible: True

Fix Submitted:

Affected versions: 7.2.1

Due in version: 7.3.0

Sprint:

Story Points:

Cycle: