-
Notifications
You must be signed in to change notification settings - Fork 477
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
Problem with long file stores ID in JVM options #8312
Comments
@fredericbeck - thanks! Having looked after chat yesterday, I'm fairly sure that the problem with the line @pdurbin referenced -
if(!storageIdentifier.contains(":")) { .
I think this is 'just' a bug - a cut/paste error. It will cause problems whenever the length of the store name is within a couple characters of being longer than the bucket name. |
@fredericbeck are you interested in creating a pull request for this? We don't want to deprive you of long and meaningful IDs for stores. 😄 |
@qqmyers to be clear, we're saying this only affects the S3 driver, right? The file system driver should be ok? |
hey @pdurbin @qqmyers , This differs from the proposed change in the issue description. The issue initially requested changing it to: The current code appears to have evolved, and the context of the check has changed. To address the issue and align with the current codebase, I plan to implement the proposed change line that does not involve substring. This change aims to simplify the code and make it more robust Before proceeding, I wanted to confirm the correct line to modify. Could you please provide clarification on which change should be made? Regards |
Looks like that line moved to
|
Issue: Problem with long file stores ID in JVM options IQSS#8312 Change made in line 194.
Thank you for assigning issue #8312 to me. I appreciate the opportunity to contribute to this project. I have created a pull request #10031 for the code change. Please review the pull request at your convenience. If the changes look good and meet the requirements, I would appreciate you merging it into the main branch. Regards |
Problem with long file stores ID in JVM options #8312
What steps does it take to reproduce the issue?
When adding a file store with a long name in the JVM options, file uploads fail whatever the upload method used, generating a
javax.ejb.EJBException: String index out of range: -3
error in the server logs.Everything works for short ID, e.g.
sed-nge-storage
ordv-global
, but not for longer ones such asdataverse-global-storage
Error occur on the file upload page, or when using DV Uploader or direct
curl
API access.File upload fails, detailed error log can be found here.
All users are impacted.
Using shorter file store IDs works fine
Which version of Dataverse are you using?
Using Dataverse v5.8
The text was updated successfully, but these errors were encountered: