Home · About · Download · Documentation · Getting Help · Google+

Ticket #57 (new task)

Opened 12 months ago

Last modified 12 months ago

file removed from datastore, re-created as new object id

Reported by: fernsler Owned by: gmk
Priority: minor Milestone:
Component: provision Version:
Keywords: Cc: fernsler

Description

I'm not sure this is even a bug, but invalid/non-existent fileids do not get removed from node objects.

If you "file edit file" and create object 35, then use provision --fileadd to add it to a node then later 'file delete file' that was object 35, the node's(s') fileids will still point to object 35.

This threw me for a loop when I recreated what was object 35, and it wound up being new object 38. I had to re-run the same exact provision --fileadd command to add it back to fileids.

Change History

comment:1 Changed 12 months ago by fernsler

"to add it back to fileids." -- more rather, to add new object 38 to fileids.

comment:2 Changed 12 months ago by gmk

OK, I think the command "file delete" should also iterate through all nodes and delete the link to that file OR it should bomb out and state that the file is linked to, and thus can not be deleted.

Thoughts on which is preferred?

comment:3 Changed 12 months ago by fernsler

The former, as long as it warns me it's going to do that and gives me the option to bomb out of it.
I'm a lazy control freak, and this would save me the trouble of having to do the --filedel.

Note: See TracTickets for help on using tickets.