[JBoss JIRA] (ELY-1745) The AvailableRealmsCallback should not result in a NPE if there is no mechanism configuration.
by Farah Juma (Jira)
[ https://issues.jboss.org/browse/ELY-1745?page=com.atlassian.jira.plugin.s... ]
Farah Juma updated ELY-1745:
----------------------------
Fix Version/s: 1.11.0.CR3
(was: 1.11.0.CR2)
> The AvailableRealmsCallback should not result in a NPE if there is no mechanism configuration.
> ----------------------------------------------------------------------------------------------
>
> Key: ELY-1745
> URL: https://issues.jboss.org/browse/ELY-1745
> Project: WildFly Elytron
> Issue Type: Bug
> Components: API / SPI
> Reporter: Darran Lofthouse
> Priority: Major
> Fix For: 1.11.0.CR3
>
>
> 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)
6 years, 8 months
[JBoss JIRA] (WFWIP-269) Colon in a header name doesn't show a warning
by Tomas Terem (Jira)
[ https://issues.jboss.org/browse/WFWIP-269?page=com.atlassian.jira.plugin.... ]
Tomas Terem updated WFWIP-269:
------------------------------
Description:
Execute:
{code:java}
/core-service=management/management-interface=http-interface:write-attribute(name=constant-headers, value=[{path=/management, headers=[{name=A:B, value=C}]}])
{code}
Reponse now has header 'A' with value 'B: C', but user wanted header 'A:B' with value 'C'. Colon can't be part of the header name, but I think that users should at least see a warning describing this behaviour.
was:
Execute:
{code:java}
/core-service=management/management-interface=http-interface:write-attribute(name=constant-headers, value=[{path=/management, headers=[{name=A:B, value=C}]}])
{code}
Reponse now has header 'A' with value 'B: C', but user wanted header 'A:B' with value 'C'. Of course, colon can't be part of the header name, but I think that users should at least see a warning describing this behaviour.
> Colon in a header name doesn't show a warning
> ---------------------------------------------
>
> Key: WFWIP-269
> URL: https://issues.jboss.org/browse/WFWIP-269
> Project: WildFly WIP
> Issue Type: Bug
> Reporter: Tomas Terem
> Assignee: Darran Lofthouse
> Priority: Blocker
> Labels: management
>
> Execute:
> {code:java}
> /core-service=management/management-interface=http-interface:write-attribute(name=constant-headers, value=[{path=/management, headers=[{name=A:B, value=C}]}])
> {code}
> Reponse now has header 'A' with value 'B: C', but user wanted header 'A:B' with value 'C'. Colon can't be part of the header name, but I think that users should at least see a warning describing this behaviour.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 8 months
[JBoss JIRA] (WFWIP-269) Colon in a header name doesn't show a warning
by Tomas Terem (Jira)
[ https://issues.jboss.org/browse/WFWIP-269?page=com.atlassian.jira.plugin.... ]
Tomas Terem updated WFWIP-269:
------------------------------
Description:
Execute:
{code:java}
/core-service=management/management-interface=http-interface:write-attribute(name=constant-headers, value=[{path=/management, headers=[{name=A:B, value=C}]}])
{code}
Reponse now has header 'A' with value 'B: C', but user wanted header 'A:B' with value 'C'. Colon can't be part of the header name, but users should at least see a warning describing this behaviour.
was:
Execute:
{code:java}
/core-service=management/management-interface=http-interface:write-attribute(name=constant-headers, value=[{path=/management, headers=[{name=A:B, value=C}]}])
{code}
Reponse now has header 'A' with value 'B: C', but user wanted header 'A:B' with value 'C'. Colon can't be part of the header name, but I think that users should at least see a warning describing this behaviour.
> Colon in a header name doesn't show a warning
> ---------------------------------------------
>
> Key: WFWIP-269
> URL: https://issues.jboss.org/browse/WFWIP-269
> Project: WildFly WIP
> Issue Type: Bug
> Reporter: Tomas Terem
> Assignee: Darran Lofthouse
> Priority: Blocker
> Labels: management
>
> Execute:
> {code:java}
> /core-service=management/management-interface=http-interface:write-attribute(name=constant-headers, value=[{path=/management, headers=[{name=A:B, value=C}]}])
> {code}
> Reponse now has header 'A' with value 'B: C', but user wanted header 'A:B' with value 'C'. Colon can't be part of the header name, but users should at least see a warning describing this behaviour.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 8 months