[ 
https://issues.apache.org/jira/browse/CB-6687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14061880#comment-14061880
 ] 

Sergey Grebnov commented on CB-6687:
------------------------------------

[~agrieve] Actually this problem is slightly different. 

*Situation 1*
defaults.xml provides default value for  access as 
{code}
<access origin="*"/>
{code}
and config.xml wants to restrict access by settings the following
<access origin="https://somedomain.com"/>

How this should work: default access origin must be replaced. What we see 
currently: both are present
{code}
<access origin="*" /> <- this should not be here since it must be overridden 
with config.xml value
<access origin="https://somedomain.com"/>
{code}

*Situation 2*
We have some different preferences in config.xml and defaults.xml
config.xml: 
{code}
<preference name="prefFromConfig" value="123" />
{code}
defaults.xml:
{code}
<preference name="prefFromDefaults" value="456" />
{code}
platform/config.xml:
{code}
<preference name="prefFromConfig" value="123" />
<preference name="prefFromDefaults" value="456" />
{code}

*Summary*
This shows that for some elements we want to preserve the only version from 
config.xml for another elements we should keep both (based on attribute values)




> Cordova-cli prepare needs to overwrite any default values in platform 
> config.xml
> --------------------------------------------------------------------------------
>
>                 Key: CB-6687
>                 URL: https://issues.apache.org/jira/browse/CB-6687
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Windows 8, WP8
>    Affects Versions: 3.4.0
>            Reporter: Jesse MacFadyen
>            Assignee: Jesse MacFadyen
>
> wp8 and windows8 have a default value of *
> Ensure that changes to the project level config.xml overwrite platform 
> config.xml during prepare.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to