Bug Stardog will delete system files

1 view
Skip to first unread message

Zachary Whitley

unread,
Apr 22, 2016, 1:00:44 PM4/22/16
to Stardog
I noticed that Stardog puts database directories into $STARDOG_HOME and if you set $STARDOG_HOME to be the base directory that you unziped stardog you end up with the database directories alongside your system directories such as client, bin, docs, system, and webconsole. No problem there. So I wondered, what would happen if you created a database with the same name as one of those directories. I think I tried "system" first and got an error message "reserved database name". Undeterred I tried "client". It worked and just littered the client directory with the database files but when I went to delete the database it deleted the entire directory erasing all the Stardog client flies as well.




Zachary Whitley

unread,
Apr 22, 2016, 1:04:45 PM4/22/16
to Stardog
I should follow up that a simple solution would be to simply set $STARDOG to point to the install and have $STARDOG_HOME point to a separate directory.
Reply all
Reply to author
Forward
0 new messages