Re: Expected behavior of calling javax.servlet.ServletRequest#getInputStream after javax.servlet.http.HttpServletRequest#getPart

2019-12-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Behrang, On 12/13/19 00:18, Behrang Saeedzadeh wrote: > Unless an email, including its signature, is in violation of the > mailing list policies, no one is in a position to ask participants > to format their emails in a given way or not to include

Re: Expected behavior of calling javax.servlet.ServletRequest#getInputStream after javax.servlet.http.HttpServletRequest#getPart

2019-12-13 Thread Konstantin Kolinko
пт, 13 дек. 2019 г. в 08:18, Behrang Saeedzadeh : > > Unless an email, including its signature, is in violation of the mailing > list policies, no one is in a position to ask participants to format their > emails in a given way or not to include their email signatures. I suggest > reading [...]

Re: Expected behavior of calling javax.servlet.ServletRequest#getInputStream after javax.servlet.http.HttpServletRequest#getPart

2019-12-12 Thread Behrang Saeedzadeh
Unless an email, including its signature, is in violation of the mailing list policies, no one is in a position to ask participants to format their emails in a given way or not to include their email signatures. I suggest reading https://www.apache.org/foundation/policies/conduct.html and

Re: Expected behavior of calling javax.servlet.ServletRequest#getInputStream after javax.servlet.http.HttpServletRequest#getPart

2019-12-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Behrang, On 12/12/19 03:56, Behrang Saeedzadeh wrote: > Chris, > > 1) Does it make sense to call ServletRequest#getInputStream after > ServletRequest#getReader? No, and consequently it will throw > IllegalStateException. 2) Does it make sense to

Re: Expected behavior of calling javax.servlet.ServletRequest#getInputStream after javax.servlet.http.HttpServletRequest#getPart

2019-12-12 Thread Behrang Saeedzadeh
Chris, 1) Does it make sense to call ServletRequest#getInputStream after ServletRequest#getReader? No, and consequently it will throw IllegalStateException. 2) Does it make sense to call ServletRequest#getInputStream after ServletRequest#getPart/s? No, but it returns an empty stream instead of

Re: Expected behavior of calling javax.servlet.ServletRequest#getInputStream after javax.servlet.http.HttpServletRequest#getPart

2019-12-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 André, On 12/10/19 16:47, André Warnier (tomcat/perl) wrote: > On 10.12.2019 15:31, Christopher Schultz wrote: >> -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 >> >> Behrang, >> >> On 12/8/19 05:18, Behrang Saeedzadeh wrote: >>> If I call

Re: Expected behavior of calling javax.servlet.ServletRequest#getInputStream after javax.servlet.http.HttpServletRequest#getPart

2019-12-11 Thread Konstantin Kolinko
ср, 11 дек. 2019 г. в 13:06, Behrang Saeedzadeh : > > Thanks Andre for explaining it much better than I did. > > I posted this to Jakarta EE's mailing list too: > https://www.eclipse.org/lists/jakarta.ee-community/msg01477.html > > I think at least the JavaDocs comments and the spec need minor

Re: Expected behavior of calling javax.servlet.ServletRequest#getInputStream after javax.servlet.http.HttpServletRequest#getPart

2019-12-11 Thread Behrang Saeedzadeh
Thanks Andre for explaining it much better than I did. I posted this to Jakarta EE's mailing list too: https://www.eclipse.org/lists/jakarta.ee-community/msg01477.html I think at least the JavaDocs comments and the spec need minor amendments to document this expected behaviour clearly. Best

Re: Expected behavior of calling javax.servlet.ServletRequest#getInputStream after javax.servlet.http.HttpServletRequest#getPart

2019-12-10 Thread tomcat/perl
On 10.12.2019 15:31, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Behrang, On 12/8/19 05:18, Behrang Saeedzadeh wrote: If I call javax.servlet.ServletRequest#getInputStream after having called javax.servlet.http.HttpServletRequest#getPart, even without performing

Re: Expected behavior of calling javax.servlet.ServletRequest#getInputStream after javax.servlet.http.HttpServletRequest#getPart

2019-12-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Behrang, On 12/8/19 05:18, Behrang Saeedzadeh wrote: > If I call javax.servlet.ServletRequest#getInputStream after having > called javax.servlet.http.HttpServletRequest#getPart, even without > performing any operations on the given part, I am

Expected behavior of calling javax.servlet.ServletRequest#getInputStream after javax.servlet.http.HttpServletRequest#getPart

2019-12-08 Thread Behrang Saeedzadeh
Hi, If I call javax.servlet.ServletRequest#getInputStream after having called javax.servlet.http.HttpServletRequest#getPart, even without performing any operations on the given part, I am getting an empty stream (0-bytes). Is this in compliance with the spec? Best regards, { "blog" :