[haiku-bugs] [Haiku] #16671: BUrlProtocolListener UploadProgress incomplete

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Thu, 17 Dec 2020 01:06:55 -0000

#16671: BUrlProtocolListener UploadProgress incomplete
------------------------------+--------------------------
 Reporter:  kallisti5         |       Owner:  nobody
     Type:  bug               |      Status:  new
 Priority:  normal            |   Milestone:  Unscheduled
Component:  Kits/Network Kit  |     Version:  R1/beta2
 Keywords:                    |  Blocked By:
 Blocking:                    |    Platform:  All
------------------------------+--------------------------
 BUrlProtocolListener::UploadProgress seems incomplete.  The Listener never
 fires when uploading a document via a form post.

 A quick grep shows it's never called on HttpRequest:
 {{{
 /Data/Code/trackipfs> grep -R "UploadProgress"
 ../haiku/src/kits/network/libnetapi/Http*
 /Data/Code/trackipfs> grep -R "DownloadProgress"
 ../haiku/src/kits/network/libnetapi/Http*
 ../haiku/src/kits/network/libnetapi/HttpRequest.cpp:
 fListener->DownloadProgress(this, bytesReceived,
 }}}

 Example usage is BProtocolListener monitoring a HTTP POST via:
 {{{
 BHttpForm form;
 form.AddFile("file", *file);
 BHttpRequest* request = ...
 request->SetMethod(B_HTTP_POST);
 request->SetPostFields(form);
 thread_id thread = request-> Run();
 wait_for_thread(thread, NULL);
 }}}
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/16671>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: