Skip to content

Infinite loop when uploading zero-length files #152

Closed
@Tauwasser

Description

@Tauwasser

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'}])

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions