Closed ylexus closed 3 years ago
Yes, there is an assumption that the API always returns the UPLOAD_STATUS_HEADER
field. I'm not sure when this could fail, but it makes sense to avoid this NullPointerException at least.
I'm preparing a change that will throw an IllegalStateException
and guard against the NPE, similar to how other unexpected upload statuses are handled.
Hi @ylexus ! I am a new open source contributor and would love to solve this issue, could you help me understand the issue better by providing some extra references ? Is this is issue open to contribute ?
@shreelakshmijoshi seems like @jfschmakeit has already started working on this - can you liaise with them? I am a issue reporter, I am not familiar with the design of the library to help.
Not sure what you mean by providing extra references.
Using version 1.5.0.
One of users of my app have recently reported an issue (https://github.com/ylexus/jiotty-photos-uploader/issues/34#issuecomment-639217788) which was partially caused by a NPE in the google photos client. Seems like it assumes "X-Goog-Upload-Status" header should always be there but it was not. The API call was "uploadMediaItem".