Uploaded image for project: 'NiFi Registry - MOVED TO NIFI PROJECT'
  1. NiFi Registry - MOVED TO NIFI PROJECT
  2. NIFIREG-222

NiFi Registry Working dir and docs dir logic

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.4.0
    • None
    • None

    Description

      Working dir

      In RunNiFiRegistry.java, there is problematic logic deriving the default working dir. It assumes the bootstrap.conf file's parent's parent is the NiFi Registry home directory. The problem with this is that (1) the conf dir may be externalized and (2) everywhere else in the code uses the NIFI_REGISTRY_HOME env variable. Lastly, the property that can be used to override this default with an explicit location, working.dir= is not in the template bootstrap.conf with documentation for how it works.

      This should be corrected.

      Docs dir

      The location of the NiFi Registry docs dir is a hardcoded relative path at JettyServer.java#L376.

      The other directories the are relevant to the NiFi Registry runtime environment are externally configurable via properties and environment variables.

      This should be modified to allow for overriding the docs directory location. It can still default to the current (hardcoded, unchangeable) location if an override is not specified explicitly.

      Attachments

        Issue Links

          Activity

            People

              bbende Bryan Bende
              kdoran Kevin Doran
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m