Skip to content

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

@Rdornier

Description

@Rdornier

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions