Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main/java/edu/harvard/iq/dataverse/api/Admin.java
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,8 @@

String content = settingsSvc.get(name);
return (content != null) ? ok(content) : notFound("Setting " + name + " not found.");
} catch (IllegalArgumentException iae) {
return error(Response.Status.BAD_REQUEST, iae.getMessage());
} catch (SettingsValidationException sve) {
return error(Response.Status.BAD_REQUEST, sve.getMessage());
}
}

Expand All @@ -299,7 +299,7 @@
settingsSvc.delete(name);
return ok("Setting " + name + " deleted.");
} catch (SettingsValidationException sve) {
return error(Response.Status.BAD_REQUEST, sve.getMessage());

Check warning

Code scanning / CodeQL

Information exposure through an error message Medium

Error information
can be exposed to an external user.
}
}

Expand Down
Loading