Skip to content

Fix dcmexport to make --password truly optional#52

Open
Saschollen wants to merge 1 commit into
ThePrez:mainfrom
Saschollen:fix/dcmexport-password-optional
Open

Fix dcmexport to make --password truly optional#52
Saschollen wants to merge 1 commit into
ThePrez:mainfrom
Saschollen:fix/dcmexport-password-optional

Conversation

@Saschollen
Copy link
Copy Markdown

getPasswordOrThrow() was called unconditionally regardless of whether --password was specified, causing a password prompt or error even when the user did not request password protection. Switch both callsites to getPasswordOrNull(), which correctly returns null when isPasswordProtected is false, matching the documented behavior.

getPasswordOrThrow() was called unconditionally regardless of whether
--password was specified, causing a password prompt or error even when
the user did not request password protection. Switch both callsites to
getPasswordOrNull(), which correctly returns null when isPasswordProtected
is false, matching the documented behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant