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:46:19 +0000 (18:46 -0400)
commit14ba880b03565b199d55671b3c6e476e2373d19e
tree7068acda35af400f08c492525f79ae37fbea5422
parenta9299d47744dac7a17940f93d478894e9da4788b
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.025613 seconds and 4 git commands to generate.