Skip to content

get_config fails if json data contains String.format specifiers #4

Description

@tuck182
get_config
java.util.MissingFormatArgumentException: Format specifier '2f'
at java.util.Formatter.format(Formatter.java:2487)
at java.util.Formatter.format(Formatter.java:2423)
at java.lang.String.format(String.java:2790)
at net.whistlingfish.harmony.shell.ShellCommand.println(ShellCommand.java:12)
at net.whistlingfish.harmony.shell.GetConfigCommand.execute(GetConfigCommand.java:8)
at net.whistlingfish.harmony.shell.ShellCommandWrapper.execute(ShellCommandWrapper.java:20)

The simple fix is to stop using String.format for that output or pass the json data in as an arg (should also review uses of the println method to make sure inputs are cleaned up).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions