Skip to content
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

Page blobs > 2GB cannot be created with Blob service layer library #50

Closed
adashcolinr opened this issue Apr 13, 2012 · 1 comment
Closed
Milestone

Comments

@adashcolinr
Copy link
Contributor

In BlobContract.java, I spied this defect:

/**
 * Creates a page blob of the specified maximum length in the specified container.
 * <p>
 * Note that this method only initializes the blob. To add content to a page blob, use the
 * {@link BlobContract#createBlobPages(String, String, PageRange, long, InputStream)} or
 * {@link BlobContract#createBlobPages(String, String, PageRange, long, InputStream, CreateBlobPagesOptions)}
 * methods.
 * 
 * @param container
 *            A {@link String} containing the name of the container to create the blob in.
 * @param blob
 *            A {@link String} containing the name of the blob to create. A blob name can contain any combination of
 *            characters, but reserved URL characters must be properly escaped. A blob name must be at least one
 *            character long and cannot be more than 1,024 characters long, and must be unique within the container.
 * @param length
 *            The length in bytes of the page blob to create. The length must be a multiple of 512 and may be up to
 *            1 TB.
 * @throws ServiceException
 *             if an error occurs accessing the storage service.
 */
void createPageBlob(String container, String blob, int length) throws ServiceException;

Note that the length parameter is declared as an int, which maxes out at 2GB. This issue also appears in the overload

void createPageBlob(String container, String blob, int length, CreateBlobOptions options) throws ServiceException;

and in the implementations of createPageBlob in BlobExceptionProcess.java and BlobRestProxy.java.

joostdenijs pushed a commit to joostdenijs/azure-sdk-for-java that referenced this issue Jan 18, 2013
@gcheng
Copy link

gcheng commented Feb 21, 2013

already fixed.

@gcheng gcheng closed this as completed Feb 21, 2013
jianghaolu pushed a commit to jianghaolu/azure-sdk-for-java that referenced this issue Apr 5, 2017
g2vinay pushed a commit to g2vinay/azure-sdk-for-java that referenced this issue Mar 4, 2019
Fixed transactional MD5 check for files
g2vinay pushed a commit to g2vinay/azure-sdk-for-java that referenced this issue May 30, 2019
@github-actions github-actions bot locked and limited conversation to collaborators Apr 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants