Skip to content

Commit 9d4268c

Browse files
Fix wrong query parameter name for blob. (#1498)
Part of #1483. Forgot to fix the query name. I think I considered making the parameter the same (just 'id') across both blob and clob, but changed my mind and forgot to adjust blob. --------- Co-authored-by: Mike Neilson <michael.a.neilson@usace.army.mil>
1 parent 56afa3e commit 9d4268c

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ jobs:
5050
api_image: ${{steps.set_image.outputs.api_image}}
5151
migration_image: ${{steps.migration-publish.outputs.image}}
5252
steps:
53+
- name: Clean up disk space, so we don't run out.
54+
if: matrix.platform == 'ubuntu-latest'
55+
run: |
56+
sudo rm -rf /usr/share/dotnet
57+
sudo rm -rf /usr/local/lib/android
58+
sudo rm -rf /opt/ghc
5359
- name: checkout code
5460
uses: actions/checkout@v5.0.0
5561
with:

cwms-data-api/src/main/java/cwms/cda/api/BlobController.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public void getAll(@NotNull Context ctx) {
151151
public void getOne(@NotNull Context ctx, @NotNull String blobId) {
152152

153153
try (final Timer.Context ignored = markAndTime(GET_ONE)) {
154-
String idQueryParam = ctx.queryParam(CLOB_ID);
154+
String idQueryParam = ctx.queryParam(BLOB_ID);
155155
if (idQueryParam != null) {
156156
blobId = idQueryParam;
157157
}
@@ -235,7 +235,7 @@ public void create(@NotNull Context ctx) {
235235
@Override
236236
public void update(@NotNull Context ctx, @NotNull String blobId) {
237237
try (final Timer.Context ignored = markAndTime(UPDATE)) {
238-
String idQueryParam = ctx.queryParam(CLOB_ID);
238+
String idQueryParam = ctx.queryParam(BLOB_ID);
239239
if (idQueryParam != null) {
240240
blobId = idQueryParam;
241241
}
@@ -287,7 +287,7 @@ public void update(@NotNull Context ctx, @NotNull String blobId) {
287287
@Override
288288
public void delete(@NotNull Context ctx, @NotNull String blobId) {
289289
try (Timer.Context ignored = markAndTime(DELETE)) {
290-
String idQueryParam = ctx.queryParam(CLOB_ID);
290+
String idQueryParam = ctx.queryParam(BLOB_ID);
291291
if (idQueryParam != null) {
292292
blobId = idQueryParam;
293293
}

0 commit comments

Comments
 (0)