[JBoss JIRA] (ELY-47) NFKC normalization in StringPrep is not in accordance with RFC
by Jan Kalina (JIRA)
[ https://issues.jboss.org/browse/ELY-47?page=com.atlassian.jira.plugin.sys... ]
Jan Kalina updated ELY-47:
--------------------------
Description:
StringPrep from utils use java.text.Normalizer to NFKC normalization. But this normalization is not in accordance with RFC 3454 - see mapping table:
http://tools.ietf.org/html/rfc3454#appendix-B.2
Relevant profile description:
http://tools.ietf.org/html/rfc3454#section-3.2
Full test is part of pull request https://github.com/wildfly-security/wildfly-sasl/pull/13, but for basic testing and for reference can be used this simple test:
{code:java}
@Test
public void testNormalizationWithNFKC(){
ByteStringBuilder b = new ByteStringBuilder();
String before = "\u0041\u0042\u0043\u0044\u0045\u0046\u0047";
String after = "\u0061\u0062\u0063\u0064\u0065\u0066\u0067";
StringPrep.encode(before, b, StringPrep.NORMALIZE_KC);
assertEquals(after, new String(b.toArray()));
}
{code}
was:
StringPrep from utils use java.text.Normalizer to NFKC normalization. But this normalization is not in accordance with RFC 3454 - see mapping table:
http://tools.ietf.org/html/rfc3454#appendix-B.2
Relevant profile description:
http://tools.ietf.org/html/rfc3454#section-3.2
Full test is part of pull request https://github.com/wildfly-security/wildfly-sasl/pull/13 , but for basic testing and for reference can be used this simple test:
{code:java}
@Test
public void testNormalizationWithNFKC(){
ByteStringBuilder b = new ByteStringBuilder();
String before = "\u0041\u0042\u0043\u0044\u0045\u0046\u0047";
String after = "\u0061\u0062\u0063\u0064\u0065\u0066\u0067";
StringPrep.encode(before, b, StringPrep.NORMALIZE_KC);
assertEquals(after, new String(b.toArray()));
}
{code}
> NFKC normalization in StringPrep is not in accordance with RFC
> --------------------------------------------------------------
>
> Key: ELY-47
> URL: https://issues.jboss.org/browse/ELY-47
> Project: WildFly Elytron
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Reporter: Jan Kalina
> Assignee: Darran Lofthouse
>
> StringPrep from utils use java.text.Normalizer to NFKC normalization. But this normalization is not in accordance with RFC 3454 - see mapping table:
> http://tools.ietf.org/html/rfc3454#appendix-B.2
> Relevant profile description:
> http://tools.ietf.org/html/rfc3454#section-3.2
> Full test is part of pull request https://github.com/wildfly-security/wildfly-sasl/pull/13, but for basic testing and for reference can be used this simple test:
> {code:java}
> @Test
> public void testNormalizationWithNFKC(){
> ByteStringBuilder b = new ByteStringBuilder();
> String before = "\u0041\u0042\u0043\u0044\u0045\u0046\u0047";
> String after = "\u0061\u0062\u0063\u0064\u0065\u0066\u0067";
> StringPrep.encode(before, b, StringPrep.NORMALIZE_KC);
> assertEquals(after, new String(b.toArray()));
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 10 months
[JBoss JIRA] (ELY-47) NFKC normalization in StringPrep is not in accordance with RFC
by Jan Kalina (JIRA)
[ https://issues.jboss.org/browse/ELY-47?page=com.atlassian.jira.plugin.sys... ]
Jan Kalina updated ELY-47:
--------------------------
Description:
StringPrep from utils use java.text.Normalizer to NFKC normalization. But this normalization is not in accordance with RFC 3454 - see mapping table:
http://tools.ietf.org/html/rfc3454#appendix-B.2
Relevant profile description:
http://tools.ietf.org/html/rfc3454#section-3.2
Full test is part of pull request https://github.com/wildfly-security/wildfly-sasl/pull/13 , but for basic testing and for reference can be used this simple test:
{code:java}
@Test
public void testNormalizationWithNFKC(){
ByteStringBuilder b = new ByteStringBuilder();
String before = "\u0041\u0042\u0043\u0044\u0045\u0046\u0047";
String after = "\u0061\u0062\u0063\u0064\u0065\u0066\u0067";
StringPrep.encode(before, b, StringPrep.NORMALIZE_KC);
assertEquals(after, new String(b.toArray()));
}
{code}
was:
StringPrep from utils use java.text.Normalizer to NFKC normalization. But this normalization is not in accordance with RFC 3454 - see mapping table:
http://tools.ietf.org/html/rfc3454#appendix-B.2
Relevant profile description:
http://tools.ietf.org/html/rfc3454#section-3.2
Full test will be pull requested soon, but for basic testing and for reference:
{code:java}
@Test
public void testNormalizationWithNFKC(){
ByteStringBuilder b = new ByteStringBuilder();
String before = "\u0041\u0042\u0043\u0044\u0045\u0046\u0047";
String after = "\u0061\u0062\u0063\u0064\u0065\u0066\u0067";
StringPrep.encode(before, b, StringPrep.NORMALIZE_KC);
assertEquals(after, new String(b.toArray()));
}
{code}
> NFKC normalization in StringPrep is not in accordance with RFC
> --------------------------------------------------------------
>
> Key: ELY-47
> URL: https://issues.jboss.org/browse/ELY-47
> Project: WildFly Elytron
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Reporter: Jan Kalina
> Assignee: Darran Lofthouse
>
> StringPrep from utils use java.text.Normalizer to NFKC normalization. But this normalization is not in accordance with RFC 3454 - see mapping table:
> http://tools.ietf.org/html/rfc3454#appendix-B.2
> Relevant profile description:
> http://tools.ietf.org/html/rfc3454#section-3.2
> Full test is part of pull request https://github.com/wildfly-security/wildfly-sasl/pull/13 , but for basic testing and for reference can be used this simple test:
> {code:java}
> @Test
> public void testNormalizationWithNFKC(){
> ByteStringBuilder b = new ByteStringBuilder();
> String before = "\u0041\u0042\u0043\u0044\u0045\u0046\u0047";
> String after = "\u0061\u0062\u0063\u0064\u0065\u0066\u0067";
> StringPrep.encode(before, b, StringPrep.NORMALIZE_KC);
> assertEquals(after, new String(b.toArray()));
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 10 months
[JBoss JIRA] (WFLY-3774) CDI bean with StereoType is not injectable in implicit bean archive
by Takayoshi Kimura (JIRA)
[ https://issues.jboss.org/browse/WFLY-3774?page=com.atlassian.jira.plugin.... ]
Takayoshi Kimura commented on WFLY-3774:
----------------------------------------
The examples uses javax.enterprise.inject.Model, a CDI stereotype which definies default scope RequestScoped.
> CDI bean with StereoType is not injectable in implicit bean archive
> -------------------------------------------------------------------
>
> Key: WFLY-3774
> URL: https://issues.jboss.org/browse/WFLY-3774
> Project: WildFly
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: CDI / Weld
> Affects Versions: 8.1.0.Final
> Reporter: Takayoshi Kimura
> Assignee: Stuart Douglas
> Attachments: stereotype.zip
>
>
> CDI 1.2 defines bean defining annotations and with beans with these annotations should be injectable. However a bean with StereoType, one of bean defining annotations, is not injectable within implicit bean archive on WildFly.
> Attached a simple war project to reproduce this problem. This works on GlassFish 4 but doesn't work on WildFly 8.1.0 nor WildFly 9 master at this time. Making this an explicit bean archive by adding empty beans.xml (or set bean-discovery-mode=all) fixes the problem, the container recognizes the CDI bean correctly.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 10 months
[JBoss JIRA] (WFLY-3774) CDI bean with StereoType is not injectable in implicit bean archive
by Takayoshi Kimura (JIRA)
[ https://issues.jboss.org/browse/WFLY-3774?page=com.atlassian.jira.plugin.... ]
Takayoshi Kimura updated WFLY-3774:
-----------------------------------
Attachment: stereotype.zip
> CDI bean with StereoType is not injectable in implicit bean archive
> -------------------------------------------------------------------
>
> Key: WFLY-3774
> URL: https://issues.jboss.org/browse/WFLY-3774
> Project: WildFly
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: CDI / Weld
> Affects Versions: 8.1.0.Final
> Reporter: Takayoshi Kimura
> Assignee: Stuart Douglas
> Attachments: stereotype.zip
>
>
> CDI 1.2 defines bean defining annotations and with beans with these annotations should be injectable. However a bean with StereoType, one of bean defining annotations, is not injectable within implicit bean archive on WildFly.
> Attached a simple war project to reproduce this problem. This works on GlassFish 4 but doesn't work on WildFly 8.1.0 nor WildFly 9 master at this time. Making this an explicit bean archive by adding empty beans.xml (or set bean-discovery-mode=all) fixes the problem, the container recognizes the CDI bean correctly.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 10 months
[JBoss JIRA] (WFLY-3774) CDI bean with StereoType is not injectable in implicit bean archive
by Takayoshi Kimura (JIRA)
Takayoshi Kimura created WFLY-3774:
--------------------------------------
Summary: CDI bean with StereoType is not injectable in implicit bean archive
Key: WFLY-3774
URL: https://issues.jboss.org/browse/WFLY-3774
Project: WildFly
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: CDI / Weld
Affects Versions: 8.1.0.Final
Reporter: Takayoshi Kimura
Assignee: Stuart Douglas
Attachments: stereotype.zip
CDI 1.2 defines bean defining annotations and with beans with these annotations should be injectable. However a bean with StereoType, one of bean defining annotations, is not injectable within implicit bean archive on WildFly.
Attached a simple war project to reproduce this problem. This works on GlassFish 4 but doesn't work on WildFly 8.1.0 nor WildFly 9 master at this time. Making this an explicit bean archive by adding empty beans.xml (or set bean-discovery-mode=all) fixes the problem, the container recognizes the CDI bean correctly.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 10 months
[JBoss JIRA] (WFLY-3773) Implement graceful shutdown for remote naming
by Stuart Douglas (JIRA)
Stuart Douglas created WFLY-3773:
------------------------------------
Summary: Implement graceful shutdown for remote naming
Key: WFLY-3773
URL: https://issues.jboss.org/browse/WFLY-3773
Project: WildFly
Issue Type: Sub-task
Security Level: Public (Everyone can see)
Components: Naming
Reporter: Stuart Douglas
Assignee: Stuart Douglas
When a container is suspended remote naming requests must be rejected.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 10 months
[JBoss JIRA] (WFLY-3771) Implement graceful shutdown for clustering
by Stuart Douglas (JIRA)
Stuart Douglas created WFLY-3771:
------------------------------------
Summary: Implement graceful shutdown for clustering
Key: WFLY-3771
URL: https://issues.jboss.org/browse/WFLY-3771
Project: WildFly
Issue Type: Sub-task
Security Level: Public (Everyone can see)
Components: Clustering
Reporter: Stuart Douglas
Assignee: Paul Ferraro
I am not sure exactly what needs to happen here, I think all that is required is for the node to leave the cluster before suspend starts.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 10 months