-
Notifications
You must be signed in to change notification settings - Fork 495
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
Request access for restricted files with terms not working from the file page #4554
Comments
@PaulBoon thanks for the bug report. I can definitely reproduce the bug on the demo site, which is running 4.8.4. You click and button goes gray but nothing happens: I feel like @sekmiller and I noticed this bug recently and he may have fixed it in one of the open pull requests but I'm having trouble finding it. I think you're right that a line like this is missing: |
@PaulBoon of course, if you have a working fix in front of you, please feel free to make a pull request! |
On 4.8.4 it works, it is greyed out because you have the access you requested. |
Have look at https://demo.dataverse.org/dataset.xhtml?persistentId=doi:10.5072/FK2/P10AJJ&version=2.1 |
No, it only turned grey after I clicked it. I think this establishes that it's broken in on 4.8.4 and 4.8.5.
Weird. |
Ok, there are two UI scenarios for this access request on the files page: With no terms of access. You push the 'Request Access' button. Shortly a progress spinner appears, then the button is greyed out and the label is changed to 'Access Requested'. With terms of access. After pushing the button you should get this dialog, showing the terms and an 'Accept' button to do the request. Etc. Etc. This works fine on the demo server (4.8.4) |
Ok, a couple things. @sekmiller and I talked about this issue this morning and he did some testing on the Also. above I was saying that clicking the "Access Request" button didn't do anything. I thought it was broken because it went grey and became unclickable. @sekmiller said that's the indication that it worked. I expected to see a green message at the top of the page saying something like "Access has been requested". I'm going to flag this for UX attention. |
The button doesn't just turn grey - the text change to "Access Requested". While we may want to consider if this is enough from a UX perspective, I don't think we've received any reports from the field of this being an issue. |
@scolapasta ok, thanks @PaulBoon sorry, sorry but I just talked to @sekmiller again and he said you're right. It's broken on the file page, as you reported. In the develop branch. Previously he was testing the dataset page. So if you want to make a pull request to fix it, please feel free! |
@PaulBoon It looks like you'll also have to add getters and setters for the fileDownloadHelper to FilePage.java |
@PaulBoon just checking in to see if you're interested in making a pull request or not. No pressure. Thanks! 😄 |
I believe #4897 is a duplicate. |
Closing as a duplicate of #4897, which we estimated during backlog grooming today. |
Request access for restricted files with 'terms of access' not working from the file page
When pushing the request button on the file page, no pup-up appears.
This is related to issue #4251, and the fix is indeed working in 4.8.4, but it fails in 4.8.5.
The file.xhtml in 4.8.5 does not contain <ui:include src="file-request-access-popup-fragment.xhtml">.
The text was updated successfully, but these errors were encountered: