-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bxc 4375 refactor image server proxy #1641
Bxc 4375 refactor image server proxy #1641
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, mostly just suggestions aside from the releaseConnection bit
...ices-app/src/main/java/edu/unc/lib/boxc/web/services/processing/ImageServerProxyService.java
Outdated
Show resolved
Hide resolved
...ices-app/src/main/java/edu/unc/lib/boxc/web/services/processing/ImageServerProxyService.java
Outdated
Show resolved
Hide resolved
...ices-app/src/main/java/edu/unc/lib/boxc/web/services/processing/ImageServerProxyService.java
Outdated
Show resolved
Hide resolved
...ervices-app/src/main/java/edu/unc/lib/boxc/web/services/rest/ImageServerProxyController.java
Outdated
Show resolved
Hide resolved
LOG.debug("Access was forbidden to {} for user {}", id, GroupsThreadStore.getUsername()); | ||
response.setStatus(HttpStatus.FORBIDDEN.value()); | ||
AccessGroupSet principals = getAgentPrincipals().getPrincipals(); | ||
accessControlService.assertHasAccess("Insufficient permissions to metadata for " + id, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this message isn't really accurate for a request to get a jpg region
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hehe whoops! fixed this and the missing word for the actual get metadata endpoint
This PR adds new tests and refactors the image server proxy code to more clearly separate the controller and service. This also affected some downloadImage code to use new Util code.
https://unclibrary.atlassian.net/browse/BXC-4375