TritonDataCenter / java-manta

Java Manta Client SDK
Mozilla Public License 2.0
16 stars 26 forks source link

HTTP Content-Type header is not being read correctly #39

Closed dekobon closed 8 years ago

dekobon commented 8 years ago

The contentType bean on MantaObject is being consistently set to null. You can repro this by reading a directory.

phillipross commented 8 years ago

@dekobon This is a bug, right? Something that a test in the test suite should be detecting if there were proper assertions in place?

dekobon commented 8 years ago

Yes, this is a bug that I found when writing nio2 tests. On Nov 4, 2015 11:54 PM, "Phillip Ross" notifications@github.com wrote:

@dekobon https://github.com/dekobon This is a bug, right? Something that a test in the test suite should be detecting if there were proper assertions in place?

— Reply to this email directly or view it on GitHub https://github.com/joyent/java-manta/issues/39#issuecomment-153980614.

dekobon commented 8 years ago

I think we can tackle it easily when we add apache commons httpclient. On Nov 4, 2015 11:54 PM, "Phillip Ross" notifications@github.com wrote:

@dekobon https://github.com/dekobon This is a bug, right? Something that a test in the test suite should be detecting if there were proper assertions in place?

— Reply to this email directly or view it on GitHub https://github.com/joyent/java-manta/issues/39#issuecomment-153980614.

phillipross commented 8 years ago

Fixed by 115af9a71ce18360886603127db925ea336754c9 Merged to master on 04c1df4e76642c51e1b252526818d6569f0e2e50