Migration fails if more than one user has the same quota
The stacktrace is:
net.sf.basedb.core.ItemNotFoundException: Item not found: Quota[id=0] at net.sf.basedb.core.Quota.getById(Quota.java:140) at net.sf.basedb.clients.migrate.QuotaTransfer.getQuotaForTotal(QuotaTransfer.java:101) at net.sf.basedb.clients.migrate.UserTransfer.finalizeQuota(UserTransfer.java:320) at net.sf.basedb.clients.migrate.Migrater.run(Migrater.java:204) at net.sf.basedb.clients.migrate.Migrater.main(Migrater.java:602)
The migration will create new quota items, but only one for a given amount of bytes. The migration will detect if more than one user has the same quota and re-use an already existing quota. The problem is that the code for re-use assumes that the quota has already been saved to the database. In this case it has not and the migration should not try to load it.
Note! This step is not a critical one. Everything has already been transfered. The only remaining thing is to set the quota for users. The failure in this step will cause all users to remain at unlimited quota.