Cannot create a new bibliography
Creating new bibliography “test” under my library (http://researchr.org/library/bibliographies) results in a redirect to http://researchr.org/bibliography/gabrilkonat-test with contents:
That page does not exist! Maybe you can find what you are looking for using the search page.
Creating bibliographies under a group works though.
Possibly related to https://yellowgrass.org/issue/researchr/241
Submitted by Gabriël Konat on 13 August 2012 at 15:22
Issue Log
from the catalina log:
Created bibliography 'gabrilkonat-incremental-static-analysis' for the 'gabrilkonat' group found library bib.init() No entity with this identity found: gabrilkonat-incremental-static-analysis exception occured while handling request URL: http://researchr.org/bibliography/gabrilkonat-incremental-static-analysis exception message: No entity with this identity found: gabrilkonat-incremental-static-analysis java.lang.RuntimeException: No entity with this identity found: gabrilkonat-incremental-static-analysis at webdsl.generated.templates.BibliographyPage.loadArguments(BibliographyPage.java:446) at webdsl.generated.templates.BibliographyPage.initVarsAndArgs(BibliographyPage.java:57) at webdsl.generated.templates.BibliographyPage.serve(BibliographyPage.java:90) at utils.DispatchServletHelper.handlePage(DispatchServletHelper.java:1095)
I observe the same behavior when logged in with my account.
I think we need to look at differences (in the db) between a usergroup of the user itself and one created by the user. Afaik the create bibliography functions that are used in both contexts are the same, but only the one with a usergroup not created by the user itself is failing. And only when using innodb.
Now that this issue is fixed, we get more output during bib creation:
I get the message:
“requires cannot be group itself”
There seems to be an inconsistency in the application:
usergroup-data.app
entity Usergroup { .... requires -> Usergroup (validate(requires != this || requires == allGroup, "requires cannot be group itself")) ... }
and further down
... personal := createUsergroup(key); personal.requires := personal; ...
Note that the current database already contains such usergroups that have itself as ‘requires’.
Should be fixed in revision 744 by relaxing the validation constraint on requires for personal groups.
Log in to post comments