When finished with upload, streamVariable should be disposed.
Now StreamVariable is removed also from streamVariableToSeckey.
https://github.com/vaadin/framework/issues/10695 #10695
}
Map<String, StreamVariable> nameToStreamVar = pidToNameToStreamVariable
.get(connectorId);
- nameToStreamVar.remove(variableName);
+ StreamVariable streamVar = nameToStreamVar.remove(variableName);
+ streamVariableToSeckey.remove(streamVar);
if (nameToStreamVar.isEmpty()) {
pidToNameToStreamVariable.remove(connectorId);
}
fireUploadSuccess(event.getFileName(), event.getMimeType(),
event.getContentLength());
endUpload();
+ if(lastStartedEvent != null)
+ lastStartedEvent.disposeStreamVariable();
}
@Override
}
} finally {
endUpload();
+ if(lastStartedEvent != null)
+ lastStartedEvent.disposeStreamVariable();
}
}
};