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

Use different return codes for importprofiles CLI command

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: EJBCA 7.4.0
    • Component/s: CLI
    • Labels:
    • Issue discovered during:
      Customer
    • Sprint:
      EJBCA Team Bob - 2020 w7, EJBCA Team Bob -2020 w10, EJBCA Team Bob - 2020 w13

      Description

      The "ejbca.sh ca importprofiles" command currently does not use different return codes for if the import of profiles succeeded or not. Unless there was an error with the output directory or an authorization issue the return code is always SUCCESS(0) even if the import failed for some or all profiles.

      Change the importprofiles command so that it only returns SUCCESS(0) if all profiles where imported successfully and use FUNCTIONAL_FAILURE(1) for if any import failed.

      Bonus points if the command could use other return codes for the cases:
      "imported but with warnings" and "partial imported" etc.

      See support ticket for background.

        Attachments

          Activity

            People

            Assignee:
            andrey_helmes Andrey Sergeev
            Reporter:
            markus Markus Kilås
            Verified by:
            Samuel Lidén Borell
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 2 hours
                2h
                Remaining:
                Time Spent - 1 hour, 30 minutes Remaining Estimate - 30 minutes
                30m
                Logged:
                Time Spent - 1 hour, 30 minutes Remaining Estimate - 30 minutes
                1h 30m