id summary reporter owner description type status priority milestone component version resolution keywords cc drp_resources i_links o_links remaining_time sprint 7752 Bug: web delete/refresh issues jamoore atarkowska " === Initial error sequence === While testing #5749 I ran into an odd progression of events. I'll try to summarize them here, before I start reproducing (to follow). ==== Setup ==== * In the web (using Chris' 7750_web_config branch, just merged into develop), I created two projects and then copied one dataset into both of them. * I selected both projects and deleted them. * In the activities window, I saw an error which I wanted to reproduce on the command-line. (See [https://trac.openmicroscopy.org.uk/ome/attachment/ticket/7752/web-jan12-errondelete.png this screenshot], taken later) * I went to the command-line and reproduced, but it was only a warning, not an error (see ""Command-line delete"" below) * I went back to the web UI, the error was gone. I.e. the UI had been updated with no more error. (I didn't initially have a screen shot of that, found later) * Knowing that I had mucked around on the command-line, I refreshed. ==== What went wrong ==== * '''Either''' just before the refresh, during, or just after (sorry, can't remember), I noticed the ""please login"" screen in the third panel. (See [https://trac.openmicroscopy.org.uk/ome/attachment/ticket/7752/web-jan12-logout-rightside.png screenshot]) * I then went about trying to reproduce the project/datasets but I had a number of XMLHTTPRequest errors. (see [https://trac.openmicroscopy.org.uk/ome/attachment/ticket/7752/web-jan12-xmlerr.log non-debug log]) * After those errors ended, I thought things were back to normal, so I tried the delete again. This time, I reproduced the error in #5749 (also captured in log) My very inexpert thought at the moment is that somewhere a reference is being held to a delete handle, but I'm going to try to reproduce as much of the above as I can now. === After trying to reproduce === After all of the above, I restarted the server with `omero.web.debug=true`, but I never reproduced the `XMLHTTPRequest`. I was able, however, to reproduce * the problem in #3021/#5749, namely the `ObjectNotExistException` (See [https://trac.openmicroscopy.org.uk/ome/attachment/ticket/7752/web-jan12-objectnotexist.png this screenshot]) * as well as the issues in #3142 (See [https://trac.openmicroscopy.org.uk/ome/attachment/ticket/7752/web-jan12-sorryprojDNE.png this screenshot]), * and, the error message which is just a warning message, see #6003 === Suggestions === There may not be anything that can be done about the `XMLHttpRequest`. Sorry that I couldn't reproduce, but all of the other issues it would be nice if they could be looked into. i.e. * prevent the errors from showing up in the activities window. Warnings should not be considered errors in any counts. * prevent the ""sorry, that object does not exist"" from showing up in the right panel * prevent the ""please login"" from showing up in the right panel (this may be harder, but I understand it's already in progress) * prevent the `ObjectNotExistException` from being thrown. If this would be better suited as a story, feel free. Also, if from a log file it is not clear at what time certain actions took place, I suggest increasing logging. I'd be glad to re-test once that's in place. === Extra information === ==== Previously filed tickets ==== * #3021 - `ObjectNotExistException` on `delete.errors()` * #5749 - `ObjectNotExistException` on `delete.errors()` * #3142 - ""sorry, dataset does not exist"" * #6003 - warnings v. errors ==== Command-line delete ==== This is an example of the warnings typical for #6003: {{{ @7750_web_config ~/git/dist $ bin/omero hql ""select p from Project p"" Using session b8f43b0e-5832-4ddd-ace8-58d2137197af (root@gretzky.openmicroscopy.org.uk:4064). Idle timeout: 10.0 min. Current group: system # | Class | Id | name | details ---+----------+------+-------------+----------------- 0 | ProjectI | 3618 | New project | owner=0;group=0 1 | ProjectI | 3619 | New project | owner=0;group=0 (2 rows) To see details for object, enter line number. To move ahead one page, enter 'p' To re-display list, enter 'r'. To quit, enter 'q' or just enter. q @7750_web_config ~/git/dist $ bin/omero delete /Project:0 /Project:1 Using session b8f43b0e-5832-4ddd-ace8-58d2137197af (root@gretzky.openmicroscopy.org.uk:4064). Idle timeout: 10.0 min. Current group: system ^CCancelled @7750_web_config ~/git/dist $ bin/omero delete /Project:3618 /Project:3619 Using session b8f43b0e-5832-4ddd-ace8-58d2137197af (root@gretzky.openmicroscopy.org.uk:4064). Idle timeout: 10.0 min. Current group: system Deleting /Project 3618... ok warning: ConstraintViolation: fkprojectdatasetlink_child_dataset Deleting /Project 3619... ok @7750_web_config ~/git/dist $ bin/omero hql ""select p from Project p"" Using session b8f43b0e-5832-4ddd-ace8-58d2137197af (root@gretzky.openmicroscopy.org.uk:4064). Idle timeout: 10.0 min. Current group: system # --- (0 rows) To see details for object, enter line number. To move ahead one page, enter 'p' To re-display list, enter 'r'. To quit, enter 'q' or just enter. q @7750_web_config ~/git/dist $ bin/omero hql ""select p from Dataset p"""" > @7750_web_config ~/git/dist $ bin/omero hql ""select p from Dataset p"" Using session b8f43b0e-5832-4ddd-ace8-58d2137197af (root@gretzky.openmicroscopy.org.uk:4064). Idle timeout: 10.0 min. Current group: system # --- (0 rows) To see details for object, enter line number. To move ahead one page, enter 'p' To re-display list, enter 'r'. To quit, enter 'q' or just enter. }}} " task closed major OMERO-4.4 Web fixed python-team@… 0 2012-01-31 (7)