[prev in list] [next in list] [prev in thread] [next in thread] 

List:       haiku-bugs
Subject:    [haiku-bugs] Re: [Haiku] #12715: Web+ won't upload screenshot at HDS site
From:       "apl-haiku" <trac () haiku-os ! org>
Date:       2017-04-30 9:51:18
Message-ID: 060.3bdbd41be9488c54a2f467d70259ffb6 () haiku-os ! org
[Download RAW message or body]

#12715: Web+ won't upload screenshot at HDS site
----------------------------------------+----------------------------
   Reporter:  humdinger                 |      Owner:  pulkomandy
       Type:  bug                       |     Status:  new
   Priority:  normal                    |  Milestone:  Unscheduled
  Component:  Applications/WebPositive  |    Version:  R1/Development
 Resolution:                            |   Keywords:
 Blocked By:                            |   Blocking:
Has a Patch:  0                         |   Platform:  All
----------------------------------------+----------------------------

Comment (by apl-haiku):

 I've just checked and this problem is unfortunately still happening.  I
 have run the application server (HDS) on another host locally without a
 reverse-proxy in place.  It _seems_ that Web+ is simply blocking when it
 does the POST with the payload.  The timeout noted above is not relevant
 as this is most likely the Apache load-balancer timing out the request.

 The place in the JS code where the problem is happening is;

 {{{
 ...
 return $http({
   cache: false,
   method: 'POST',
   url: '/' + SEGMENT_SCREENSHOT + '/'+pkg.name+'/add?format=3Dpng',
   headers: _.extend(
     { 'Content-Type' : 'image/png' },
     PkgScreenshot.headers),
   data: screenshotFile
 }).then(
 ...
 }}}

 The data is a JS File (https://developer.mozilla.org/en/docs/Web/API/File)
 object.  The logic is in the file "pkgscreenshotservice.js".  If anybody
 wants to hit HDS without getting minified JS files back then I can make
 that happen for a period of time.

--
Ticket URL: <https://dev.haiku-os.org/ticket/12715#comment:3>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic