Closed kamou closed 1 year ago
You're right. NC no longer sends a session cookie if the API is used. Instead, every session cookie sent that way is deleted.
I have found a way around this by sending my own cookie. This will be available in the next nightly release.
This should be fixed with the latest 2023.8 update. Can you confirm this?
⚠️ This issue respects the following points: ⚠️
Server Information
Client Information
using pynacl 1.5.0 (python bindings to libsodium) plugin version: 2023.5.30 nextcloud version: 26.0.1
Bug description
all the passwords tools are working properly. the firefox extension, the web interface. works great, and thanks for this quite useful plugin !
This is maybe not a bug, my question is related to the API usage. I'm using my own python command line tool to gather passwords information from my nextcloud instance. Up to some update (sorry, I have no idea of the date or version, can't even tell you if it is after a nextcloud update or a passwrods update) My plugin used to be able to work properly just using the nextcloud cookies as stated in the developer handbook. Since some update, it is not the case anymore. I now have to set the X-API-SESSION for each request. Is this expected ? if yes, I guess the developer handbook needs to be updated.
Steps to reproduce
do not set the
X-API-SESSION
header.Expected behavior
accessing session required api should not result in http 412 (precondition failed)
Nextcloud Logs
Browser Logs