otetard / ownpad

Ownpad is a Nextcloud application that allows to create and open Etherpad and Ethercalc documents.
GNU Affero General Public License v3.0
57 stars 24 forks source link

Nextcloud 24 update breaks pad creation inside shared folders #115

Closed ValentinDrean closed 2 years ago

ValentinDrean commented 2 years ago

Ownpad seems to have stopped working since Nextcloud 24 update, specifically in shared folders (inside personal/local folders it works).

Thanks to anyone reading this and even helping ;)

Here is some curl command to help I guess, I replaced urls & sensible datas with XXX :

curl 'https://XXX/apps/ownpad/ajax/v1.0/newpad' -X POST -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:100.0) Gecko/20100101 Firefox/100.0' -H 'Accept: */*' -H 'Accept-Language: fr-FR,fr;q=0.8,en-US;q=0.5,en;q=0.3' -H 'Accept-Encoding: gzip, deflate, br' -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' -H 'requesttoken: tZDCkx9N6ik2cMCCQ6de3z1ZUz6DsgB2pOrMr8qbqhw=:wPGh534XvH18GrLNOd5plG86G2zGxUIS1Jz7+5nr7U8=' -H 'OCS-APIREQUEST: true' -H 'X-Requested-With: XMLHttpRequest' -H 'Origin: https://XXX' -H 'Connection: keep-alive' -H 'Cookie: __Host-nc_sameSiteCookielax=true; __Host-nc_sameSiteCookiestrict=true; nc_username=XXX; nc_token=ZXQuyWFqZu8LyyeMSMvI3Uap4OJim9mW; nc_session_id=d7c6621eaddbe7076d0efbdd79653a50; oc_sessionPassphrase=qy2Xac9PL8ZeihfjfSrrB8IHG8cmcA3wacesoX3t%2BYqzkzjGapRoGtBqlNVHGFSbbQWQrYlGUnxpUddmYh70nMyL4R0jJ4RnPptK1Yp9cgOtnj6hzaYCoT0Nxvej8edk; oco3prmnk2jn=d7c6621eaddbe7076d0efbdd79653a50; sessionID=s.0f2de7feeeb9ce83a9cb412ac4961996' -H 'Sec-Fetch-Dest: empty' -H 'Sec-Fetch-Mode: cors' -H 'Sec-Fetch-Site: same-origin' -H 'Sec-GPC: 1' -H 'TE: trailers' --data-raw 'dir=XXX&padname=test.pad&type=etherpad&protected=false'
otetard commented 2 years ago

Issue fixed in cad94140b20da7754f719df49dec1c15479f790b, thanks for the feedback!