irods-contrib / metalnx-web

Metalnx Web Application
https://metalnx.github.io/
BSD 3-Clause "New" or "Revised" License
36 stars 36 forks source link

Can not search metadata for files having common attributes #322

Closed hanytran closed 1 year ago

hanytran commented 1 year ago

In metadata search, when there are files having common attributes and owned by more than one user. Once one of them tries to search, no results return because it failed at getting permission in MetadataService of metalnx. Error message: "Could not get permissions for current user: unable to find file under path" iCommand in docker container is working just fine.

korydraughn commented 1 year ago

What version of iRODS, OS, and Metalnx are you running?

Please provide steps showing how to reproduce this?

hanytran commented 1 year ago

iRODS 4.2.6, OS: ubuntu 20.04, and Metalnx 2.4.0

korydraughn commented 1 year ago

Can you try this on a later version of iRODS and Metalnx?

The issue you're seeing may have been resolved in a later release.

Also, we haven't released Ubuntu 20 packages for that version of iRODS. I'm curious as to how you made that work.

hanytran commented 1 year ago

I built by myself the docker image for iRODS 4.2.6 and used it in a Docker compose for this whole setup (iRODS, metalnx, jupyterhub, keycloak).

I tried yesterday to install iRODS 4.3 from the link you gave (https://github.com/irods/irods_development_environment) but it was not successful yet. I found it's a bit complex because we need to build core and runner with other settings...

korydraughn commented 1 year ago

Ok. I'll investigate this issue and get back to you once I know more.

As for the development environment, that sounds right. We don't expose compilation options. Will have to think about that one.

hanytran commented 1 year ago

Thanks. I really want to use iRODS 4.3 in the docker compose but it's not that easy to install and set up. I think in this version it's quite cool when one can write rules in python 3 and can also work with metalnx 2.6. Besides it seems many bugs have been already fixed.

korydraughn commented 1 year ago

You may want to consider joining the iRODS google group at https://groups.google.com/g/iROD-Chat

There, you'll have access to the community and they can provide additional support and guidance to various use-cases.

We'll look into what we can do regarding a simple docker compose project.

korydraughn commented 1 year ago

I could not reproduce what you're seeing in later versions of iRODS and Metalnx.

I was able to search and find data objects using shared attribute names without any issues. This issue was likely resolved by the consolidation of the search interfaces (Property search and Metadata/AVU search).

Closing this as the solution to your problem is to upgrade.


I've created an issue for the development environment regarding your comments about compilation. See https://github.com/irods/irods_development_environment/issues/71