Skip to content

Conversation

@doctori
Copy link
Contributor

@doctori doctori commented Feb 3, 2019

What does this PR do?

Fixes #4427 ,
When the path is empty, the basepath does not contains a slash.
The slash must be added in the redirect matching regex.

Motivation

Given the RFC 2616 sec. 3.2.2 :

the abs_path is not present in the URL, it MUST be given as "/" when
used as a Request-URI for a resource

Which mean that the current matching regex for the redirect rule of the "appRoot" annotation of an ingress without given path will not work.

More

  • Added/updated tests
  • Added/updated documentation - not needed, intended behaviour

Additional Notes

This is my First PR, sorry If I missed something.

@doctori doctori requested a review from a team as a code owner February 3, 2019 20:26
@traefiker traefiker added this to the 1.7 milestone Feb 3, 2019
@ldez ldez changed the title fixing #4427 app-root on non-explicit path include "/" in the redirect Feb 3, 2019
Copy link
Contributor

@dtomcej dtomcej left a comment

Choose a reason for hiding this comment

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

LGTM
:shipit:

Copy link
Contributor

@ldez ldez left a comment

Choose a reason for hiding this comment

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

LGTM

@ldez ldez added the kind/bug/fix a bug fix label Feb 5, 2019
Copy link
Member

@mmatur mmatur left a comment

Choose a reason for hiding this comment

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

LGTM

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants