You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "npgretz (via GitHub)" <gi...@apache.org> on 2025/08/06 21:26:23 UTC
[I] Samba 4.10.2: destination_filepath is NoneType when opening file on Samba Share [airflow]
npgretz opened a new issue, #54199:
URL: https://github.com/apache/airflow/issues/54199
### Apache Airflow Provider(s)
samba
### Versions of Apache Airflow Providers
4.10.2
Reverting to 4.9.2 fixed the issue.
### Apache Airflow version
2.10.5
### Operating System
Almalinux 8
### Deployment
Official Apache Airflow Helm Chart
### Deployment details
Helm Chart 1.16.0
### What happened
After updating the Samba Providers package to 4.10.2 using SambaHook.push_from_local() began erroring out with:
`line 289: with open(local_filepath, "rb") as f, self.open_file(destination_filepath, mode="wb") as g:`
`TypeError: 'NoneType' object does not support the context manager protocol`
The destination_filepath variable is apparently NoneType. This occurs after:
```
Running secure negotiate process
receiving SMB2 Create Response
sending SMB2 Close Request for file <<destination_path>>
receiving SMB2 Close Response
```
The destination file is created on the SMB share but is zerobytes in size and empty.
### What you think should happen instead
The push_from_local() call should transfer the contents of the file too.
### How to reproduce
Install apache-airflow-providers-samba==4.10.2 in Airflow 2.10.5.
Then use SambaHook.push_from_local(destination_file, src_file, connection)
### Anything else
This issue was resolved by downgrading to 4.9.2
### Are you willing to submit PR?
- [x] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Samba 4.10.2: destination_filepath is NoneType when opening file on Samba Share [airflow]
Posted by "boring-cyborg[bot] (via GitHub)" <gi...@apache.org>.
boring-cyborg[bot] commented on issue #54199:
URL: https://github.com/apache/airflow/issues/54199#issuecomment-3161677641
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Samba 4.10.2: destination_filepath is NoneType when opening file on Samba Share [airflow]
Posted by "eladkal (via GitHub)" <gi...@apache.org>.
eladkal closed issue #54199: Samba 4.10.2: destination_filepath is NoneType when opening file on Samba Share
URL: https://github.com/apache/airflow/issues/54199
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Samba 4.10.2: destination_filepath is NoneType when opening file on Samba Share [airflow]
Posted by "gopidesupavan (via GitHub)" <gi...@apache.org>.
gopidesupavan commented on issue #54199:
URL: https://github.com/apache/airflow/issues/54199#issuecomment-3161849328
This is already fixed https://github.com/apache/airflow/pull/54107 , please test if possible on this @npgretz
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org