Skip to content

Frameworks Cause Application Crashes when Space Name Includes Whitespace #712

@owenfarrell

Description

@owenfarrell

The AppDynamics, Contrast Security, and SkyWalking agents are 3 frameworks that inject the space name in to JAVA_OPTS.

In the event that a space name includes whitespace (My Dev Space), the result is unintentional whitespace getting added to the command line. The additional whitespace means Java is unable to identify the appropriate argument for the main class.

A quick fix here would be to update the default configuration attributes for the above frameworks, ensuring that the end result is escaped in shell-safe manner.

A more robust fix would entail sanitizing the space name any time it is used in an O/S level operation (e.g. JAVA_OPTS, file paths?)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions