When you share a space with the channel an entry is created in storage_available_spaces table. For each user or group with read, write or manage permission granted an entry is created in storage_targets table. Finally, each time a user references this space a entry is created in storage_users_preferences table. Unfortunately, some time, for example when the folder is deleted form an other WevDAV client (Windows for example), the database isn't updated and become durty. This target have to clean CStockage channel database. For this, for each entry in storage_available_spaces, it try to get the WebDAV URL. If it get a 404 HTTP error it clean the database for this space.
You have parameters to adapt the target action.
This parameters can be found in the build.properties file.
firstURL is the URL to find in the beginning of the server_name column value of storage_available_spaces table.
Note
If you want to check an entire server you just give a short value (ex: http://server.domain.fr:80/files).
If you want to check an specific folder you can give a long url (ex: http://server.domain.fr:80/files/partages/Enseignement/IUT_de_Rennes/GEA/Logiciels/EBP/2006/Societes/065/)
secondURL is the URL that will replace firstURL during the get.
Note
This is important because, some time, CStockage Channel used an URL with trusted access and you want to used this target with an other authentication mechanism on an other URL. Be careful with this URL because, in case or error, you can have a lot of 404 error and drop all your database ! Please first use mode=B for test.
mode is the execution mode for the target:
B: Blank: do not do anything (defaut) --> You just have log
I: Interactive: ask before each delete of space --> you have to answer y before each SQL delete
F: Force: do not ask user before deleting --> useful for batch mode. Use carefully !!!
user and pwd is useful if you want to give user and password at http get time.
Note
Generally you don't have to give this parameters and just use an unauthenticated mode. When folder exist you have an 403 error (no effect) and when folder doesn't exist you have an 404 error.
ant RemoveUnused