yoda icon indicating copy to clipboard operation
yoda copied to clipboard

[BUG] creation of collection with single apex " ' " in the name

Open ccacciari opened this issue 4 years ago • 6 comments

Bug description

I created in YODA 1.6 as a normal user a folder in a research group:

/yoda/home/research-surftest/Claudio's test

I am able nor to remove the folder via the GUI, neither to remove the files inside it. I added metadata to the collection and I am not able to view the metadata I added through the GUI, but they are correctly stored in iRODS.

Steps to reproduce

  • create a folder with character " ' " in the name in a research group as a normal user via YODA web portal
  • upload data to the folder via YODA web portal
  • edit the metadata via YODA web portal
  • try to remove the data via YODA web portal
  • try to visualize the metadata previously entered via YODA web portal

Actual result:

  • try to remove the data via YODA web portal Got a message in the pop-up windows stating "The selected folder to add a new folder to does not exist"
  • try to visualize the metadata previously entered via YODA web portal The metadata fields are empty

Expected result: Describe here what should happen after you run the steps above (i.e. what would be the correct behaviour)

  • try to remove the data via YODA web portal the file is deleted
  • try to visualize the metadata previously entered via YODA web portal I see the metadata

Addtional info

Yoda version: v1.6 Ansible version: v0.0.0 Operating system: centos7 Browser: Firefox 87

Screenshots / debug log

image image

ccacciari avatar Apr 14 '21 14:04 ccacciari

This looks like an iRODS bug: https://github.com/irods/irods/issues/4887#issuecomment-769085378

Resolved in v4.2.9 and later.

lwesterhof avatar Apr 15 '21 07:04 lwesterhof

Some edge cases still exist in v4.2.11 / v4.2.12. (https://github.com/irods/irods/issues/5727) Probably fixed in v4.3.1.

lwesterhof avatar Jul 30 '21 14:07 lwesterhof

@lwesterhof Will this be fixed in Yoda 1.9? I had a user adding a folder with an apostrophe in the folder name. The contents of the folder were not visible in the Yoda webportal but were visible in a webdav connection (Windows webdavclient and cuberduck). Once a copy of the folder was made by Ander removing the apostrophe, the contents were visible in the webportal.

Danny-dK avatar Aug 14 '23 06:08 Danny-dK

Unfortunatly not, we are investigating possible workarounds, but for the proper fix we need iRODS 4.3.x with the new GenQuery parser implementation. That will probably land in Yoda 2.0.

lwesterhof avatar Aug 14 '23 06:08 lwesterhof

@lwesterhof Thanks for letting me know. I was now wondering if my issue is actually related to the current issue. If it was an iRODS issue, wouldn't the folder contents be inaccessible regardless of client? I'm only unable to view subfolders if a parent folder has an apostrophe in the webportal, but am able to view it in other clients (if it is a webportal issue, I'll be happy to create a new issue).

Danny-dK avatar Aug 14 '23 06:08 Danny-dK

It is related, the bug is in the iRODS GenQuery parser (which is used by the portal). You can also reproduce it using the iCommands doing an iquest, see for an example https://github.com/irods/irods/issues/5727

lwesterhof avatar Aug 14 '23 06:08 lwesterhof