← Back to issue list

Missing inspectors for JARs (Maven)

View original Github issue

Metadata

Project
fetch-service
Number
#419
Type
issue
State
open
Author
Vyom-Yadav
Labels
Type: Bug Status: Triaged
Created
Updated
Closed

Current evaluation

Missing inspectors for JARs (Maven) causing artifact inspection failures; PR #180 merged a JAR inspector but mimetype application/java-archive remains missing from mimetypes.go

Suggested action: close stale

Reason: PR #180 (merged) added a Maven JAR inspector that resolves the core issue of unrecognized JAR files. The remaining concern about `application/java-archive` not being in `mimetypes.go` is a separate, lower-priority concern that should be tracked separately if still relevant. The issue has been inactive for 292 days.

Impact: 60 Quick Win: 36.0 Staleness: 75 Complexity: 40 Confidence: 70 Support Request: 10

Issue body

### Bug Description From: https://launchpad.net/~vyomydv/fs-output-test/+charm/fs-output-test/+build/39002 ```json { "artifact-metadata-version": "0.2", "request-inspection": { "default": { "opinion": "Unknown", "reason": "the request was not recognized by any format inspector" } }, "response-inspection": { "default": { "opinion": "Unknown", "reason": "the artifact file content was not recognized by any format inspector" } }, "result": "Rejected", "metadata": { "type": "application/jar", "sha1": "815818ad6ffcc8d320d8fbdf3d748c753cf83201", "sha256": "d895e3eedf4fa1b10de31a91be55a301bb307bf18ef325b3fa5db3f80ee92d1c", "size": 207763, "name": "", "version": "", "vendor": "", "description": "", "author": "", "license": "" }, "downloads": [ { "start-time": "2025-07-23T02:20:12.704653484Z", "end-time": "2025-07-23T02:20:12.966622581Z", "method": "GET", "url": "https://repo1.maven.org:443/maven2/org/junit/jupiter/junit-jupiter-api/5.9.3/junit-jupiter-api-5.9.3.jar", "address": "10.133.39.190:41820", "user-agent": "Apache-Maven/3.6.3 (Java 21.0.7; Linux 6.8.0-63-generic)", "request-header": { "Accept-Encoding": [ "gzip,deflate" ], "Cache-Control": [ "no-cache" ], "Cache-Store": [ "no-store" ], "Connection": [ "Keep-Alive" ], "Pragma": [ "no-cache" ], "User-Agent": [ "Apache-Maven/3.6.3 (Java 21.0.7; Linux 6.8.0-63-generic)" ] }, "status-code": 200, "status": "200 OK", "content-type": "application/java-archive", "response-header": { "Accept-Ranges": [ "bytes" ], "Age": [ "1852853" ], "Connection": [ "keep-alive" ], "Content-Length": [ "207763" ], "Content-Type": [ "application/java-archive" ], "Date": [ "Wed, 23 Jul 2025 02:20:12 GMT" ], "Etag": [ "\"13eb9bfb15588e85c1fb76587f8f5d1e\"" ], "Last-Modified": [ "Wed, 26 Apr 2023 06:27:56 GMT" ], "Via": [ "1.1 varnish, 1.1 varnish" ], "X-Cache": [ "HIT, HIT" ], "X-Cache-Hits": [ "36356, 0" ], "X-Checksum-Md5": [ "13eb9bfb15588e85c1fb76587f8f5d1e" ], "X-Checksum-Sha1": [ "815818ad6ffcc8d320d8fbdf3d748c753cf83201" ], "X-Served-By": [ "cache-iad-kjyo7100072-IAD, cache-man4153-MAN" ], "X-Timer": [ "S1753237213.851781,VS0,VE1" ] } } ] }, ``` No metadata and inspection failed for JARs. It downloads as a zip initially as far as I can see: ```json { "artifact-metadata-version": "0.2", "request-inspection": { "default": { "opinion": "Unknown", "reason": "the request was not recognized by any format inspector" } }, "response-inspection": { "default": { "opinion": "Unknown", "reason": "the artifact file content was not recognized by any format inspector" } }, "result": "Rejected", "metadata": { "type": "application/zip", "sha1": "5675fd96b29656504b86029551973d60fb41339b", "sha256": "24bcaa20ccbdc7c856ce0c0aea144566943403e2e9f27bd9779cda1d76823ef4", "size": 188671, "name": "", "version": "", "vendor": "", "description": "", "author": "", "license": "" }, "downloads": [ { "start-time": "2025-07-23T02:22:21.721388624Z", "end-time": "2025-07-23T02:22:21.846557117Z", "method": "GET", "url": "https://repo1.maven.org:443/maven2/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar", "address": "10.133.39.190:56812", "user-agent": "Apache-Maven/3.6.3 (Java 21.0.7; Linux 6.8.0-63-generic)", "request-header": { "Accept-Encoding": [ "gzip,deflate" ], "Cache-Control": [ "no-cache" ], "Cache-Store": [ "no-store" ], "Connection": [ "Keep-Alive" ], "Pragma": [ "no-cache" ], "User-Agent": [ "Apache-Maven/3.6.3 (Java 21.0.7; Linux 6.8.0-63-generic)" ] }, "status-code": 200, "status": "200 OK", "content-type": "application/java-archive", "response-header": { "Accept-Ranges": [ "bytes" ], "Age": [ "2544758" ], "Connection": [ "keep-alive" ], "Content-Length": [ "188671" ], "Content-Type": [ "application/java-archive" ], "Date": [ "Wed, 23 Jul 2025 02:22:21 GMT" ], "Etag": [ "\"0f18acf5fa857f9959675e14d901a7ce\"" ], "Last-Modified": [ "Tue, 22 Nov 2005 18:08:47 GMT" ], "Via": [ "1.1 varnish, 1.1 varnish" ], "X-Cache": [ "HIT, HIT" ], "X-Cache-Hits": [ "42002, 156" ], "X-Checksum-Md5": [ "0f18acf5fa857f9959675e14d901a7ce" ], "X-Checksum-Sha1": [ "5675fd96b29656504b86029551973d60fb41339b" ], "X-Served-By": [ "cache-iad-kjyo7100083-IAD, cache-lcy-egml8630069-LCY" ], "X-Timer": [ "S1753237342.805245,VS0,VE0" ] } } ] }, ``` Also there are other API requests to maven central that were not recognized by fetch service: ```json { "artifact-metadata-version": "0.2", "request-inspection": { "default": { "opinion": "Unknown", "reason": "the request was not recognized by any format inspector" } }, "response-inspection": { "default": { "opinion": "Unknown", "reason": "the artifact file content was not recognized by any forma } }, "result": "Rejected", "metadata": { "type": "text/plain; charset=utf-8", "sha1": "85c86f131f46c9e723540323e0c577f4fb5f52e6", "sha256": "120f104e4a84d7c0cc606ffc754e824feebd5e0cf7970532f53ca052a7c70 "size": 40, "name": "", "version": "", "vendor": "", "description": "", "author": "", "license": "" }, "downloads": [ { "start-time": "2025-07-23T05:33:23.658689391Z", "end-time": "2025-07-23T05:33:23.667535335Z", "method": "GET", "url": "https://repo1.maven.org:443/maven2/org/apache/maven/maven-mo "address": "10.133.32.70:60268", "user-agent": "Apache-Maven/3.6.3 (Java 21.0.7; Linux 6.8.0-63-gener "request-header": { "Accept-Encoding": [ "gzip,deflate" ], "Cache-Control": [ "no-cache" ], "Cache-Store": [ "no-store" ], "Connection": [ "Keep-Alive" ], "Pragma": [ "no-cache" ], "User-Agent": [ "Apache-Maven/3.6.3 (Java 21.0.7; Linux 6.8.0-63-generic)" ] }, "status-code": 200, "status": "200 OK", "content-type": "text/plain", "response-header": { "Accept-Ranges": [ "bytes" ], "Age": [ "746270" ], "Connection": [ "keep-alive" ], "Content-Length": [ "40" ], "Content-Type": [ "text/plain" ], "Date": [ "Wed, 23 Jul 2025 05:33:23 GMT" ], "Etag": [ "\"f9b9b5b3fe1c179bc7029efa4379703c\"" ], "Last-Modified": [ "Fri, 26 Jun 2009 13:00:46 GMT" ], "Via": [ "1.1 varnish, 1.1 varnish" ], "X-Cache": [ "HIT, HIT" ], "X-Cache-Hits": [ "3240, 1" ], "X-Checksum-Md5": [ "f9b9b5b3fe1c179bc7029efa4379703c" ], "X-Checksum-Sha1": [ "85c86f131f46c9e723540323e0c577f4fb5f52e6" ], "X-Served-By": [ "cache-iad-kjyo7100078-IAD, cache-lcy-egml8630088-LCY" ], "X-Timer": [ "S1753248804.663513,VS0,VE1" ] } } ] }, ``` ⚠️ Also for existing maven inspector I don't see their mimetype in `mimetypes.go` ### To Reproduce https://launchpad.net/~vyomydv/fs-output-test/+charm/fs-output-test/+build/39002 ### Relevant log output ```shell N/A ```

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b
Impact: 60
Quick Win: 36.0
Staleness: 75
Complexity: 40
Confidence: 70
Support Request: 10
close stale Missing inspectors for JARs (Maven) causing artifact inspection failures; PR #180 merged a JAR inspector but mimetype application/java-archive remains missing from mimetypes.go

Update history

Date Change
created

Related work

  • Likely Fixed By: fetch-service#180 (confidence 85%)

    PR #180 merged a Maven JAR inspector that reads metadata from pom.xml files, directly addressing the reported inspection failures for JAR artifacts.

Related issues

Issue Project State Summary Similarity
#180 feat: add inspector for Jar files downloaded by Maven fetch-service merged Merged a Maven JAR file inspector that reads metadata from pom.xml files to supplement limited JAR manifests. Approved by two reviewers, passed CI, and resolved issue #169 with 371 lines added across six files.
72%