Skip to content

Google Cloud Transfer operators: bug in transfer service update job operator #22021

Closed

Description

@abhinavraj23

Apache Airflow Provider(s)

google

Versions of Apache Airflow Providers

6.4.0

Apache Airflow version

2.1.4

Operating System

linux

Deployment

Composer

Deployment details

No response

What happened

For the airflow operators made corresponding to google cloud storage transfer service, the update transfer job isn't working correctly in case the source is AWS S3, the reason for the same is the TransferJobPreprocessor function. This function injects AWS credentials incase there's an AWS_S3_DATA_SOURCE provided, but the issue with this is that the function expects transfer body and currently the update request body is passed in the function rather than the transfer body, here the documentation link which shows how a request body for updating a transfer job is different than the transfer job object, the request body for update transfer job contains the transfer job in the json object which should be passed in the TransferJobPreprocessor function and after which the AWS credentials would be injected correctly and hence the operator would work as expected.

What you expected to happen

The update transfer job operator should work as expected in case the source is AWS S3.

How to reproduce

Configure a google storage transfer job with S3 being the data source and try to update the transfer in airflow using the
UpdateJobOperator. It would throw an error stating AWS credentials are absent in the transfer body.

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

  1. potiuk commented on Mar 7, 2022

    @potiuk
    Member

    Feel free to fix!

  2. added
    provider:google
    on Mar 7, 2022
  3. shahar1 commented on Apr 28, 2023

    @shahar1
    Contributor

    @eladkal Please assign me

  4. github-actions commented on Dec 19, 2024

    @github-actions
    Contributor

    This issue has been automatically marked as stale because it has been open for 365 days without any activity. There has been several Airflow releases since last activity on this issue. Kindly asking to recheck the report against latest Airflow version and let us know if the issue is reproducible. The issue will be closed in next 30 days if no further activity occurs from the issue author.

  5. added a commit that references this issue on Feb 7, 2026
    b398dea
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:providersgood first issuekind:bugprovider:google

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions