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

Adding SHA-1 hash validation support. #1140

Merged
merged 8 commits into from
Aug 31, 2022
Merged

Commits on Aug 19, 2022

  1. Adding SHA-1 hash validation support.

    The Photos upload API can take a SHA-1 hash in the HTTP header. If the
    hash does not match after the final payload finishes, the API server
    will return 400 error.
    
    This feature is still experimental. It works only for single-payload
    upload.
    MewX committed Aug 19, 2022
    Configuration menu
    Copy the full SHA
    d326db9 View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2022

  1. Configuration menu
    Copy the full SHA
    c372e59 View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2022

  1. Fixing the error check for hash mismatch.

    Any hash mismatch will result in the batch import request failure with an UploadErrorException.
    
    This matches the current behavior where any network issue will raise an IOExeption and fail the whole batch.
    MewX committed Aug 24, 2022
    Configuration menu
    Copy the full SHA
    e784fa2 View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2022

  1. Update extensions/data-transfer/portability-data-transfer-google/src/…

    …main/java/org/datatransferproject/datatransfer/google/photos/GooglePhotosInterface.java
    
    
    actually `maybeRethrowFileMismatchError` (and consider moving somewhere common if this isn't specific to Photos APIs)
    jzacsh committed Aug 26, 2022
    Configuration menu
    Copy the full SHA
    0efdfec View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2022

  1. Junit Migration: runner to extension migration (dtinit#1143)

    * Migrated from Runners to Extensions (@RunWith -> @ExtendWith)
    * Migrated @test annotations from Junit 4 -> 5
    * Migrated @before & @after to @beforeeach & @AfterEach, @BeforeClass to @BeforeAll
    
    Co-authored-by: Ernest Sadykov <[email protected]>
    2 people authored and MewX committed Aug 29, 2022
    Configuration menu
    Copy the full SHA
    55b0eb9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f481f0e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    85ebd75 View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2022

  1. Configuration menu
    Copy the full SHA
    3803577 View commit details
    Browse the repository at this point in the history