-
Notifications
You must be signed in to change notification settings - Fork 125
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
Versioning a file does not alter file name or recharacterize file #1152
Comments
@vantuyls I could not reproduce this with
Do you have a fresh, vanilla copy of the latest in |
What didn't change was the FileSet's title. Not sure it should, though. |
blarg to it working. (but also yay!) as for the fileset title not changing, i'm of two minds on that. first, the fileset title is just the filename at this point, and if you don't change the fileset title to match the filename you run into a (dangerous, i think) problem of people thinking they're getting file.txt when really they're getting file.exe. at the very least, this is potentially confusing, at the most it's a security issue. |
When you download a file, it's giving you the file name from the characterization metadata, not from the FileSet, so I wonder if this is really an issue? |
oop, our versioning is working now. but the filename... |
@vantuyls Users are also free to change FileSet titles. When I upload a new version, would you expect the new filename to replace a user-entered title? I'm hesitant to get in the business of conditional replacement of the title, i.e., to "sniff" the former title to see if it's filename-like. Might it be sufficient to alert the user via a flash message when a new version is uploaded, recommending to them that they review the FileSet's title to see if it needs changing? Since this is getting into UX, I'm tagging @ggeisler and @samvera-labs/hyrax-ui-ux-advisors for their advice. |
@jcoyne i think it still is. i still think that the disconnect between the name one sees on the file showpage (especially because it is presented like a filename) and what one gets when they download is unfortunate. I'm willing to defer to others on this, though. |
@vantuyls I'm thinking we should discuss this in a new issue, on the -tech list, or on a tech call. Can you make the tech call in 5m? 😃 |
also, @mjgiarlo, i do not recall what the result of this conversation was a few weeks back. Do we need to revisit this? |
@kerchner Yep, that's a new bug. Would you mind writing that up as a new issue? Thanks! |
@vantuyls I think I'm still here: #1152 (comment) |
i'm fine with a message asking./reminding to rename the file. |
@vantuyls OK. Do you think we ought to whip that into a shiny new issue sans all the comment baggage? |
Thx @kerchner! |
@mjgiarlo so, a few things are going on with versioning that are related to this issue. we may want to move this into a new issue (?):
|
@no-reply i'd like to make the change 1, 2, and 3 in my comment from Dec 20, 2017 above. thoughts? |
I've been keeping an eye on this issue. Probably what is being done now tries to pay deference to keeping the FileSet object as a sort of "aggregator", given the fact that it can technically have more than just the However, from what I've seen in this issue (and some others in our project), I think Hyrax users essentially expect to see the same behavior when a FileSet gets a new version as when the FileSet was created with its original At a minimum, the characterization metadata for the previous version should be blown away completely. There's no point hoarding it on the parent FileSet object in my view, especially when the hoarding is being done in
That can't be right? In fact we empty out these I'm also not certain why adding previous versions'
Basically I'm writing this comment (sorry it's so long) because I'm about to add more metadata deletions to our overwritten/custom Regarding the file name, it seems to me we're talking about both title and label. I agree with @mjgiarlo that title should be left alone and not sniffed (user settable). Also I agree with @jcoyne that the downloaded name is pulled correctly from the characterization metadata, using However, the parent FileSet's label is set from the
This is used on the Work show page, and probably in other places, including as a subsequent fall-back for download name in that line of DownloadBehavior I just linked to above. I think this definitely should be changed with the new version's file name. Or I can't see why it wouldn't be. Same for modification date. Finally, the "set title to label if there's no title" thing in FileSet actor will not be needed if and when the Hydra::Works issue below comes to pass. The thinking there should be kept in sync, I feel.
samvera/hydra-works#325 |
In Hyrax 3.0.2, I can upload a new version of the file with a different filename. When I download the new version, it has the correct filename. However, the correct filename does not display in the Hyrax file list. |
The new file version should update the metadata stored in the FileSet so if the file name has a change, that should be reflected in the FileSet metadata. This metadata is editable so a message suggesting to check that metadata might be helpful but if there are changes, those changes need to be reflected in the metadata about the file. |
The characterization of the new file does replace the old file characterization so that is improved. There is no alert to check that the Fileset title matches the filename of the new file version but since it is editable I can be OK with this issue closing. |
@jlhardes I did mean to come back and reply to your last message but got lazy once the PR was merged. |
Descriptive summary
when loading a new version of a file, the new filename is not reflected on the file showpage and the file does not appear to be characterized.
This is problematic because a user downloading the file ought to be able to trust that the file they are downloading is the one reflected on the show page.
Hyrax Master
Expected behavior
New version's filename should be reflected and the file should be characterized.
Actual behavior
old file's name remains as does old file's characterization.
Steps to reproduce the behavior
The text was updated successfully, but these errors were encountered: