[JBoss JIRA] (ELY-1745) The AvailableRealmsCallback should not result in a NPE if there is no mechanism configuration.
by Darran Lofthouse (Jira)
[ https://issues.redhat.com/browse/ELY-1745?page=com.atlassian.jira.plugin.... ]
Darran Lofthouse updated ELY-1745:
----------------------------------
Fix Version/s: 1.12.0.CR2
(was: 1.12.0.CR1)
> The AvailableRealmsCallback should not result in a NPE if there is no mechanism configuration.
> ----------------------------------------------------------------------------------------------
>
> Key: ELY-1745
> URL: https://issues.redhat.com/browse/ELY-1745
> Project: WildFly Elytron
> Issue Type: Bug
> Components: API / SPI
> Reporter: Darran Lofthouse
> Priority: Major
> Fix For: 1.12.0.CR2
>
>
> The NPE is due to the following code: -
> {noformat}
> } else if (callback instanceof AvailableRealmsCallback) {
> Collection<String> names = stateRef.get().getMechanismConfiguration().getMechanismRealmNames();
> if (log.isTraceEnabled()) {
> log.tracef("Handling AvailableRealmsCallback: realms = [%s]", String.join(", ", names));
> }
> if (! names.isEmpty()) {
> ((AvailableRealmsCallback) callback).setRealmNames(names.toArray(new String[names.size()]));
> }
> handleOne(callbacks, idx + 1);
> {noformat}
> If mechanism configuration is mandatory this should report an appropriate error, if not it should fallback to specifying an empty list.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 8 months
[JBoss JIRA] (ELY-1953) Elytron tool command execution fails with java.nio.file.NoSuchFileException
by Darran Lofthouse (Jira)
[ https://issues.redhat.com/browse/ELY-1953?page=com.atlassian.jira.plugin.... ]
Darran Lofthouse updated ELY-1953:
----------------------------------
Fix Version/s: 1.12.0.CR2
(was: 1.12.0.CR1)
> Elytron tool command execution fails with java.nio.file.NoSuchFileException
> ----------------------------------------------------------------------------
>
> Key: ELY-1953
> URL: https://issues.redhat.com/browse/ELY-1953
> Project: WildFly Elytron
> Issue Type: Bug
> Components: Command-Line Tool
> Affects Versions: 1.11.3.Final
> Reporter: Ricardo Martin Camarero
> Assignee: Ricardo Martin Camarero
> Priority: Blocker
> Labels: regression
> Fix For: 1.12.0.CR2
>
>
> This is a regression in behavior of *elytron-tool.sh* with respect to 7.3.0.GA-CR4.
> Basically, it was noticed that some commands involving a custom credential store returned a exit code of *0* and no error when executed against 7.3.0.GA-CR4 distribution, while the same commands are failing with various error codes against 7.4.0.CD19-CR1.
> See _Steps to Reproduce_ for an example.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 8 months