Skip to content

Commit

Permalink
Default owner not found in unauthenticated server bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Rylern committed Apr 9, 2024
1 parent 61e9322 commit c7be226
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public static CompletableFuture<Optional<Server>> create(ApisHandler apisHandler
logger.error("The server didn't return any owner");
return Optional.empty();
}
if (defaultOwner == null) {
if (defaultOwner == null && defaultUserId > -1) {
logger.error("The provided owner was not found in the list returned by the server");
return Optional.empty();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,6 @@ static Optional<OmeroImageServer> create(URI uri, WebClient client, String... ar
}

if (originalMetadata.isPresent()) {
System.err.println(originalMetadata.get().getName());

PixelAPI pixelAPI;
var pixelAPIFromArgs = getPixelAPIFromArgs(client, args);

Expand Down

0 comments on commit c7be226

Please sign in to comment.