9.2: http://localhost:8984/dba/file-upload 400 bad request
Thursday, 2 May 2019 · 3 messages
ZD
Zimmel, Daniel2 May 2019 11:02 #
Hi,
in 9.2 web admin I get an HTTP 400 with any file upload:
Stopped at D:/BaseX92/webapp/dba/files/file-upload.xqm, 23/10: [XPTY0004] Cannot convert empty-sequence() to map(xs:string, xs:base64Binary): ().
The file seems to be sent, but $files is empty.
Is this a bug?
This was working with the default settings in 9.0.2
Daniel
Host: localhost:8984
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Firefox/60.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: de,en-US;q=0.7,en;q=0.3
Accept-Encoding: gzip, deflate
Referer: http://localhost:8984/dba/files
Content-Type: multipart/form-data; boundary=---------------------------54472172614771 Content-Length: 153
Cookie: JSESSIONID=node0npu7s85e3q5amqmmqir6aak0.node0
DNT: 1
Connection: keep-alive
Upgrade-Insecure-Requests: 1
Cache-Control: max-age=0
CG
Christian Grün2 May 2019 11:16 #
Hi Daniel,
This reminds me of a problem that has been discussed on the list some days ago. Could you please check out the latest snapshot and see if the problem persists [1]?
BaseX 9.2.1 will be released this or next week.
Best,
Christian
[1] http://files.basex.org/releases/latest
Quoted text · Daniel · 30 lines
On Thu, May 2, 2019 at 11:02 AM Zimmel, Daniel <D.Zimmel at esvmedien.de> wrote: > > Hi, > > in 9.2 web admin I get an HTTP 400 with any file upload: > > Stopped at D:/BaseX92/webapp/dba/files/file-upload.xqm, 23/10: > [XPTY0004] Cannot convert empty-sequence() to map(xs:string, xs:base64Binary): (). > > The file seems to be sent, but $files is empty. > > Is this a bug? > > This was working with the default settings in 9.0.2 > > Daniel > > Host: localhost:8984 > User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Firefox/60.0 > Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 > Accept-Language: de,en-US;q=0.7,en;q=0.3 > Accept-Encoding: gzip, deflate > Referer: http://localhost:8984/dba/files > Content-Type: multipart/form-data; boundary=---------------------------54472172614771 > Content-Length: 153 > Cookie: JSESSIONID=node0npu7s85e3q5amqmmqir6aak0.node0 > DNT: 1 > Connection: keep-alive > Upgrade-Insecure-Requests: 1 > Cache-Control: max-age=0
ZD
Zimmel, Daniel2 May 2019 11:40 #
Yes, the snapshot seems to fix this.
Thanks, Daniel
Quoted text · Christian Grün · 58 lines
> -----Ursprüngliche Nachricht----- > Von: Christian Grün [mailto:christian.gruen at gmail.com] > Gesendet: Donnerstag, 2. Mai 2019 11:16 > An: Zimmel, Daniel > Cc: BaseX > Betreff: Re: [basex-talk] 9.2: http://localhost:8984/dba/file-upload 400 bad request > > Hi Daniel, > > This reminds me of a problem that has been discussed on the list some > days ago. Could you please check out the latest snapshot and see if > the problem persists [1]? > > BaseX 9.2.1 will be released this or next week. > > Best, > Christian > > [1] http://files.basex.org/releases/latest > > > > > > On Thu, May 2, 2019 at 11:02 AM Zimmel, Daniel <D.Zimmel at esvmedien.de> > wrote: > > > > Hi, > > > > in 9.2 web admin I get an HTTP 400 with any file upload: > > > > Stopped at D:/BaseX92/webapp/dba/files/file-upload.xqm, 23/10: > > [XPTY0004] Cannot convert empty-sequence() to map(xs:string, > xs:base64Binary): (). > > > > The file seems to be sent, but $files is empty. > > > > Is this a bug? > > > > This was working with the default settings in 9.0.2 > > > > Daniel > > > > Host: localhost:8984 > > User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 > Firefox/60.0 > > Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 > > Accept-Language: de,en-US;q=0.7,en;q=0.3 > > Accept-Encoding: gzip, deflate > > Referer: http://localhost:8984/dba/files > > Content-Type: multipart/form-data; boundary=--------------------------- > 54472172614771 > > Content-Length: 153 > > Cookie: JSESSIONID=node0npu7s85e3q5amqmmqir6aak0.node0 > > DNT: 1 > > Connection: keep-alive > > Upgrade-Insecure-Requests: 1 > > Cache-Control: max-age=0
Written for BaseX 9.2. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery