Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-5447

CheckAndModifyPropertyValueTask should offer a way to not fail on missing nodes

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Neutral
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: updatemechanism
    • Labels:
      None

      Description

      The CheckAndModifyPropertyValueTask is used to modify properties of nodes that might be already not present (due to user changes). In such situation, it causes an installation/update error - but many times such missing node is not a reason to abort the module installation/update.

      I suggest to add new constructor with a boolean strict parameter, that will indicate whether an error (if true) or just a warning shall be issued in case that the specified node is not found. The current constructors will call the new one with the strict parameter set to true, to keep the current contract.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dlipp Daniel Lipp
              Reporter:
              jchocholacek Jozef Chocholacek
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response: