Uploaded image for project: 'WildFly Elytron'
  1. WildFly Elytron
  2. ELY-2540

Elytron Tool filesystem-realm-encrypt checks incorrect script location for overwrite

    XMLWordPrintable

Details

    Description

      When adding encryption support to an existing filesystem realm, Elytron Tool creates a CLI script explaining how to add the resources to WildFly. The command checks whether a file already exists as the location where the CLI script will be saved, and asks the user if they want to overwrite it.

      Currently, the wrong file location is checked, with the overwrite check looking at the relative location ./<realm-name>.cli, instead of the actual path the file is written at: <output-location>/<realm-name>.cli.

      The overwrite command and the write command should use a single Path variable set to the output-location path, instead of defining the value separately.


      This issue also addresses a misconfiguration of the prompt for the overwrite check. Currently, it outputs the message Password: and hides the user's input. This is due to the incorrect parameters being used in Command.prompt(). The message should be placed in the prompt, and echo set to true.

      Attachments

        Issue Links

          Activity

            People

              dkafe Dimitris Kafetzis
              rh-ee-carodrig Cameron Rodriguez (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: