Bug 36388

Summary: Application settings produce extra XML headers during saving
Product: [Mono] Class Libraries Reporter: Arsen.Shnurkov <Arsen.Shnurkov>
Component: System.ConfigurationAssignee: marcos.henrich
Status: RESOLVED FIXED    
Severity: normal CC: joao.matos, marcos.henrich, mono-bugs+mono, mono
Priority: ---    
Version: master   
Target Milestone: Untriaged   
Hardware: PC   
OS: Linux   
Tags: Is this bug a regression?: ---
Last known good build:

Description Arsen.Shnurkov 2015-11-30 19:02:24 UTC
here is short reproduction example:
https://gist.github.com/ArsenShnurkov/6de3131b6e4240085ef8
the wrong line is the second XML header in the created file

here is the full story:
https://github.com/gitextensions/gitextensions/issues/2710
Comment 2 Arsen.Shnurkov 2015-12-01 06:01:09 UTC
Here is proof of concept:
https://gist.github.com/ArsenShnurkov/479cefd3f0ae74325cae
Comment 3 Arsen.Shnurkov 2015-12-01 06:32:38 UTC
I created the pull request
https://github.com/mono/mono/pull/2273
Comment 4 marcos.henrich 2016-01-05 12:01:37 UTC
Hi Arsen,

Thanks for the bug report and fix.

I created a new pull request with your fix and test case.
https://github.com/mono/mono/pull/2400
Comment 5 marcos.henrich 2016-02-15 16:49:52 UTC
Fixed in mono/master 355d2c5eca6ec320ccd4097d7f196b26a721ea94.
https://github.com/mono/mono/commit/355d2c5eca6ec320ccd4097d7f196b26a721ea94

Fixed in mono/mono-4.3.2-branch 96e0145891be996cc224c8c7ae1d05d6ba1abeb1.
https://github.com/mono/mono/commit/96e0145891be996cc224c8c7ae1d05d6ba1abeb1

This will be in Cycle 7.
Comment 6 marcos.henrich 2016-02-25 11:56:21 UTC
*** Bug 38460 has been marked as a duplicate of this bug. ***