-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can upload virus file with new public WebDAV API #334
Comments
PR #335 added some scenarios for this that are skipped. |
@micbar this API is only active when |
@phil-davis good catch! |
@phil-davis I created a EE Ticket for 10.5.0 |
It seems that it is not possible anymore to upload files using this webdav API. <?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
<s:exception>Sabre\DAVACL\Exception\NeedPrivileges</s:exception>
<s:message>User did not have the required privileges ({DAV:}write-content) for path "public-files/QPYeKmJuo3yztJ0/welcome2.txt"</s:message>
<d:need-privileges>
<d:resource>
<d:href>/remote.php/dav/public-files/QPYeKmJuo3yztJ0/welcome2.txt</d:href>
<d:privilege>
<d:write-content/>
</d:privilege>
</d:resource>
</d:need-privileges>
</d:error> |
oops... I misconstructed the URL |
Reproduced with files_antivirus-1.0.0-rc2.tar.gz with a public share without(!) setting a password:
The file is not uploaded. OK.
The file gets created with content "Hello World". OK |
@micbar there are several issues reported here. the fix does not cover one of them: overwriting an existing file content with a virus. And there are no acceptance tests covering this particular issue atm. |
hm... Works differently for me
The file On update with eicar the file didn't get infected content. But it was also removed from the file system. |
Under the assumption that this only applies to the new public link endpoint which was added for ownCloud Web and is disabled by default, I'd not qualify this as a blocker and proceed with the release. Needs to be scheduled for fixing, of course. |
please go on, agree with @pmaier1 |
see #334 (comment) |
@micbar |
ok, then we need to fix it. If core changes are needed, we need to do before Code freeze for 10.8.0 |
Here you go #450 |
#450 has been merged |
@jnweiger The issue is fixed. Ship a patch release with minimal QA? Only one fix? Would be nice IMO |
Steps to reproduce
tech_preview
in order to use new public WebDAV API.eg.
Expected Behavior
The file will not be uploaded to public share
Actual Result
The file gets uploaded and is in locked state.
The text was updated successfully, but these errors were encountered: