Fix bug wrong orientation caused by EXIF
This commit is contained in:
@@ -150,7 +150,7 @@ public class PictureResourceTest extends AbstractRestTest {
|
||||
|
||||
String authorization = getAuthorization();
|
||||
LOG.info("authorization: " + authorization);
|
||||
String path = deploymentURL + PATH + "/image/1?size=1";
|
||||
String path = deploymentURL + PATH + "/image/37?size=1";
|
||||
Request request = Request.Get(path).addHeader("Accept", "image/jpg")
|
||||
.addHeader("Authorization", authorization);
|
||||
|
||||
@@ -178,4 +178,16 @@ public class PictureResourceTest extends AbstractRestTest {
|
||||
int code = httpResponse.getStatusLine().getStatusCode();
|
||||
assertEquals(404, code);
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws IOException {
|
||||
|
||||
var test = new PictureResourceTest();
|
||||
|
||||
test.deploymentURL = "http://localhost:8080/";
|
||||
test.deploymentURL = "https://hartmann-cue.heydevelop.de/";
|
||||
test.username = "adm";
|
||||
test.password = "x1t0e7Pb49";
|
||||
|
||||
test.doGetPicture();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user