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
Fix for bug 264: API Gateway is bypassed when server return 302 #276
Conversation
Hello Cindy, I will review it as soon as possible. Do you think you could meantime create also integration test for it? |
Codecov Report
@@ Coverage Diff @@
## master #276 +/- ##
============================================
- Coverage 70.2% 69.42% -0.79%
Complexity 12 12
============================================
Files 231 235 +4
Lines 4612 4500 -112
Branches 588 568 -20
============================================
- Hits 3238 3124 -114
Misses 1223 1223
- Partials 151 153 +2
Continue to review full report at Codecov.
|
Hi @JirkaAichler , sure, I will add some integration test |
I just modified the PR to add integration test. I added a new controller: PageRedirectionController to discoverable-client for the integration test. It accepts POST request, gets a url from the POST data, then set the url to response's Location header, and return status code 307 |
Hi Cindy, |
Hello @CindyZX , as @ilkinabdullayev said we have applied some changes which can be helpful for you and which is now in master. One of those changes is also involving the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @CindyZX, for applying my suggestions. This is last one.
gateway-service/src/main/java/com/ca/mfaas/gateway/filters/post/PageRedirectionFilter.java
Outdated
Show resolved
Hide resolved
Signed-off-by: zhuxun <zhuxun@cn.ibm.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work Cindy!
Just one last idea. Please put the max size constant into the original class (filter). ApimlConstants should be used for constants which are reusable by other classes.
I would also increase it to 1000. But honestly, I don't know what is the ideal size :-)
Thanks!
Signed-off-by: zhuxun <zhuxun@cn.ibm.com>
@JirkaAichler Thanks Jirka, I've put max entry constant back to the filter class and set it to 1000 |
Fixed checkstyle
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work. Thank you Cindy!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, Cindy!
* Add support for page redirection to Gateway
No description provided.