danmunn / redmine_dmsf

Fork of svn repository for redmine_dmsf
GNU General Public License v2.0
413 stars 193 forks source link

Ignored files patterns and WEBDAV #1446

Closed ChrisABailey closed 1 year ago

ChrisABailey commented 1 year ago

Should the "Ignore files pattern" affect files created via the WEBDAV interface?

I'm using a mac and after copying a number of PDFs into redmine using the WEBDAV interface I now have 0 byte files starting with "." including .DS Store which has a filename showing as ".DS Store_ver0.1.DSStore" and other files starting with .

These files have no "Action" menu so you cannot delete them from the web interface. I am on a mac and from what I can tell, there is no way to force finder to show these files.

I would have thought these are what get filtered out by the ignore pattern in the setting and I have tried modifying the pattern but the changes have no effect. I also tried to ignore them using the No versioning files patterns but they remain.

Is there some way to change this in my settings so it won't happen in the future and is there some way to clean up what is already listed?

picman commented 1 year ago

This setting should solve it. What do you have set there? image

ChrisABailey commented 1 year ago

That is what is currently set. Does that value affect files that are already in the database or only affect what happens when the original PUT was performed? I'm not sure if it has always been that way.

I just tried an experiment on a single file. There is one file in one folder that shows in the WEBDAV as "._Calibration_Test_Jig_Pic.111422.png"

image

so I just modified the Ignore files patterns to be: image

I refresh the the redmine page and the file still shows up image

picman commented 1 year ago

It affects new uploads only. You will have to delete existing files manually via WebDAV.

ChrisABailey commented 1 year ago

Thanks, I can do that. Based on this feedback I believe I should change the ignore files pattern to: ^(\._.*|\.DS_Store$|Thumbs.db$) to catch these extra files.