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

Custom context path configuation option #475

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

litvinovg
Copy link
Contributor

@litvinovg litvinovg commented Sep 27, 2024

VIVO GitHub issue: (please link to issue)
VIVO PR

What does this pull request do?

These new configuration options allow you to create correct links when the application is behind a proxy server, thus minimizing the required redirects.

What's new?

Added configuration option to modify context path in case when the application is behind proxy.
Replaced calls for context path to utility methods that allow overriding default context path.

How should this be tested?

Default behavior when configuration property is not set should be the same.
To test application behind proxy one would need to configure webserver and tomcat in proxy mode like described in workaround of linked issue.

  • General navigation between application pages
  • Authorization
  • Edit this individual page should work the same

#Additional notes

  • Duplicate tests were removed.
  • This change require documentation to be updated.

Interested parties

@VIVO-project/vivo-committers

Reviewers' expertise

Candidates for reviewing this PR should have some of the following expertises:

  1. Java

Reviewers' report template

General comment

A reviewer should provide here comments and suggestions for requested changes if any.

Testing

A reviewer should briefly describe here how it was tested

Code reviewing

A reviewer should briefly describe here which part was code reviewed

Copy link
Contributor

@chenejac chenejac left a comment

Choose a reason for hiding this comment

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

@litvinovg I have left two tiny comments. Please, also invest whether edu/cornell/mannlib/vitro/webapp/filters/PageRoutingFilter.java should be updated as well.

@litvinovg
Copy link
Contributor Author

litvinovg commented Oct 28, 2024

@litvinovg I have left two tiny comments. Please, also invest whether edu/cornell/mannlib/vitro/webapp/filters/PageRoutingFilter.java should be updated as well.

I think PageRoutingFilter shouldn't be changed.

@litvinovg litvinovg requested a review from chenejac October 28, 2024 14:08
Copy link
Contributor

@chenejac chenejac left a comment

Choose a reason for hiding this comment

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

@litvinovg thanks. Well done.

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.

If browser context path has changed edit this individual page doesn't work
2 participants