Skip to content

Java17 and modernize#86

Merged
afabiani merged 14 commits into
masterfrom
java17-and-modernize
Jun 23, 2026
Merged

Java17 and modernize#86
afabiani merged 14 commits into
masterfrom
java17-and-modernize

Conversation

@axl8713

@axl8713 axl8713 commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

These changes stem from the work made from georchestra in #82.

Migrate to Jakarta EE / Apache HttpClient 5 / Java 17, add Docker support

  • Migrate servlet API from javax.* to jakarta.* (Jakarta EE 10)
  • Upgrade Apache HttpClient 4 → 5; update all execute(request) calls to the response-handler overload
  • Target Java 17 (downgraded from Java 21); update CI accordingly
  • Bump all dependencies (commons-fileupload2, Jetty EE10, etc.)
  • Add Dockerfile and Main.java standalone entry point (from georchestra PR)
  • Code cleanup
  • Test code modernization

When this get merged, these changes will overseed the ones in #82, that then could be closed.

@axl8713 axl8713 marked this pull request as ready for review June 18, 2026 09:26
@tdipisa tdipisa assigned afabiani and unassigned axl8713 Jun 22, 2026
@tdipisa tdipisa modified the milestones: 1.6.0, 1.7.0 Jun 22, 2026
axl8713 and others added 3 commits June 23, 2026 11:59
HTTPProxy.executeProxyRequest:
- Read the Location header from the response instead of the outgoing
  request object (the request never carries it), and null-check the
  header before dereferencing it to avoid an NPE on 3xx responses
  lacking a Location header.
- Treat 307 (Temporary Redirect) and 308 (Permanent Redirect) as
  redirects in addition to 300-303.
- Resolve the status code once into a local instead of calling
  getStatusCode(response) repeatedly.

Tests:
- Update testRedirectGet to stub the response's Location header.
- Add testRedirectGet307 covering the newly handled 307 case.

CI: use the 'temurin' distribution in the publish job to match the
build job ('adopt' is a deprecated setup-java alias).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@afabiani afabiani merged commit 2afedd6 into master Jun 23, 2026
2 checks passed
@axl8713 axl8713 deleted the java17-and-modernize branch June 23, 2026 13:20
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.

Set JDK 17 as the minimum supported version Upgrade of project dependencies

4 participants