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

Upgrade to jakarta.servlet namespace #402

Merged
merged 2 commits into from
Feb 28, 2023
Merged

Upgrade to jakarta.servlet namespace #402

merged 2 commits into from
Feb 28, 2023

Conversation

graemerocher
Copy link
Contributor

@graemerocher graemerocher commented Feb 28, 2023

Upgrade to the jakarta.servlet namespace and upgrade all Servlet modules

@github-actions
Copy link
Contributor

❌ Java CI failed: https://ge.micronaut.io/s/oehz5fadvrw44

@github-actions
Copy link
Contributor

❌ GraalVM CE CI 17 latest failed: https://ge.micronaut.io/s/w5it655amdgre

@graemerocher graemerocher marked this pull request as ready for review February 28, 2023 15:36
transformation = MapFormat.MapTransformation.FLAT,
keyFormat = StringConvention.RAW) Map<String, String> attributes) {
if (CollectionUtils.isNotEmpty(attributes)) {
attributes.forEach(tomcatConnector::setAttribute);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this no longer exists on Tomcat

try {
if (LOG.isDebugEnabled()) {
LOG.debug("Request [{} - {}] completed successfully", req.getMethodName(), req.getUri());
LOG.debug("Request [{} - {}] completed successfully", methodName, uri);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

tomcat now errors if the request is accessed after completion, this fixes that

@@ -79,7 +81,7 @@
* @since 1.0.0
*/
@Internal
public class DefaultServletHttpRequest<B> implements
public class DefaultServletHttpRequest<B> extends MutableConvertibleValuesMap<Object> implements
Copy link
Contributor Author

Choose a reason for hiding this comment

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

could no longer user servlet request attributes because they can't be accessed after the request completes

Copy link
Contributor

@timyates timyates left a comment

Choose a reason for hiding this comment

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

Not sure why SonarQube failed 🤔

@graemerocher graemerocher merged commit d3067d9 into master Feb 28, 2023
@graemerocher graemerocher deleted the jakarta-upgrade branch February 28, 2023 16:19
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.

3 participants