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

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

Open
ccacciari opened this issue Apr 14, 2021 · 6 comments
Open

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

ccacciari opened this issue Apr 14, 2021 · 6 comments

Comments

@ccacciari
Copy link
Contributor

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

@lwesterhof
Copy link
Member

lwesterhof commented Apr 15, 2021

This looks like an iRODS bug: irods/irods#4887 (comment)

Resolved in v4.2.9 and later.

@lwesterhof
Copy link
Member

lwesterhof commented Jul 30, 2021

Some edge cases still exist in v4.2.11 / v4.2.12. (irods/irods#5727) Probably fixed in v4.3.1.

@Danny-dK
Copy link

@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.

@lwesterhof
Copy link
Member

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.

@Danny-dK
Copy link

@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).

@lwesterhof
Copy link
Member

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 irods/irods#5727

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

No branches or pull requests

3 participants