Comparison

spec/scansion/http_upload.scs @ 11319:a4b299e37909

mod_http_file_share: Reject invalid file sizes
author Kim Alvefur <zash@zash.se>
date Wed, 27 Jan 2021 00:36:49 +0100
parent 11315:c52fcea39c8e
child 11360:f36a2e54ac81
comparison
equal deleted inserted replaced
11318:3b16aba6285f 11319:a4b299e37909
36 </file-too-large> 36 </file-too-large>
37 </error> 37 </error>
38 </iq> 38 </iq>
39 39
40 Romeo sends: 40 Romeo sends:
41 <iq to='upload.localhost' type='get' id='497c20dd-dda2-4feb-8199-7086e203de46' xml:lang='en'>
42 <request content-type='text/plain' filename='negative.dat' xmlns='urn:xmpp:http:upload:0' size='-1000'/>
43 </iq>
44
45 Romeo receives:
46 <iq id='497c20dd-dda2-4feb-8199-7086e203de46' from='upload.localhost' type='error'>
47 <error type='modify'>
48 <bad-request xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
49 <text xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'>File size must be positive integer</text>
50 </error>
51 </iq>
52
53 Romeo sends:
41 <iq to='upload.localhost' type='get' id='ac56d83f-a627-4732-8399-60492d1210b6' xml:lang='en'> 54 <iq to='upload.localhost' type='get' id='ac56d83f-a627-4732-8399-60492d1210b6' xml:lang='en'>
42 <request content-type='text/plain' filename='invalid/filename.dat' xmlns='urn:xmpp:http:upload:0' size='1000'/> 55 <request content-type='text/plain' filename='invalid/filename.dat' xmlns='urn:xmpp:http:upload:0' size='1000'/>
43 </iq> 56 </iq>
44 57
45 Romeo receives: 58 Romeo receives: