marubinotto / Piggydb

Piggydb is a Web notebook application that provides you with a platform to build your knowledge personally or collaboratively.
http://piggydb.net/
Apache License 2.0
149 stars 35 forks source link

Piggy-DB saving files in different drive #5

Open johnsim3 opened 10 years ago

johnsim3 commented 10 years ago

Hello,

I would like to report what appears to be an issue in Piggy-DB,

I have installed Piggy-DB in a server with a Tomcat-Server and all seems to be working fine, except for one thing.

I have configured the piggy-db database to be stored in the E:\ drive of the server and this is working fine.

In this folder:

E:\piggydb\piggydb

I can find the following files (using "Copy as path"):

"E:\piggydb\piggydb\piggydb.trace.db"
"E:\piggydb\piggydb\piggydb.h2.db"
"E:\piggydb\piggydb\piggydb.lock.db"

When now adding file-fragments I would expect attached files to be stored in this folder:

E:\piggydb\piggydb\piggydb-files

But I find the files attached to the file-fragments stored in this folder instead:

C:\piggydb\piggydb\piggydb-files

For example I can find the following files(using "Copy as path"):

"C:\piggydb\piggydb\piggydb-files\7.jpg"
"C:\piggydb\piggydb\piggydb-files\10.jpg"
"C:\piggydb\piggydb\piggydb-files\25.pdf"
"C:\piggydb\piggydb\piggydb-files\26.jpg"
"C:\piggydb\piggydb\piggydb-files\27.jpg"
...

The content of my application.properties file:

piggydb.enableClientAddressAuth=false
piggydb.enableUserAgentAuth=false

piggydb.enableAnonymous=true
piggydb.entity.changeableOnlyForCreator=false

piggydb.fragmentsView.defaultScale=

piggydb.database.prefix=file://E:/piggydb/piggydb
piggydb.database.name=
jdbc.username=sa
jdbc.password=

Thank you for your time!

marubinotto commented 10 years ago

This is probably a bug. I'll fix it in later versions.

Thank you for your report!