When filter is configured for "upload all matches" an empty zip or tar failure is the result.
I have traced to:
Code: Select all
if ( $arch_error = !Archive::Tar->create_archive( $arch_file, ZM_UPLOAD_ARCH_COMPRESS, <*$arch_image_path> ) )
If I expand
Code: Select all
$arch_image_path
Code: Select all
-rw-r--r-- 1 www-data www-data 25674 2008-09-28 18:17 /usr/share/zoneminder/events/9/20776/287-capture.jpg
-rw-r--r-- 1 www-data www-data 25887 2008-09-28 18:17 /usr/share/zoneminder/events/9/20776/288-capture.jpg
-rw-r--r-- 1 www-data www-data 25687 2008-09-28 18:17 /usr/share/zoneminder/events/9/20776/289-capture.jpg
Code: Select all
09/28/08 22:38:49.583468 zmfilter[28598].INF [[gp0] tar cprs]
09/28/08 22:38:49.583954 zmfilter[28598].INF [Creating upload file '/tmp/BT1-20777.tar.gz']
09/28/08 22:38:49.584261 zmfilter[28598].INF [[gp1] arch file '/tmp/BT1-20777.tar.gz' path '/usr/share/zoneminder/events/9/20777/{*analyse,*capture}.jpg']
09/28/08 22:38:49.585837 zmfilter[28598].ERR [Tar error: Cowardly refusing to create empty archive!
]
- The [gpN] lines are my testing
Help please.