Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

should not add _tmpDir in write at MultiPartInputStreamParser.java @ line 292. #2305

Closed
sciaz opened this issue Mar 8, 2018 · 1 comment
Closed

Comments

@sciaz
Copy link

sciaz commented Mar 8, 2018

public void write(String fileName) throws IOException
{
if (_file == null)
{
_temporary = false;

            //part data is only in the ByteArrayOutputStream and never been written to disk
            **_file = new File (_tmpDir, fileName);**

            BufferedOutputStream bos = null;
            try
            {
                bos = new BufferedOutputStream(new FileOutputStream(_file));
                _bout.writeTo(bos);
                bos.flush();
            }
            finally
            {
@sciaz sciaz changed the title should not add MultiPartInputStreamParser.this._tmpDir in write at Part implements,line 635? should not add _tmpDir in write at MultiPartInputStreamParser.java @ line 292. Mar 8, 2018
@joakime
Copy link
Contributor

joakime commented Mar 8, 2018

Duplicate of #1337 - (The servlet spec says otherwise)

@joakime joakime closed this as completed Mar 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants