Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tags can only be one word #118

Open
pennal opened this issue Feb 12, 2021 · 1 comment
Open

Tags can only be one word #118

pennal opened this issue Feb 12, 2021 · 1 comment

Comments

@pennal
Copy link

pennal commented Feb 12, 2021

If one of the tags has a space, or any other character other than letters and numbers, the tags are not applied AT ALL to the droplet on creation.

When the tags are just one word then all the tags are successfully applied. If even one of them contains a space then ALL of the tags are not applied.

I tried encoding the values using URLEncoder.encode(tag, StandardCharsets.UTF_8) but it does not help.

Very minimal example:

// setup
Client client = new DigitalOceanClient("XXXXXX");
Region region = // slug=fra1
Size size = // slug=s-1vcpu-1gb
Image image = // slug=docker-18-04

// Droplet creation
Droplet droplet = new Droplet();
droplet.setName("test-tags");
droplet.setRegion(region);
droplet.setSize(slug);
droplet.setImage(image);

// Works
List<String> tags = List.of("tag1", "tag2");

// Does not work
List<String> tags = List.of("tag 1", "tag 2");


droplet.setTags(tags);
client.createDroplet(droplet);
@pennal
Copy link
Author

pennal commented Mar 2, 2021

Hi, is there any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant