client icon indicating copy to clipboard operation
client copied to clipboard

Forbidden .bat file sync

Open MU7L3Y opened this issue 10 years ago • 6 comments

Expected behaviour

I should be allowed to sync .bat files between the server and client.

Actual behaviour

All bat files get blacklisted as forbidden.

Steps to reproduce

Place a .bat file in a sync folder to upload and the error will appear.

Server configuration

Operating system: Linux Shared Hosting

Web server: Apache

Database: MySQL

PHP version: 5.5.32

ownCloud version: 8.2.5

Storage backend:

Client configuration

Client version: 2.2.0

Operating system: Windows Server 2012 or Window 7 Pro

OS language: English

Installation path of client: C:\Program Files (x86)\ownCloud

Logs

Please use Gist (https://gist.github.com/) or a similar code paster for longer logs.

  1. Output of owncloud --logwindow or owncloud --logfile log.txt |0|Tekla_Model_Startup/152602.BAT|INST_NEW|Up|1464227312||208||2|Error downloading http://website/cloud/remote.php/webdav/17/Tekla_Model_Startup/152602.BAT - server replied: Forbidden|403|0|0|||INST_NONE| |0|Tekla_Model_Startup/152602.BAT|INST_NEW|Up|1464227312||208||6|Continue blacklisting: Error downloading http://website/cloud/remote.php/webdav/17/Tekla_Model_Startup/152602.BAT - server replied: Forbidden|403|0|0|||INST_NONE|
  2. Web server error log:
    Stack trace:
    #0 /home/website/public_html/cloud/lib/private/memcache/memcached.php(80): OC\Memcache\Memcached->verifyReturnCode()
    #1 /home/website/public_html/cloud/lib/autoloader.php(178): OC\Memcache\Memcached->set('OCP\Util', Array, 60)
    #2 [internal function]: OC\Autoloader->load('OCP\Util')
    #3 /home/website/public_html/cloud/index.php(51): spl_autoload_call('OCP\Util')
    #4 {main}
    
    thrown in /home/website/public_html/cloud/lib/private/memcache/memcached.php on line 187```
    
  3. ownCloud log (data/owncloud.log): empty

MU7L3Y avatar May 26 '16 04:05 MU7L3Y

@MU7L3Y Try to contact the support of your shared hoster and ask them if they have any security mechanisms running which disallows such .bat files.

ghost avatar May 26 '16 11:05 ghost

I can upload/download them through ftp just fine though? On 26 May 2016 9:30 pm, "RealRancor" [email protected] wrote:

@MU7L3Y https://github.com/MU7L3Y Try to contact the support of your shared hoster and ask them if they have any security mechanisms running which disallows such .bat files.

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/owncloud/client/issues/4904#issuecomment-221846353

MU7L3Y avatar May 26 '16 11:05 MU7L3Y

FTP is not equal WebDAV via HTTP.

ghost avatar May 26 '16 11:05 ghost

Ok I will ask them thanks.

MU7L3Y avatar May 26 '16 11:05 MU7L3Y

Might be caused by a mod_security rule for example:

https://sourceforge.net/p/mod-security/mailman/message/18648527/

ghost avatar May 26 '16 11:05 ghost

Not a Client issue anyway. Closing.

danimo avatar May 26 '16 12:05 danimo