← Back to team overview

dhis2-devs team mailing list archive

[Bug 1399635] [NEW] (OUST) Deletion of orgunit elsewhere causes OUST to fail

 

Public bug reported:

DHIS 2.17 and 2.18 trunk

Reproduce:
1. Load orgunits into web session somehow (e.g. open organisationunit maintanence and view the orgunit list).
2. Delete an orgunit using web api (or directly in DB)
3. Re-load any page which displays the orgunit selection tree

The tree will not display fully and an exception is thrown indicating
that the deleted orgunit could not be fetched from DB.

Also, the tree seems to not load for any user, not just the current one.

Clearing the second level cache before accessing the OUST or orgunit
list page DOES fix the problem.

To fix, the state held in the orgunit selection tree must be updated
and/or reloaded on deletion of an orgunit elsewhere to ensure no dead
references. Alternatively, the version could somehow be held alongside
the tree and checked on load to evict any corrupt objects (tried this,
couldn't get it to work, still possible probably).

** Affects: dhis2
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1399635

Title:
  (OUST) Deletion of orgunit elsewhere causes OUST to fail

Status in DHIS 2:
  New

Bug description:
  DHIS 2.17 and 2.18 trunk

  Reproduce:
  1. Load orgunits into web session somehow (e.g. open organisationunit maintanence and view the orgunit list).
  2. Delete an orgunit using web api (or directly in DB)
  3. Re-load any page which displays the orgunit selection tree

  The tree will not display fully and an exception is thrown indicating
  that the deleted orgunit could not be fetched from DB.

  Also, the tree seems to not load for any user, not just the current
  one.

  Clearing the second level cache before accessing the OUST or orgunit
  list page DOES fix the problem.

  To fix, the state held in the orgunit selection tree must be updated
  and/or reloaded on deletion of an orgunit elsewhere to ensure no dead
  references. Alternatively, the version could somehow be held alongside
  the tree and checked on load to evict any corrupt objects (tried this,
  couldn't get it to work, still possible probably).

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1399635/+subscriptions


Follow ups

References