Skip to content

Conversation

@geoand
Copy link
Contributor

@geoand geoand commented Apr 24, 2020

Fixes: #8819

@geoand geoand requested review from gsmet and iocanel April 24, 2020 12:22
@geoand geoand changed the title Ensure that an uppercase username doesn't break container image building Ensure that an uppercase username doesn't break container-image building Apr 24, 2020
if (group.isPresent()) {
String originalGroup = group.get();
if (originalGroup.equals(System.getProperty("user.name"))) {
return Optional.of(originalGroup.toLowerCase());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure why we lowercase only in this case? I mean it will fail if the group has some uppercase character, won't it?

Copy link
Contributor Author

@geoand geoand Apr 24, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My idea is that it's better to fail if the user explicitly sets a group that is invalid (the error message is very explicit and actionable). I am thinking that if we start changing user supplied configuration it could be a very slippery slope...
If however the user did not set anything and the username was used implicitly, then only in that implicit case should we intervene.

@gsmet gsmet merged commit e840569 into quarkusio:master Apr 24, 2020
@gsmet gsmet added this to the 1.5.0 milestone Apr 24, 2020
@geoand geoand deleted the #8819 branch April 24, 2020 16:43
@gsmet gsmet modified the milestones: 1.5.0, 1.4.2.Final Apr 30, 2020
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

Successfully merging this pull request may close these issues.

Uppercase quarkus.container-image.group causes docker error

2 participants