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

Concurrent petition overlaps json response object #2

Open
wideawakening opened this issue Aug 17, 2012 · 0 comments
Open

Concurrent petition overlaps json response object #2

wideawakening opened this issue Aug 17, 2012 · 0 comments

Comments

@wideawakening
Copy link

HI,

First thanks for the Java connector schema for elFinder, it's a nice work to start with.

We're having some problems with the 'AbstractConnectorServlet' implementation, due to the class scope 'json' variable being used over multiple petitions.

This can be easily tested with the 'reload' command on elFinder (2.0-rc1), because it triggers an 'open' and 'parent' command in parallel while most of the commands are sequential. Don't know if this could be a bug but, however, the problem will also exist on concurrent environments.

To solve this we just have to provide the command's json output object when writing the result.

/ / AbstractConnectorServlet#processRequest
output(response, command.isResponseTextHtml(), command.getJson(), command.getResponseWriter());

After creating

AbstractCommand#getJSON()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant