Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.

Conversation

@ChJung1
Copy link

@ChJung1 ChJung1 commented Sep 15, 2022

Hi @gaul,
This is my first github pull request, so forgive me if i did something the wrong way.
I tried to add a test, but feel that it kind of doesn't test the core of the problem.
Feedback welcome.
ChJung1

Copy link
Member

@gaul gaul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please squash commits.

String blockId = AzureBlobStore.makeBlockId(partNumber);
// if (!blockId.matches(VALIDATION_REGEX)){
// System.out.println("--------------------------------------------- " + partNumber + " -> '" + blockId + "' -> " + blockId.matches(VALIDATION_REGEX));
//}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove this commented code.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... removed

@Test(groups = "unit", testName = "AzureBlobStore")
public class AzureBlobStoreTest {

static String VALIDATION_REGEX = "[a-zA-Z0-9\\-_=]*";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make this private and final and use Pattern.compile??

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... i did so ... hope you like it.

@gaul gaul merged commit b2a2025 into apache:master Oct 14, 2022
@gaul
Copy link
Member

gaul commented Oct 14, 2022

Thank you for your contribution @ChJung1!

@inno-steffg
Copy link

I have tested some simple things with the current JCloud master branch code base against an Azure storage account and run into an error message for a 4 gigabyte upload, split into 5 MByte chunks in a multipart upload:
2023-07-25_11h40_04

Could it be, that the base64 encoding in the url version isn't accepted by Azure?

@ChJung1
Copy link
Author

ChJung1 commented Jul 25, 2023 via email

@gaul
Copy link
Member

gaul commented Jul 26, 2023

Please open a Jira issue for this regression.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants