<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Jules,<br>
<br>
I haven't seen this until today. <br>
We don't use the library files very often.<br>
<br>
Tomorrow i wil try a fresh install on another server.<br>
<br>
Thanks,<br>
<br>
Rini<br>
<br>
Op 4-10-2012 17:17, Jules schreef:<br>
</div>
<blockquote cite="mid:506DA897.1030207@Zend.To" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
I don't see why you're getting this problem, I don't and I don't
think other people do either.<br>
<br>
<b>Is anyone out there finding the "library files" feature doesn't
work, and get errors when they try to use it?</b><br>
<br>
Are your library files readable by the web server?<br>
<br>
Jules.<br>
<br>
<div class="moz-cite-prefix">On 04/10/2012 15:54, Rini van Zetten
wrote:<br>
</div>
<blockquote cite="mid:506DA31E.10801@arvoo.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
Hi Jules,<br>
<br>
the new_dropoff.tpl is indeed 16504 bytes long, dated 24 may
2012.<br>
<br>
The workaround you suggest did not work.<br>
<br>
If i replace if ($foundsometoscan) with if ($jkffilelist != '
') it works as expected, although the library files are not
scanned.<br>
<br>
it seems that $_FILES[$key]['tmp_name'] is empty.<br>
<br>
Regards,<br>
<br>
Rini<br>
<br>
<div class="moz-cite-prefix">On 04-10-12 15:43, Jules wrote:<br>
</div>
<blockquote cite="mid:506D9275.7010209@Zend.To" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
Odd that you're getting that, I don't at all, library files
work perfectly.<br>
Are you sure you've got the very latest versions of the
templates in your system? If you've modified the template
files at all then it might not have overwritten your modified
template with the latest one. The one of interest here is
new_dropoff.tpl.<br>
<br>
If you are sure that is all correct (size of that file should
be 16504 bytes), then edit NSSDropoff.php and change the chunk
of code around line the "chmod" to this:<br>
<br>
// Call clamdscan on all the files, fail if they are
infected<br>
// If the name of the scanner is set to '' or 'DISABLED'
then skip this.<br>
$jkfclamdscan = $this->_dropbox->clamdscan();<br>
if ($jkfclamdscan != 'DISABLED') {<br>
$jkffilecount = 1;<br>
$jkffilelist = '';<br>
$foundsometoscan = FALSE;<br>
while ( $jkffilecount <= $this->maxFilesKey ) {<br>
$key = "file_".$jkffilecount;<br>
if (array_key_exists($key, $_FILES) &&<br>
array_key_exists('tmp_name', $_FILES[$key])) {<br>
$jkffilelist .= ' ' . $_FILES[$key]['tmp_name'];<br>
$foundsometoscan = TRUE;<br>
}<br>
$jkffilecount++;<br>
}<br>
if ($foundsometoscan) { // Don't do any of this if they
uploaded nothing<br>
exec("/bin/chmod go+r " . $jkffilelist); // Need clamd
to read them!<br>
$jkfinfected = 0;<br>
$jkfoutput = array();<br>
$jkfclam = exec($jkfclamdscan . $jkffilelist,
$jkfoutput, $jkfinfected);<br>
if ($jkfinfected == 1) {<br>
return
$smarty->getConfigVariable('ErrorVirusFound');<br>
}<br>
if ($jkfinfected == 2) {<br>
return
$smarty->getConfigVariable('ErrorVirusFailed');<br>
}<br>
}<br>
}<br>
<br>
If you're not happy working out what to do with that then
don't attempt it. :-)<br>
<br>
Jules.<br>
<br>
<div class="moz-cite-prefix">On 04/10/2012 12:44, Rini van
Zetten wrote:<br>
</div>
<blockquote cite="mid:506D76AD.5060003@arvoo.com" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
Hi Jules,<br>
<br>
When i select a library file to drop i get the message :
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<table class="UD_error" style="color: rgb(22, 38, 55);
font-family: 'Helvetica Neue', Helvetica, Verdana, Arial,
sans-serif; font-size: 13px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing:
normal; line-height: normal; orphans: 2; text-align:
start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-size-adjust: auto; -webkit-text-stroke-width:
0px; " width="50%">
<tbody>
<tr>
<td class="UD_error_title">Upload Error</td>
</tr>
<tr>
<td class="UD_error_message">The attempt to virus-scan
your drop-off failed. Please contact your
administrator for assistance.</td>
</tr>
</tbody>
</table>
<br>
In my apache2 error log this line appears :<br>
/bin/chmod: missing operand after `g+r'<br>
Try `/bin/chmod --help' for more information.<br>
<br>
It's caused by th parameter jkffilelist in NSSDropoff.php
which is empty.<br>
I can place an extra test in this file which skips the virus
scan when the jkffilelist is empty but there may be other
solutions.<br>
<br>
This bug occurs in 4.10 as well as in the 4.11 beta.<br>
<br>
Regards,<br>
<br>
<div class="moz-signature">-- <br>
<b>Rini van Zetten<b><br>
<i>Senior Software Engineer</i><br>
<br>
-------------------------<br>
ARVOO Engineering B.V.<br>
Tasveld 13<br>
3417 XS Montfoort<br>
The Netherlands<br>
<br>
Tel : 0348-418412<br>
<br>
E-mail : <a moz-do-not-send="true"
href="mailto:rini@arvoo.com">rini@arvoo.com</a><br>
<br>
Web : <a moz-do-not-send="true"
href="http://www.arvoo.com">www.arvoo.com</a><br>
</b></b></div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
ZendTo mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:ZendTo@zend.to">ZendTo@zend.to</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto">http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto</a></pre>
<br>
<pre class="moz-signature" cols="72">Jules
--
Julian Field MEng MBCS CITP CEng
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.Zend.To">www.Zend.To</a>
Twitter: @JulesFM
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
'When a man points a finger at someone else, he should remember
that four of his fingers are pointing at himself.' - Louis Nizer
</pre>
</blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
ZendTo mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:ZendTo@zend.to">ZendTo@zend.to</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto">http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto</a></pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<b>Rini van Zetten<b><br>
<i>Senior Software Engineer</i><br>
<br>
-------------------------<br>
ARVOO Engineering B.V.<br>
Tasveld 13<br>
3417 XS Montfoort<br>
The Netherlands<br>
<br>
Tel : 0348-418412<br>
<br>
E-mail : <a moz-do-not-send="true"
href="mailto:rini@arvoo.com">rini@arvoo.com</a><br>
<br>
Web : <a moz-do-not-send="true"
href="http://www.arvoo.com">www.arvoo.com</a><br>
</b></b></div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
ZendTo mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:ZendTo@zend.to">ZendTo@zend.to</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto">http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto</a></pre>
<br>
<pre class="moz-signature" cols="72">Jules
--
Julian Field MEng MBCS CITP CEng
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.Zend.To">www.Zend.To</a>
Twitter: @JulesFM
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
'I never saw a wild thing
Sorry for itself.' - D.H. Lawrence
</pre>
</blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
ZendTo mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ZendTo@zend.to">ZendTo@zend.to</a>
<a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto">http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto</a></pre>
</blockquote>
<br>
</body>
</html>