Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-148

Need to modify update process of nexus.xml to prevent data loss in extreme conditions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0-beta
    • Fix Version/s: 1.0-beta
    • Component/s: None
    • Labels:
      None

      Description

      If the disk fills up, and nexus can't properly write to the nexus.xml file, there is potential that the nexus.xml file will be left in an empty, and unusable state. To prevent things like this, should do the following.

      First, copy the nexus.xml to nexus.xml.bak (for example)
      If the copy fails, then do not update the file, and notify the user that save failed
      If the copy suceeds, go ahead and update the nexus.xml
      If the update fails, notify the user
      If the update succeeds, remove the .bak file

        Attachments

          Activity

            People

            Assignee:
            cstamas Tamás Cservenák
            Reporter:
            bdemers Brian Demers
            Last Updated By:
            Peter Lynch Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title