-
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
Payara6: URL encoding has changed so going through Apache or directly to 8080 can break things; export download, privateURL download. #9797
Comments
I can't seem to be able to reproduce the broken metadata links issue ( |
[edit: not an issue - the
I'm very confused. [edit: don't be] |
(we need to look closer into this, there may be situations where this still can be reproduced. like maybe if there is a login page redirect involved, or something like that) |
FWIW: The actual PID parsing changed when PermaLinks was added, so we may have different error messages now and/or be more sensitive to strings not getting decoded in the PID recognition code now. |
OK, the "different error message" was a non issue - the error messages in the original description were added as regular text, without the backticks, so the |
[sad] Condon, Kevin M reacted to your message:
…________________________________
From: landreev ***@***.***>
Sent: Thursday, August 24, 2023 6:57:30 PM
To: IQSS/dataverse ***@***.***>
Cc: Condon, Kevin M ***@***.***>; Author ***@***.***>
Subject: Re: [IQSS/dataverse] Payara6: URL encoding has changed so going through Apache or directly to 8080 can break things; export download, privateURL download. (Issue #9797)
OK, the "different error message" was a non issue - the error messages in the original description were added as regular text, without the backticks, so the <protocol> part must have been dropped on account of the angle quotes.
—
Reply to this email directly, view it on GitHub<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_IQSS_dataverse_issues_9797-23issuecomment-2D1692247672&d=DwMCaQ&c=WO-RGvefibhHBZq3fL85hQ&r=TUpjWt9sVfaAC8ETCY_cDPtqJKl7s242PLg6-Wx6UpM&m=d73ua0mINHf_k2LK3rh5tm17Y1rF3l4wKneMD-svmW3qtyRpMTlMw7ujjzu-W6fw&s=DO0mp8vJYBua-8CDsCo_ll3E9nGr5LKz2ZpyC3IZXhc&e=>, or unsubscribe<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_ABGAYCBQ2ZLF7FVTDTF6BLTXW6PZVANCNFSM6AAAAAA3VXXYTU&d=DwMCaQ&c=WO-RGvefibhHBZq3fL85hQ&r=TUpjWt9sVfaAC8ETCY_cDPtqJKl7s242PLg6-Wx6UpM&m=d73ua0mINHf_k2LK3rh5tm17Y1rF3l4wKneMD-svmW3qtyRpMTlMw7ujjzu-W6fw&s=qeK0gdeTkBQXOXrKV5kXXOrQsagBTw14QDGaFDbgVh0&e=>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
not "angle quotes", lol... but you know what I meant. |
So, anyway, this is what we are looking at: something double-encoded that ":" character when Kevin was testing it (more than once). The error messages are in
...but I haven't been able to make it happen for me now.
... but, again, I tried it with a draft, reproducing the same login page redirect loop - and it didn't happen for me. |
I did figure out how to reproduce this, btw. It's not that bad. |
Here's what appears to be taking place:
Rather than trying to figure out why this has started happening under p6, I feel like we should just add a defensive The fact that this is happening because of the extra The above feels like more text than this problem warranted already. |
fix for double-url-encoded ":" in "hdl:". #9797
Tested on payara 6 .8 on java 17: #9764
After running the installer, found siteURL had :8080 at the end of fqdn. Later I removed it but noticed it seemed to cause trouble when it was 8080 for private url file download, worked when removed and trouble for downloading dataset metadata export when not there and worked when 8080 was there, so opposite. Might this be a more general parsing/encoding issue that could appear elsewhere?
The errors:
http://dataverse-internal.iq.harvard.edu:8080/privateurl.xhtml?token=f09ccd96-5e3e-4299-a57e-f0ae7dbe5d55
{"status":"ERROR","message":"A dataset with the persistentId doi%3A10.70122/FK2/JAKDVW could not be found."}
[2023-08-18T15:47:47.365+0000] [Payara 6.2023.8] [INFO] [] [edu.harvard.iq.dataverse.AbstractGlobalIdServiceBean] [tid: _ThreadID=97 _ThreadName=http-thread-pool::jk-connector(4)] [timeMillis: 1692373667365] [levelValue: 800] [[
Error parsing identifier: doi%3A10.70122/FK2/JAKDVW: ':' not found in string]]
[Update] the export issue seemed to be corrected by adding https rather than http when going through port 80. I'd just removed 8080 from siteURL without adjusting http.
Note that my payara 5 installation uses http:// and port 8080 and it appears to work. Would need to retest to confirm.
The text was updated successfully, but these errors were encountered: