Karaf
  1. Karaf
  2. KARAF-4

[Karaf] If features:refreshUrl reads an incorrect <features> definition, it deletes the old version

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0
    • Component/s: None
    • Labels:
      None

      Description

      Steps to reproduce:

      1) create a simple feature definition like:
      ---------------
      <features>
      <feature name="spring-dm-web" version="1.2.0">
      <bundle>http://www.abundleUrl.com</bundle>
      </feaure>
      </features>
      ---------------

      2) features:addUrl <path-to-feature>
      3) features:list display the new feature correctly
      4) change the feature definition making the XML invalid, f.i.
      ---------------
      <features>
      <feature name="spring-dm-web" version="1.2.0">
      <bundle>http://www.abundleUrl.com</bundle>
      </feaure>
      </WRONG>
      ---------------
      5) type features:refreshUrl and see that an error is displayed
      6) type features:list ---> see that the "spring-dm-web" feature is disappeared

      I would expect that the old feature is maintained if the new version of the feature XML definition is incorrect. WDYT?

        Activity

        Hide
        Freeman Fang added a comment -
        Show
        Freeman Fang added a comment - commit fix to trunk http://svn.apache.org/viewvc?rev=958933&view=rev

          People

          • Assignee:
            Freeman Fang
            Reporter:
            Filippo Diotalevi
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development