-
Notifications
You must be signed in to change notification settings - Fork 0
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
Symlinks not handled properly #289
Comments
From the web app end I can make them appear as links. Can @martynia check what the gfal scripts report. I'm pretty sure that they just give the status code which I am interpreting using stat.isdir. in this case can easily also check for link. If @martynia provides the correct tool for unlinking then I can use it. Do you see the same problem for file symlinks? |
Symlinks to files display as if they are just a normal file (with all the properties of the target)... Deletion of these works correctly. |
Returned listing from worker to workqueue is wrong? And wrong how?
…________________________________
From: sfayer <notifications@github.com>
Sent: 26 June 2018 12:34:18
To: ic-hep/pdm
Cc: Richards, Alexander J; Assign
Subject: Re: [ic-hep/pdm] Symlinks not handled properly (#289)
Symlinks to files display as if they are just a normal file (with all the properties of the target)... Deletion of these works correctly.
I can see from the log that the returned listing is wrong...
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub<#289 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AEeEXkCvjqotoMbnVA6cEXKbShmcKwl2ks5uAhw6gaJpZM4U3tFY>.
|
Yes, but the listing returned from the gfal2_ls.py script is also wrong... It's doing the equivalent of stat rather than lstat, so symlinks are never visible. I'm starting to think it may be a bug in the gfal2 readdir implementation (or even gridftpd?), we'll have to do some specific tests to track it down... |
Well, it appears there is no workaround for this for now: Symlinks just have the type of the target in the listing. There is an extra parameter set in the listing (UNIX.slink), but I don't know if that's visible through gfal (I suspect not). So, there are two tasks for Janusz:
|
I have a symlink to a dir, it appears as a dir in the listing and I can't delete it (because gridftp rmdir says it isn't a directory). Symlinks should appear as links, so I'm not quite sure if it's the listing process or gridftp that's returning the wrong information?
The text was updated successfully, but these errors were encountered: