-
Notifications
You must be signed in to change notification settings - Fork 36
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
Metadata not shown #234
Comments
Hmm, that is curious. You're logged into Metalnx as the same user who is doing the |
I haven't been able to reproduce it yet... What version of Metalnx is this? |
Upon closer inspection of what you've got in your database, I see that often... your attribute or value are empty. This is not allowed, in general - AVUs must have at least the attribute and value filled in. The unit is optional. How did your metadata get to this state? |
It is the same user. I have tried reproducing it with another file, but failed as well. Metadata works fine for other data. It is version 2.2.0-RELEASE. The value is not empty, it is space - you do not see that in the command line interface. This is probably not the issue, I tried that for reproducing this, too. |
Okay, I confirm that spaces work - still seeing them list correctly locally. Can you share the text version of the Please also look for a clue or error in the Metalnx logs (via |
Can you confirm the database you're using is Postgres? We know that some of the queries used by Metalnx were not tested on other databases. |
Yes, I use Postgres for metalnx and also for iRODS. imeta ls -d 0 for 'Datum' attribute: Datum From the log for the Postgres Docker, I find this a bit suspicious:
I will investigate further on monday. |
I agree with your assessment of 'suspicious'. I confirm |
I managed to reproduce that behavior. There really was an empty attribute (instead of space). I do not see an obvious way to create this with metalnx or the iRODS CLI. However, I was also testing the python-irodsclient on the same iRODS server. Apparently, you can write empty attributes via which is indistinguishable from space in the command line, but in my python GUI it shows None, which is indistinguishable from the string "None", but both can't be true simultaneously. |
Ah, very good. I agree the server should enforce this more tightly. I'm transferring this issue into irods/irods and will track it there. Thanks! Edit: Just learned transfers are not allowed across GitHub organizations. So... will box it in and follow up here. |
New issue in the server (irods/irods#5618). We'll use this one to make sure Metalnx itself still displays even if the server does have an empty string. |
I can cause a similar issue with iRODS rule engine using Edit: Looks like using it incorrectly is not the issue here, this microservice is documented exactly that way: https://docs.irods.org/4.2.8/doxygen/miscMS_8cpp.html#a109caab5c02c547ba0ebb07cdcacfcb5 |
The following line explains why the metadata is not shown. Removing the check for an empty string allows the metadata to be shown. If the server is enforcing non-empty attribute names, then it should be safe to remove the check. See the following PRs for the necessary changes: |
I have a test file called 0 with a little nonsense Text and see this:
There should be some metadata, as I can verify with "imeta ls -d 0" on the iRODS server:
Of course the values do not make much sense, but this is not the point, I would still expect it to work.
The text was updated successfully, but these errors were encountered: