Restrict Java context retriever names to a set of valid characters
authorAlexandre Montplaisir <alexmonthy@efficios.com>
Thu, 19 May 2016 21:55:02 +0000 (17:55 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 19 May 2016 22:44:32 +0000 (18:44 -0400)
commitcad6b749231be8c91fcfd3616934032b5dfd3614
tree6bada7ca57561d74fe7bc7101583b1cb7ca020f0
parent8c207906959b7f74165febd957ac9c7472d017cd
Restrict Java context retriever names to a set of valid characters

Since the context/retriever names end up as-is as part of the
metadata, only alphanumerical characters, periods "." and
underscores "_" should be accepted. The names must also not
start with a number.

Refuse registration of retriever names that do not respect these
conditions, so that the problem is reported right away to the
application.

Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust-java-agent/java/lttng-ust-agent-common/org/lttng/ust/agent/context/ContextInfoManager.java
This page took 0.025216 seconds and 4 git commands to generate.