Bug 65233

Summary: Have mod_dav trigger an action on file manipulation
Product: Apache httpd-2 Reporter: Rob <apache>
Component: mod_davAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: NEW ---    
Severity: enhancement    
Priority: P2    
Version: 2.4-HEAD   
Target Milestone: ---   
Hardware: All   
OS: FreeBSD   

Description Rob 2021-04-11 21:28:42 UTC
Hi,

It would be nice if mod_dav could trigger an action when a file or directory is added, modified or deleted. This would enable me to run a virus scanner, send out an email or an sms, copy the file to a version control system, etc. I'm thinking of a simple setting like

DAVNotify /usr/local/bin/davtrigger.sh

This would allow me to execute any action I like.

The command in question should then probably be called with these arguments:
- the manipulation (add, modify, move, delete, ...)
- username of the user who made the manipulation
- the path to the manipulated file

Having this would really make me happy. Thanks for considering.

Cheers,
  Rob LA LAU