EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #02583
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: Restored users do not sort properly
- To: eprints-tech@ecs.soton.ac.uk
- Subject: [EP-tech] Re: Restored users do not sort properly
- From: Florian Heß <hess@ub.uni-heidelberg.de>
- Date: Fri, 31 Jan 2014 15:28:50 +0100
Am 31.01.2014 14:43, schrieb Sebastien Francois:
Hi Florian, Perhaps your ordering issue relates to the following issue: https://github.com/eprints/eprints/issues/48
Hi sebastien, Yes, the patch looks promising. :-)
Your answer makes me wonder if that will really be complete then. I think I'll gather the required dependencies from the sql dump in order to have complete control over what is inserted. May VIM support me on this impossible quest.About exporting passwords: perhaps you can patch the relevant code in EPrints for the duration of your export (MetaField::Secret::to_sax presumably).
No, I hoped EPrints would silently recreate them, such a //= kind of thing. When e-prints or users are created, those dependent entities are created as well. So naive-me would wish the system would make sure, on the epadmin recommit command at least, that every dataobj is fully functional and lacks of nothing the system would likewise care for when creating it anew via the web interface. But then, as a programmer's notion, this requirement yet smells of smelling code unless planned and thought-over and drafted for a month or so. :-)When you INSERT'ed the missing users, did you also INSERT data into the aux. tables (user_roles etc)?
Kind regards Florian
Seb. On 31/01/14 13:35, Florian Heß wrote:Hello everyone, After removing a number of users by accident using the EPrints 3.3.10 API, I restored them from our backup via piping INSERT INTO `users` commands into mysql database. That worked, but when I navigate to the list of all users in the web interface (Manage Records > Users) and click there on the username column, the list is reordered to whatever except by username. I tried the other columns, they fail to sort properly either. What did I miss? - epadmin reorder $repo user - epadmin recommit $repo user - epadmin cleanup_cachemaps $repo - epadmin reindex $repo user - epadmin reorder $repo user - epadmin rehash $repo user All these were to no avail. Now I would try reimporting all users with XML, but I hesitate because in the XML output file the password hashes are missing. How to include them? Had a glance into the sources and infered from EPrints::MetaField::Secret::to_sax() that --arg show_secrets=1 to the XML export would do, but apparently I was wrong: "Plugin Export::XML does not accept argument show_secrets" Appreciate your help very much! Kind regards Florian*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech *** Archive: http://www.eprints.org/tech.php/ *** EPrints community wiki: http://wiki.eprints.org/ *** EPrints developers Forum: http://forum.eprints.org/
-- UB Heidelberg (Altstadt) Plöck 107-109, 69117 HD Abt. Informationstechnik http://www.ub.uni-heidelberg.de/
- References:
- [EP-tech] Restored users do not sort properly
- From: Florian Heß <hess@ub.uni-heidelberg.de>
- [EP-tech] Re: Restored users do not sort properly
- From: Sebastien Francois <sf2@ecs.soton.ac.uk>
- [EP-tech] Restored users do not sort properly
- Prev by Date: [EP-tech] Re: Running EPrints in VirtualBox Localhost
- Next by Date: [EP-tech] Re: Running EPrints in VirtualBox Localhost
- Previous by thread: [EP-tech] Re: Restored users do not sort properly
- Next by thread: [EP-tech] Running EPrints in VirtualBox Localhost
- Index(es):