Skip to content

Box support as external Storage Provider #122

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

fedeazzato
Copy link
Member

Basic implementation of Box support as a storage provider.

Issue: 67351

@genexusbot
Copy link
Collaborator

Merge to beta failed, conflicted files:
gxexternalproviders/pom.xml

Copy link
Member

@ggallotti ggallotti left a comment

Choose a reason for hiding this comment

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

Nice work!
Just a few minor suggestions

BoxFile.Info file = getBoxFileFromPath(externalFileName, isPrivate);
OutputStream out = new FileOutputStream(localFile);
file.getResource().download(out);
out.close();
Copy link
Member

Choose a reason for hiding this comment

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

This should be closed on finally clause or by using "try with resource".

Copy link
Member Author

Choose a reason for hiding this comment

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

Addressed at next commit. Didn't know the "try with resource" statement.

String fileName = getFileNameFromPath(externalFileName);

BoxFile.Info fileInfo = folder.uploadFile(fileStream, fileName, file.length(), null);
fileStream.close();
Copy link
Member

Choose a reason for hiding this comment

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

This should be closed on finally clause or by using "try with resource".

Copy link
Member Author

Choose a reason for hiding this comment

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

Addressed at next commit. Didn't know the "try with resource" statement.

@genexusbot
Copy link
Collaborator

Cherry pick to beta failed, 0 conflicted files

@genexusbot
Copy link
Collaborator

Merge to beta success

@genexusbot
Copy link
Collaborator

Cherry pick to beta partially success

@genexusbot
Copy link
Collaborator

BETA RESET - Cherry pick to beta failed, 3 conflicted files in commit 7334f5e
  • gxcloudstorage-common/src/main/java/com/genexus/db/driver/ExternalProviderBox.java
  • gxexternalproviders/pom.xml
  • java/src/main/java/com/genexus/util/GXServices.java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants