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

Add server-webapp module #4431

Merged
merged 1 commit into from
May 3, 2023
Merged

Add server-webapp module #4431

merged 1 commit into from
May 3, 2023

Conversation

edewata
Copy link
Contributor

@edewata edewata commented May 2, 2023

The PKIApplication class and the services in it are supposed to be deployed under /pki webapp only, but currently these classes are included in pki-server.jar so they are also distributed in all other webapps although they are not actually used there.

In Servlet 3.0 framework all application classes in the webapp will be initialized automatically, so the current packaging could become a problem.

To avoid the problem the files for /pki webapp need to be moved into a new server-webapp module, and the PKIApplication with the services in it need to be moved into pki-server-webapp.jar which will only be deployed under /pki webapp.

@edewata edewata requested review from fmarco76 and ckelleyRH May 2, 2023 22:40
The PKIApplication class and the services in it are supposed to
be deployed under /pki webapp only, but currently these classes
are included in pki-server.jar so they are also distributed in
all other webapps although they are not actually used there.

In Servlet 3.0 framework all application classes in the webapp
will be initialized automatically, so the current packaging
could become a problem.

To avoid the problem the files for /pki webapp need to be moved
into a new server-webapp module, and the PKIApplication with the
services in it need to be moved into pki-server-webapp.jar which
will only be deployed under /pki webapp.
@sonarcloud
Copy link

sonarcloud bot commented May 2, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Copy link
Contributor

@ckelleyRH ckelleyRH left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@fmarco76 fmarco76 left a comment

Choose a reason for hiding this comment

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

LGTM
I am wondering it the folder name could be the webapp name. It should be the case for other webapps. Isn't it? Btw, fell free to merge as it is.

@edewata
Copy link
Contributor Author

edewata commented May 3, 2023

@ckelleyRH @fmarco76 Thanks!

I was thinking we might eventually have <subsystem>-webapp modules too, and I just thought using pki as the module name would be confusing, so I'll merge it as is, but we can always reorganize again later.

@edewata edewata merged commit afd6365 into dogtagpki:master May 3, 2023
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.

None yet

3 participants