taskadapter / redmine-java-api

Redmine Java API
Apache License 2.0
269 stars 162 forks source link

upload files is failing #280

Closed albfan closed 6 years ago

albfan commented 7 years ago

I have done a test with curl and redmine 3.3.0: File is loaded (checked on $REDMINE_DIR/files)

response is 201:

{ "upload": { "token": "32.69abd4abf577d7cfd6d370f146611fea" } }

but when it is loaded through redmine-java-api it returns a 201 but no file is uploaded on $REDMINE_DIR/files and from response: token is:

"33."

so seems last part of token is missing too

I can make any kind of test if needed. I went through transport.upload() but get lost in redmine-java-api internals

albfan commented 7 years ago

relates with #278

https://redmine.lighttpd.net/issues/1104 redmine do not accept Transfer-encoding: chunked, but httpcomponents decide to send attachment that way.