Uploaded image for project: 'EJBCA'
  1. EJBCA
  2. ECA-3460

State dump tool does not import any data with "-overwrite no"

    Details

    • Issue discovered during:
      Integration

      Description

      The state dump tool will not import any data at all if it is passed the parameter "-overwrite no", even if there is some data in the state dump that is not present in the database.

      Importing without the above parameter will work correctly (the user will be prompted with overwrite questions where appropriate).

      For example:

      ---%---
      [jboss@manca1 statedump]$ java -jar statedump.jar import -l /opt/ejbca-custom/conf/statedump/ -overwrite no
      Importing dump from directory: /opt/ejbca-custom/conf/statedump

      Importing publishers:
      Imported 0 publishers.

      Importing CryptoTokens:
      Imported 0 CryptoTokens.

      Importing CAs:
      Imported 0 CAs

      Importing services:
      Imported 0 services.

      Importing Certificate Profiles:
      Imported 0 certificate profiles.

      Importing End Entity Profiles:
      Imported 0 end entity profile.

      Importing roles:
      Imported 0 roles.

      Importing internal key bindings:
      Imported 0 internal key bindings.

      Importing System Configuration

      Importing Administrator Preference Defaults

      Importing CMP Configuration

      Finished. You may need to clear the caches under System Configuration
      in the Admin GUI for the changes to become visible.
      ---%---

        Attachments

          Activity

            People

            • Assignee:
              samuel Samuel Lidén Borell
              Reporter:
              branko Branko Majic (Inactive)
              Verified by:
              Branko Majic (Inactive), Tomas Gustavsson
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: