Unify and simplify escaping of slashes

Description

Currently, escaping of slashes are done differently for different circumstances:

  • GET-Requests : Here, a rather strange (and complicated) escaping is used as described in the reference manual (see also attachment)

  • Pathes in POST Requests: In POST request, when a 'path' is given which contains slashes, ecaping is done with a backslash (), however backslashes themselves cannot be escaped

This should be unified to a common behaviour:

  • A slash (/) gets escaped with a backslash (\) ---> "/" as part of a MBean Name, attribute, path ... becomes "\/"

  • A backslash gets escaped with a bascklash --> "\" becomes "\\"

Most of the current escaping code can be found in PathUtil where it should be refactored.

Backwards compatibility must not be kept. The Java and Javascript client must be updated accordingly.

Environment

None

Assignee

Roland Huss

Reporter

Roland Huss

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure