Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-9145

prepare can lose data during config munge

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Master
    • None
    • cordova-lib
    • None

    Description

      If a node is added to config.xml with same name and matching attributes as an existing node, but it is missing attributes, it is treated as an exact match during config munge and is not added to platform config.xml. For example, when the following tags are present in www/config.xml, then second tag will not be added to platforms/android/res/xml/config.xml:

      <access origin="*" launch-external="yes"/>
      <access origin="*" />
      

      AFAIK, this is most important for access tags, but will affect any tag where it is possible for one tag to be a subset of another tag.

      Attachments

        Activity

          People

            tony-- Tony Homer
            tony-- Tony Homer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: