janar
May 24, 2023, 8:17am
1
Hi,
i have problem with Owncloud file share with windows explorer.
When i use owncloud public link share in windows explorer, then i get error CSFR check failed.
I dont find any solution to fix this error
I use latest owncloud
PHP 7.4
Apache
ubuntu server 22.04
Any idea ?
1 Like
Hey,
i did this search Search · "CSRF check failed" · GitHub and found the following:
opened 10:38AM - 12 Jan 21 UTC
Type:Bug
After updating the core from 10.5.0 to 10.6.0 the sharing feature in the macOS a… nd iOS app does not work anymore.
When using the web interface, sharing works as expected.
### Expected behaviour:
Right-click on a file in my ownCloud folder, -> copy public link -> paste the link in the browser -> file can be downloaded.
### Actual behaviour
Right-click on a file in my ownCloud folder, -> copy public link -> the window with the sharing options opens, displaying “CSRF check failed” in red. All options for creating shares are greyed out.
The iOS app displays the same message when trying to create a public link to a file.
### Steps to reproduce
As described above.
### Server configuration
Operating system: Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
Web server: Apache
Database: MySQL 5.5
PHP version: 7.4
ownCloud version: 10.6.0
Storage backend (external storage): none
### Client configuration
Client version: Desktop: 2.7.4 (build 2934)
iOS: 11.4.5 build 182
Operating system: MacOS 10.14.6; MacOS 11.1; iOS 14.2
OS language: german
Installation path of client:
/Applications/
### Logs
```
Client logfile: Output of owncloud --logwindow or owncloud --logfile log.txt
01-11 10:14:57:710 [ warning gui.sharing.ocs ]: Reply to “GET” QUrl(“https://(urlDELETEDforPRIVACY)/ocs/v1.php/apps/files_sharing/api/v1/shares”) (QPair(“path”,"/Bildschirmfoto 2021-01-03 um 12.50.59.png"), QPair(“reshares”,“true”)) has unexpected status code: 996 “{“ocs”:{“meta”:{“status”:“failure”,“statuscode”:996,“message”:“CSRF check failed”,“totalitems”:”",“itemsperpage”:""},“data”:[]}}"
01-11 10:14:57:710 [ warning gui.socketapi.publiclink ]: Share fetch/create error 996 “CSRF check failed”
```
### Web server error log:
```
(IP-ADRESS-DELETED) - - [11/Jan/2021:10:14:57 +0100] “GET /ocs/v1.php/apps/files_sharing/api/v1/shares?path=%2FBildschirmfoto%202021-01-03%20um%2012.50.59.png&reshares=true&format=json HTTP/1.1” 200 128 (urlDELETEDforPRIVACY) “-” “Mozilla/5.0 (Macintosh) mirall/2.7.4 (build 2934) (ownCloud, osx-18.7.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)” “-”
(IP-ADRESS-DELETED) - - [11/Jan/2021:10:14:57 +0100] “GET /index.php/apps/files/api/v1/thumbnail/150/150//Bildschirmfoto%202021-01-03%20um%2012.50.59.png HTTP/1.1” 200 16667 (urlDELETEDforPRIVACY) “-” “Mozilla/5.0 (Macintosh) mirall/2.7.4 (build 2934) (ownCloud, osx-18.7.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)” “-”
(IP-ADRESS-DELETED) - - [11/Jan/2021:10:14:58 +0100] “PROPFIND /remote.php/dav/files/octestuser/Bildschirmfoto%202021-01-03%20um%2012.50.59.png HTTP/1.1” 207 548 (urlDELETEDforPRIVACY) “-” “Mozilla/5.0 (Macintosh) mirall/2.7.4 (build 2934) (ownCloud, osx-18.7.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)” “-”
(IP-ADRESS-DELETED) - - [11/Jan/2021:10:14:58 +0100] “GET /ocs/v1.php/apps/files_sharing/api/v1/shares?path=%2FBildschirmfoto%202021-01-03%20um%2012.50.59.png&reshares=true&format=json HTTP/1.1” 200 128 (urlDELETEDforPRIVACY) “-” “Mozilla/5.0 (Macintosh) mirall/2.7.4 (build 2934) (ownCloud, osx-18.7.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)” “-”
(IP-ADRESS-DELETED) - - [11/Jan/2021:10:14:58 +0100] “GET /ocs/v1.php/apps/files_sharing/api/v1/shares?path=%2FBildschirmfoto%202021-01-03%20um%2012.50.59.png&reshares=true&format=json HTTP/1.1” 200 128 (urlDELETEDforPRIVACY) “-” “Mozilla/5.0 (Macintosh) mirall/2.7.4 (build 2934) (ownCloud, osx-18.7.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)” “-”
```
### Server logfile: ownCloud log (data/owncloud.log):
Can’t find unusual messages.
**Updated from an older ownCloud or fresh install:**
Update from 10.5
**Where did you install ownCloud from:**
Initially Installed Owncloud 8 from the ZIP Archive provided at owncloud.com years ago and used the update function ever since.
**Signing status (ownCloud 9.0 and above):**
```
No errors have been found.
```
**The content of config/config.php:**
```
Can be provided on request
```
**List of activated apps:**
```
Only standard apps
```
**Are you using external storage, if yes which one:** local/smb/sftp/...
NO
**Are you using encryption:** yes/no
NO
**Are you using an external user-backend, if yes which one:** LDAP/ActiveDirectory/Webdav/...
NO
<img width="551" alt="Bildschirmfoto 2021-01-11 um 10 37 19" src="https://user-images.githubusercontent.com/77327566/104303368-4bfe0e00-54ca-11eb-83b0-f26c81a341a5.png">
Maybe this is related?
janar
June 8, 2023, 10:32am
3
Hi, this solution not works for me.
Hey,
maybe you can look around a little about this message here and on GitHub. Maybe you can find some other solutions for it?
I think it could also help to give a few additional info about your system like the ownCloud version for example or anything from the owncloud.log.
Maybe you are using an old version of ownCloud which had some issues?
system
Closed
September 6, 2023, 3:17pm
5
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.