Hi all,

I ran into a little problem earlier today.

Basically, renaming a directory doesn't work. I'm not sure whether this
is a bug or a configuration error, though.

The problem is this: the way my Domain.xml file is at the moment, the
basic directory structure (fairly complex) is created by slide at first
startup. However, we don't define any <revision> tags on the
directories. Is this wrong (i.e. are directories required to be
versioned like this?). 

The result of this is that something in MacroImpl.java throws a
RevisionDescriptorNotFoundException, and things get screwed up (actually
it appears to cause a corrupted database, though that may have been
something else). This is easily fixed by having the chunk of code
dealing with copying revisions be inside a try/catch block, and catch
that exception (this works, I just tested it). I'm not sure, though,
whether this is correct, because I'm not sure whether it's MEANT to be
legal to have revision-less objects. It's not difficult to solve either
way, but I'd like to do the right thing.

I'll also note at this point that the example Domain.xml doesn't define
revisions on any of the directories it creates - but, on the other hand,
it only creates the root, and /users, /actions, and /files - none of
which would be expected to ever change. 

Any advice would be welcomed.

Michael

Reply via email to