LucaDai opened a new pull request, #2368: URL: https://github.com/apache/tika/pull/2368
## Description **Issue: [[TIKA-4526](https://issues.apache.org/jira/browse/TIKA-4526)] **Type of change** * [ ] New feature * [ ] Bug fix for existing feature * [x] Code quality improvement * [x] Addition or Improvement of tests * [ ] Addition/Improvement of documentation ## Summary The failure was caused by ambiguous method mappings in TranslateResource, where both the `translate` and `autoTranslate` methods were annotated with both @PUT and @POST at the same time. A similar issue was fixed in the previous merged PR, which included a detailed **explanation** and how to **reproduce**: https://github.com/apache/tika/pull/2360 ## Related Tests ``` org.apache.tika.server.core.TranslateResourceTest.testTranslateFull org.apache.tika.server.core.TranslateResourceTest.testTranslateAutoLang ``` ## Verification * ✅ `mvn test -pl tika-server/tika-server-core` passes. * ✅ Multiple NonDex runs (`-DnondexRuns=100`) pass with no flakes. * ✅ Checkstyle passes. * ✅ No behavior change to REST paths or media types; only internal method split and safer input handling. Please let me know if anything needs to change regarding the code style. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
