Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4d13fac9f1 | |||
| 42209d235d |
@@ -1,5 +1,12 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2025-11-21 - 1.3.1 - fix(maven)
|
||||||
|
Pass request path to Maven checksum handler so checksum files are resolved correctly
|
||||||
|
|
||||||
|
- Call handleChecksumRequest with the full request path from MavenRegistry.handleRequest
|
||||||
|
- Allows getChecksum to extract the checksum filename from the URL and fetch the correct checksum file from storage
|
||||||
|
- Fixes 404s when requesting artifact checksum files (md5, sha1, sha256, sha512)
|
||||||
|
|
||||||
## 2025-11-21 - 1.3.0 - feat(core)
|
## 2025-11-21 - 1.3.0 - feat(core)
|
||||||
Add Cargo and Composer registries with storage, auth and helpers
|
Add Cargo and Composer registries with storage, auth and helpers
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@push.rocks/smartregistry",
|
"name": "@push.rocks/smartregistry",
|
||||||
"version": "1.3.0",
|
"version": "1.3.1",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "a registry for npm modules and oci images",
|
"description": "a registry for npm modules and oci images",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
|
|||||||
@@ -30,6 +30,14 @@ tap.test('Maven: should create registry instance', async () => {
|
|||||||
|
|
||||||
expect(registry).toBeInstanceOf(SmartRegistry);
|
expect(registry).toBeInstanceOf(SmartRegistry);
|
||||||
expect(mavenToken).toBeTypeOf('string');
|
expect(mavenToken).toBeTypeOf('string');
|
||||||
|
|
||||||
|
// Clean up any existing metadata from previous test runs
|
||||||
|
const storage = registry.getStorage();
|
||||||
|
try {
|
||||||
|
await storage.deleteMavenMetadata(testGroupId, testArtifactId);
|
||||||
|
} catch (error) {
|
||||||
|
// Ignore error if metadata doesn't exist
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
tap.test('Maven: should upload POM file (PUT /{groupPath}/{artifactId}/{version}/*.pom)', async () => {
|
tap.test('Maven: should upload POM file (PUT /{groupPath}/{artifactId}/{version}/*.pom)', async () => {
|
||||||
|
|||||||
@@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@push.rocks/smartregistry',
|
name: '@push.rocks/smartregistry',
|
||||||
version: '1.3.0',
|
version: '1.3.1',
|
||||||
description: 'a registry for npm modules and oci images'
|
description: 'a registry for npm modules and oci images'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ export class MavenRegistry extends BaseRegistry {
|
|||||||
// Check if it's a checksum file
|
// Check if it's a checksum file
|
||||||
if (coordinate.extension === 'md5' || coordinate.extension === 'sha1' ||
|
if (coordinate.extension === 'md5' || coordinate.extension === 'sha1' ||
|
||||||
coordinate.extension === 'sha256' || coordinate.extension === 'sha512') {
|
coordinate.extension === 'sha256' || coordinate.extension === 'sha512') {
|
||||||
return this.handleChecksumRequest(context.method, coordinate, token);
|
return this.handleChecksumRequest(context.method, coordinate, token, path);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handle artifact requests (JAR, POM, WAR, etc.)
|
// Handle artifact requests (JAR, POM, WAR, etc.)
|
||||||
|
|||||||
Reference in New Issue
Block a user