[JBoss JIRA] (AS7-4762) Remote naming fails to work with IPv6 provider URL
by jaikiran pai (JIRA)
jaikiran pai created AS7-4762:
---------------------------------
Summary: Remote naming fails to work with IPv6 provider URL
Key: AS7-4762
URL: https://issues.jboss.org/browse/AS7-4762
Project: Application Server 7
Issue Type: Bug
Components: Naming
Affects Versions: 7.1.2.Final (EAP)
Reporter: jaikiran pai
Assignee: John Bailey
Priority: Critical
Remote naming doesn't handle IPv6 addresses (like ::1) correctly which leads to connection creation failures for code like:
{code}
final Properties env = new Properties();
env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.remote.client.InitialContextFactory");
env.put(Context.PROVIDER_URL, "remote://::1:4447);
context = new InitialContext(env);
// Perform the JNDI lookups
context.lookup("java:jboss/exported/jms/queue/test);
{code}
This fails with:
{code}
Caused by: java.lang.IllegalArgumentException: destination address may not be null
at org.jboss.remoting3.remote.RemoteConnectionProvider.connect(RemoteConnectionProvider.java:98)
at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:296)
at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:251)
at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:349)
at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:333)
at org.jboss.naming.remote.client.EndpointCache$EndpointWrapper.connect(EndpointCache.java:105)
at org.jboss.naming.remote.client.NamingStoreCache.getRemoteNamingStore(NamingStoreCache.java:55)
at org.jboss.naming.remote.client.InitialContextFactory.getOrCreateCachedNamingStore(InitialContextFactory.java:166)
at org.jboss.naming.remote.client.InitialContextFactory.getOrCreateNamingStore(InitialContextFactory.java:139)
at org.jboss.naming.remote.client.InitialContextFactory.getInitialContext(InitialContextFactory.java:104)
... 10 more
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 12 months
[JBoss JIRA] (AS7-4509) CLONE - Server start without any problem or message even specification of IP address(-s) is ambiguous
by Pavel Janousek (JIRA)
[ https://issues.jboss.org/browse/AS7-4509?page=com.atlassian.jira.plugin.s... ]
Pavel Janousek closed AS7-4509.
-------------------------------
This is exactly what I was looking for. Works fine.
> CLONE - Server start without any problem or message even specification of IP address(-s) is ambiguous
> -----------------------------------------------------------------------------------------------------
>
> Key: AS7-4509
> URL: https://issues.jboss.org/browse/AS7-4509
> Project: Application Server 7
> Issue Type: Bug
> Components: Domain Management
> Affects Versions: 7.1.1.Final
> Reporter: Pavel Janousek
> Assignee: Brian Stansberry
> Labels: eap6_ipv6
> Fix For: 7.1.2.Final (EAP)
>
>
> In IPv6 world it is possible if two or more network interfaces has the same IPv6 address. It is legally and true especially in Link-local address scope.
> So if we configure 2 or more network interfaces with a manually defined IPv6 address (link-local prefix fe80::/10 is the best) and try to start-up EAP and do this like:{code}./standalone.sh -Djava.net.preferIPv4Stack=false -b=fe80::200:ff:fe00:5 -bmanagement=fe80::200:ff:fe00:5 -c standalone-full.xml{code}there isn't *any* warning message reported, nor any notice that this specification is ambiguous.
> I prefer in a such case to reject this specification as ambiguous (especially for the case - there is a risk of accidentally open EAP instance to the world), refuse start with error message and immediately exit. Although this situation has its roots in administrator mistake, it can became very hard risk of customer's data when it will be overseen for awhile. (*)
> (*) some case-studies report blind clear MS Windows station is attacked up to 10 minutes from it boot when is directly connected to unsecure Internet network without any firewall etc... my own personal experience is at least the same... - yes, it is dangerous to work in a such environment and situation on a Internet directly connected server host, but an admins really works like that...
> Anyway - the missed part of specification needed for correct set-up in this case is *zone id* identifier. When it is supplied, star-up is correct.
> Although this is really +edge case+ of using EAP and its configuration, it can accidentally expose customer's sensitive data so we should take it very carefully.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 12 months
[JBoss JIRA] (JGRP-1458) SEQUENCER delivers the same message more than once
by David Hotham (JIRA)
David Hotham created JGRP-1458:
----------------------------------
Summary: SEQUENCER delivers the same message more than once
Key: JGRP-1458
URL: https://issues.jboss.org/browse/JGRP-1458
Project: JGroups
Issue Type: Bug
Affects Versions: 3.0.9
Reporter: David Hotham
Assignee: Bela Ban
This issue is certainly exposed by my running with a retransmit task in SEQUENCER (per JGRP-1449). However, I think that it could be hit anyway at a change of view; and I'm sure it's a bug!
In SeqnoTable$Entry.add(seqno), the final branch "seqno > next_to_receive" always returns true. But it should return the return code from seqnos.add(seqno) (ie, false if the seqno has already been added).
The consequence is that Sequencer's received_table.add() returns true even for a message that has already been delivered, so the message is delivered a second time.
Looking at this code raised another question, for which I should maybe raise a separate ticket. Let me know if you'd prefer me to do so.
I think that when SeqnoTable.add() creates a new Entry, it always creates Entry(0) (because SeqnoTable.next_to_receive is always 0). Is that true? and if so, is it correct?
A might join a group long after some other member B has already broadcast the messages with sequence numbers 0,1,2, say. Then since A will never receive those messages, isn't it going to end up with an Entry for B in which the Set of seqnos just grows indefinitely?
It looks to me as though maybe when it creates a new entry it should do so with Entry(seqno) rather than Entry(next_to_receive). Or have I misunderstood something?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 12 months
[JBoss JIRA] (AS7-2325) Get rid of reflection configuring the ProtocolHandler in WebConnectorService
by Kabir Khan (Created) (JIRA)
Get rid of reflection configuring the ProtocolHandler in WebConnectorService
----------------------------------------------------------------------------
Key: AS7-2325
URL: https://issues.jboss.org/browse/AS7-2325
Project: Application Server 7
Issue Type: Feature Request
Components: Web
Reporter: Kabir Khan
Assignee: Remy Maucherat
Fix For: 7.1.0.CR1
A lot of the set methods do
{code}
if (ssl.hasDefined(Constants.PASSWORD)) {
Method m = connector.getProtocolHandler().getClass().getMethod("setSSLPassword", String.class);
m.invoke(connector.getProtocolHandler(), ssl.get(Constants.PASSWORD).asString());
}
if (ssl.hasDefined(Constants.CERTIFICATE_KEY_FILE)) {
Method m = connector.getProtocolHandler().getClass().getMethod("setSSLCertificateKeyFile", String.class);
m.invoke(connector.getProtocolHandler(), ssl.get(Constants.CERTIFICATE_KEY_FILE).asString());
}
//etc.
{code}
The ProtocolHandler inteface does not expose them, so maybe they should go there or another common interface for configuring PH's
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 12 months