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

Should ICAT quit if it doesn't recognise the application server? #257

Open
stuartpullinger opened this issue Oct 1, 2021 · 1 comment
Open

Comments

@stuartpullinger
Copy link
Contributor

Because the code to recognise the application server (container type) fails when run in Payara's provided docker image (see icatproject/icat.utils#15), icat.server stopped rather than continue in an unknown application server. Is this really the behaviour we want? Given that there a many different application servers, should it really require a change to the code to try icat.server on a previously unknown application server? Perhaps this line should be changed to just log a WARNING that the current application server is not recognised and, therefore, may be unstable?

What does @ajkyffin think?

@ajkyffin
Copy link
Contributor

ajkyffin commented Oct 1, 2021

I think the only place that the containerType gets used is the /properties REST endpoint:

.add("authenticators", authenticatorArrayBuilder).add("containerType", containerType.name());

so there is no need to quit if it is unknown. I don't think a warning is necessary either.

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

No branches or pull requests

5 participants