Skip to content
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

Cannot import images coming from 2 different groups during the same connection #24

Open
Rdornier opened this issue Sep 17, 2024 · 0 comments

Comments

@Rdornier
Copy link

A user is part of 2 different groups A and B on OMERO.

  • If an image is imported from group A, the image is imported in QuPath without any issue.
  • Then, if we try to import a second image from the group B, it fails with the following error :

15:22:31.722	[project-import11]	ERROR	qupath.ext.omero.core.imageserver.OmeroImageServer	Couldn't create pixel API reader	java.io.IOException: Couldn't find requested image of ID 516335
	at qupath.ext.omero.core.pixelapis.ice.IceReader.<init>(IceReader.java:111)
	at qupath.ext.omero.core.pixelapis.ice.IceAPI.createReader(IceAPI.java:143)
	at qupath.ext.omero.core.imageserver.OmeroImageServer.create(OmeroImageServer.java:111)
	at qupath.ext.omero.core.imageserver.OmeroImageServerBuilder.lambda$buildServer$0(OmeroImageServerBuilder.java:30)
	at java.base/java.util.Optional.flatMap(Unknown Source)
	at qupath.ext.omero.core.imageserver.OmeroImageServerBuilder.buildServer(OmeroImageServerBuilder.java:30)
	at qupath.lib.images.servers.ImageServerBuilder$DefaultImageServerBuilder.buildOriginal(ImageServerBuilder.java:350)
	at qupath.lib.images.servers.ImageServerBuilder$AbstractServerBuilder.build(ImageServerBuilder.java:174)
	at qupath.lib.gui.commands.ProjectImportImagesCommand.initializeEntry(ProjectImportImagesCommand.java:727)
	at qupath.lib.gui.commands.ProjectImportImagesCommand$1.lambda$call$2(ProjectImportImagesCommand.java:468)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
	at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)

My guess is that the security context is not updated to access to the correct group (I already had this issue on my side, reported here BIOP/qupath-extension-biop-omero#7).
this.securityContext = new SecurityContext(groupId); to switch group.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant