no plausibility check for rule sets
Bug #1021304 reported by
Matthias Ronge
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Goobi.Production | Status tracked in 1.10 | |||||
1.10 |
New
|
Undecided
|
Unassigned | |||
1.8 |
Fix Released
|
High
|
Unassigned |
Bug Description
− The rule sets dialog allows arbitrary input. It is not tested whether the file named exists.
− Rule sets can be deleted without a check whether they are associated with processes. Doing so in error results in processes that cannot be edited any more; the application is blocked and you have to reload the start link manually.
Related branches
lp:~slub.team/goobi-production/bug-1021304
- Henning Gerhardt: Approve
-
Diff: 143 lines (+58/-12)4 files modifiedconfig/messages_de.properties (+2/-0)
config/messages_en.properties (+2/-0)
src/de/sub/goobi/forms/RegelsaetzeForm.java (+30/-10)
src/de/sub/goobi/persistence/RegelsatzDAO.java (+24/-2)
summary: |
- no plausibility check when deleting rule sets + no plausibility check for rule sets |
description: | updated |
To post a comment you must log in.
Result of opening a process where the rule set registration has been deleted:
No row with the given identifier exists: [de.sub. goobi.beans. Regelsatz# 9]
org.hibernate. ObjectNotFoundE xception: No row with the given identifier exists: [de.sub. goobi.beans. Regelsatz# 9] impl.SessionFac toryImpl$ 2.handleEntityN otFound( SessionFactoryI mpl.java: 419) proxy.AbstractL azyInitializer. checkTargetStat e(AbstractLazyI nitializer. java:154) proxy.AbstractL azyInitializer. initialize( AbstractLazyIni tializer. java:143) proxy.AbstractL azyInitializer. getImplementati on(AbstractLazy Initializer. java:174) proxy.pojo. javassist. JavassistLazyIn itializer. invoke( JavassistLazyIn itializer. java:190) goobi.beans. Regelsatz_ $$_javassist_ 0.getPreference s(Regelsatz_ $$_javassist_ 0.java) goobi.metadaten .Metadaten. XMLlesenStart( Metadaten. java:583) goobi.metadaten .Metadaten. XMLlesen( Metadaten. java:540)
at org.hibernate.
at org.hibernate.
at org.hibernate.
at org.hibernate.
at org.hibernate.
at de.sub.
at de.sub.
at de.sub.
There are no checks on delete, if the rule set registration is still used.