Bug #1386
closedError when local and network save done for a docid that already exsisting
0%
Description
To reproduce the bug - create a new document with docid same as docid which
already exsists in your directory. I am not sure how it gets the same docid -
but it has happened 3-4 times for me. So if I have a document with docid
sid.9.1 in data directory and morpho creates a new document with same docid.
-> So the first problem is that while generating the new docid - it doesnt
check with metacat server what was the last number used for creating a
document. I am not sure if it is supposed to do that because what will happen
when somebody is creating datapackages offline.
-> Second problem is the following - now somehow I have created a document with
same docid as a document that already exsists BOTH in data directory and
metacat server. I do a local and netword save. It does the local save - where
it removes the document which exsisted earlier. So I have erased an earlier
exsisting document. Secondly, it doesn't do the network save. I tried to open
the same document over the network - I got the previously saved document. Also
it never asked me to log in. So I am not sure if it even tries to do a network
save.