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

Don't blow up on missing path transform configuration #14339

Conversation

metlos
Copy link
Contributor

@metlos metlos commented Aug 27, 2019

What does this PR do?

$TITLE

What issues does this PR fix or reference?

#14336

Don't blow up on missing path transform configuration.

Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
@che-bot che-bot added the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Aug 27, 2019
@che-bot
Copy link
Contributor

che-bot commented Aug 27, 2019

E2E Happy path tests of Eclipse Che Single User on K8S (minikube v1.1.1) has been successful:

  • build details
  • "che-server" docker image: maxura/che-server:14339

@che-bot
Copy link
Contributor

che-bot commented Aug 27, 2019

E2E tests of Eclipse Che Multiuser on OCP has been successful:

@@ -52,6 +52,9 @@ public IngressPathTransformInverter(
* @return the regex that essentially reverts the effect of the path transformation
*/
private static Pattern extractPathFromFmt(String pathTransformFmt) {
if (pathTransformFmt == null) {
return Pattern.compile("^(.*)$");
Copy link
Contributor

Choose a reason for hiding this comment

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

What about using PATH_TRANSFORM_PATH_CATCH here? It's used in the null check in ExternalServerExposer.

Copy link
Contributor Author

@metlos metlos Aug 27, 2019

Choose a reason for hiding this comment

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

This is basically a short hand for what the result would be if PATH_TRANSFORM_PATH_CATCH was the input to this method. I didn't want to do the processing when the result is directly known...

@metlos metlos merged commit a291807 into eclipse-che:master Aug 27, 2019
@che-bot che-bot removed the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Aug 27, 2019
@che-bot che-bot added this to the 7.1.0 milestone Aug 27, 2019
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.

4 participants