re3gistry icon indicating copy to clipboard operation
re3gistry copied to clipboard

configuration parameter `web.application_root_url` neglected on some forwards (HTTP 302)

Open jane-heller-bkg opened this issue 1 year ago • 5 comments

The re3gistry webapplication does not seem to follow the web.application_root_url configuration value correctly all of the time.

My setup is as follows:

I have a frontend proxy delivering the application to say http**s**://{HOSTNAME}/codelist. The backend webserver is running a tomcat which is deploying:

  • re3gistry2
  • re3gistry2soap

both to their according subfolders on local http.

re3gistry2/WEB-INF/classes/configurations_files/configuration.properties contains:

web.application_root_url=https://{HOSTNAME}/codelist

If I open the webservice and login, I receive a HTTP 302 to the following destination:

http://{HOSTNAME}/re3gistry2/admin

it should however contain

https://{HOSTNAME}/re3gistry2/admin

It seems to me, that the webapplication is costructing the path to be returned in a 302 on its own, by concatenating http the http host coming from the http connections variable and the folder on which the webapp is delivered locally.

It should forward to URLs based on web.application_root_url in any case.

jane-heller-bkg avatar Feb 23 '24 15:02 jane-heller-bkg

Dear @jane-heller-bkg, we will take a look and let you know any progress made on this topic.

Best regards, Unai.

unaibrrgn avatar Feb 26 '24 12:02 unaibrrgn

We have used the branch bkg/database-migration when stumbling upon this error ( https://github.com/ec-jrc/re3gistry/pull/387 ). However it seems unlikely to me, that the changes there affect this issue.

jane-heller-bkg avatar Mar 20 '24 10:03 jane-heller-bkg

Dear @unaibrrgn,

I stumbled upon another case where a URI generation is not done correctly.

If I issue a clarification via https://<HOST>/re3gistry2/content?itemUuid=<UUID> there are links in the row status pointing to different status types. They also do not follow the configuration parameters but use the local hostname of the delivering webserver without any subpath (that is different from the behaviour in the forwards).

Should I issue another ticket for that or should we summarize all issues w.rt. to URI generation here?

Best

Jane

jane-heller-bkg avatar Apr 22 '24 11:04 jane-heller-bkg

Dear @jane-heller-bkg,

We suggest you to open a new ticket with the issue you are currently experiencing. Any additional information would be appreciated.

Best regards,

Irati.

iratigarzon avatar May 09 '24 10:05 iratigarzon

Hello @iratigarzon ,

I opened another issue w.r.t. here: https://github.com/ec-jrc/re3gistry/issues/438

Best

Jane

jane-heller-bkg avatar Jun 19 '24 12:06 jane-heller-bkg