-
Notifications
You must be signed in to change notification settings - Fork 494
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
Captcha question in contact form doesn't appear on 403 error page #10466
Comments
Huh, this reminds me of this issue: Which we (partially?) fixed in this PR: |
Indeed, the problem seems to be linked to the linked issue. I doesn't know why but in case of 403 error page, A quick fix can be to add a verification on public String getMessageTo() {
+ if (op1 == null or op2 == null) {
+ initUserInput(null);
+ }
if (feedbackTarget == null) {
return BrandingUtil.getSupportTeamName(systemAddress);
} else if (feedbackTarget.isInstanceofDataverse()) {
return ((Dataverse) feedbackTarget).getDisplayName() + " " + BundleUtil.getStringFromBundle("contact.contact");
} else {
return BundleUtil.getStringFromBundle("dataset") + " " + BundleUtil.getStringFromBundle("contact.contact");
}
} |
jeromeroucou
added a commit
to Recherche-Data-Gouv/dataverse
that referenced
this issue
May 22, 2024
stevenwinship
pushed a commit
that referenced
this issue
Jun 10, 2024
luddaniel
pushed a commit
to Recherche-Data-Gouv/dataverse
that referenced
this issue
Jun 12, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What steps does it take to reproduce the issue?
When a authenticated user requests access to a resource (URL) for which he doesn't have rights (for example, a dataset in draft mode).
On the 403 error page, or "Not Authorized"
A 403 error page is displayed, and telling to the user he or she doesn't have rights, with a link opening a contact form. In this case, the question "Please fill this out to prove you are not a robot." only display
+ =
. And when the form is submitted, aNullPointerException
is thrown, indicating that variableop1
is null.All users who doesn't have the correct privilege on the asked resource.
The contact form have to be complete with the captcha question
Which version of Dataverse are you using?
5.14
, but there is present on6.2
(develop
branch)Any related open or closed issues to this bug report?
I don't find any other issue on this theme.
Screenshots:
The text was updated successfully, but these errors were encountered: