Skip to content

Commit 8650f44

Browse files
committed
Fix download ttl property name
1 parent 26f4316 commit 8650f44

File tree

5 files changed

+92
-92
lines changed

5 files changed

+92
-92
lines changed

app/src/main/java/io/apicurio/registry/rest/v2/AdminResourceImpl.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public class AdminResourceImpl implements AdminResource {
8686
HttpServletRequest request;
8787

8888
@Dynamic(label = "Download link expiry", description = "The number of seconds that a generated link to a .zip download file is active before expiring.")
89-
@ConfigProperty(name = "registry.download.href.ttl", defaultValue = "30")
89+
@ConfigProperty(name = "apicurio.download.href.ttl", defaultValue = "30")
9090
@Info(category = "download", description = "Download link expiry", availableSince = "2.1.2.Final")
9191
Supplier<Long> downloadHrefTtl;
9292

app/src/main/java/io/apicurio/registry/rest/v3/AdminResourceImpl.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public class AdminResourceImpl implements AdminResource {
105105
HttpServletRequest request;
106106

107107
@Dynamic(label = "Download link expiry", description = "The number of seconds that a generated link to a .zip download file is active before expiring.")
108-
@ConfigProperty(name = "registry.download.href.ttl", defaultValue = "30")
108+
@ConfigProperty(name = "apicurio.download.href.ttl", defaultValue = "30")
109109
@Info(category = "download", description = "Download link expiry", availableSince = "2.1.2.Final")
110110
Supplier<Long> downloadHrefTtl;
111111

app/src/test/java/io/apicurio/registry/rbac/AdminResourceTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,7 @@ public void testConfigProperties() throws Exception {
926926
given()
927927
.when()
928928
.contentType(CT_JSON).body(update)
929-
.pathParam("propertyName", "registry.download.href.ttl")
929+
.pathParam("propertyName", "apicurio.download.href.ttl")
930930
.put("/registry/v3/admin/config/properties/{propertyName}")
931931
.then()
932932
.statusCode(400);

app/src/test/java/io/apicurio/registry/rbac/RegistryClientTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1636,7 +1636,7 @@ public void testConfigProperties() throws Exception {
16361636
// Try to set a Long property to "foobar" (should be invalid type)
16371637
var exception2 = Assertions.assertThrows(ApiException.class, () -> {
16381638
updateProp.setValue("foobar");
1639-
clientV3.admin().config().properties().byPropertyName("registry.download.href.ttl").put(updateProp);
1639+
clientV3.admin().config().properties().byPropertyName("apicurio.download.href.ttl").put(updateProp);
16401640
});
16411641
// InvalidPropertyValueException
16421642
Assertions.assertEquals(400, exception2.getResponseStatusCode());

0 commit comments

Comments
 (0)