admin@glassfish.java.net

server names

From: Tom Mueller <tom.mueller_at_oracle.com>
Date: Thu, 09 Dec 2010 10:45:50 -0600

  While going through the @Pattern annotations in the config beans
today, I noticed the following detail:

The server regex is:

"[\\p{L}\\p{N}_][\\p{L}\\p{N}\\-_\\.;]*"

while the regex for all of the names (except for apps) is:

"[\\p{L}\\p{N}_][\\p{L}\\p{N}\\-_\\./;#]*"

The difference between this is that "/" and "#" is not allowed in a
server name.

I expect that the "/" is disallowed because the server name is used as a
filename under the "nodes" directory. Is there a reason why "#" is
excluded?

Just checking to make sure this was intentional.

Thanks.
Tom