Skip to content
This repository was archived by the owner on Aug 13, 2026. It is now read-only.
This repository was archived by the owner on Aug 13, 2026. It is now read-only.

Su invocation is not escaped properly for TS work [JIRA: TOOLS-167] #192

Description

@macintux

When using TS packages, riak-admin is crippled for defining bucket types because of the need to use su to the riak user.

As seen below from sh -x, the JSON is not wrapped properly, and the shell complains.

exec su - riak -c '/usr/sbin/riak-admin bucket-type create testone \{\"props\":\{\"table_def\":\"CREATE TABLE testone (field1 varchar not null, field2 varchar not null, time timestamp not null, PRIMARY KEY((field1, field2, quantum(time, 15, s)), field1, field2, time))\"\}\}'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions