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

Suitcase errors on reset app server with empty server #50

Closed
jbeorse opened this issue Sep 29, 2017 · 2 comments
Closed

Suitcase errors on reset app server with empty server #50

jbeorse opened this issue Sep 29, 2017 · 2 comments
Assignees
Labels
bug Something isn't working High-Priority Suitcase ODK-X Suitcase

Comments

@jbeorse
Copy link

jbeorse commented Sep 29, 2017

Software and hardware versions

Suitcase ODK 2.0.0 rev 214

Problem description

Suitcase shows an error if you try to reset an app server that is empty. It doesn't crash, it just shows an error message. Additionally it prints a log message:

deleteTableDefinition: client response is 404:
java.lang.IllegalStateException: Unexpected status code: 404
	at org.opendatakit.suitcase.net.ResetTask.doInBackground(ResetTask.java:62)
	at org.opendatakit.suitcase.net.ResetTask.doInBackground(ResetTask.java:15)
	at javax.swing.SwingWorker$1.call(SwingWorker.java:295)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at javax.swing.SwingWorker.run(SwingWorker.java:334)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)

Steps to reproduce the problem

Open suitcase. Select Reset from the Upload tab. Wait for it to complete. Select Reset again. When it gets to step 2 that deletes table definiitions, you will immediately get an error.

Expected behavior

The end goal of a reset is to have an empty server, so we should show no error in this case. We should just silently continue as long as we end up with that empty server. The error implies that the server failed to be cleaned.

@wbrunette wbrunette transferred this issue from getodk/getodk Apr 9, 2019
@jbeorse jbeorse added bug Something isn't working High-Priority Suitcase ODK-X Suitcase labels Feb 11, 2020
@ADISKING1
Copy link

Hey @linl33, I would like to work on this and try and fix this bug!

@linl33
Copy link
Member

linl33 commented Mar 14, 2021

Hi @ADISKING1!
You may go ahead. Thank for taking an interest in ODK-X.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working High-Priority Suitcase ODK-X Suitcase
Projects
None yet
Development

No branches or pull requests

3 participants