You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
When uploading zero-length files when creating issues or updating them, python just hangs and seemingly does nothing anymore. Apparently this has to do with the fact that the file is opened as a stream and the underlying code in packages/requests will now try to send in chunks, but I know too little python to identify the respective line of code.
This is a bug in requests, see https://github.com/kennethreitz/requests/issues/3066. I've tried the current master branch of requests and it works fine now, i.e. raises ValidationError: 1 file(s) could not be saved.
I've also added a size check in python-redmine which will be a part of the next release. (See 71cb6e5)
When uploading zero-length files when creating issues or updating them, python just hangs and seemingly does nothing anymore. Apparently this has to do with the fact that the file is opened as a stream and the underlying code in packages/requests will now try to send in chunks, but I know too little python to identify the respective line of code.
Example code:
redmine.issue.create(project_id=project.id, subject='Upload Test', tracker_id=1, description='Test uploading zero-length file', status_id=3, priority_id=7,uploads=[{'path': '/path/to/empty.file'}])
The text was updated successfully, but these errors were encountered: