Currently, there is a library A (library_id = aaa).
Create an account test@example.com.
Using Edit restrictions, deselect All Libraries, and only select Library A.
Create another library, Library B (library_id = bbb).
Use the Python package requests to execute the command: requests.get("[komga-url]/api/v1/series?library_id=bbb", auth=HTTPBasicAuth("test@example.com", "password")).json(). The response is {'content': [{'id': 'xxx', 'libraryId': 'aaa', 'name'...
(I think it just returns the information from the first library.)
Expected behavior
The response should be a null dict or raise an error.
Actual behavior
See step 5. This is an error, as the information accessed pertains to Library A instead of Library B.
Logs
No response
Komga version
v1.10.4-master
Operating system
Linux
Installation method
Docker
Other details
I suspect that this issue and #1470 are caused by the same underlying logic problem in the code, but I am not sure, so I have opened another issue to address it separately.
Acknowledgements
[X] I have searched the existing issues (open AND closed) and this is a new ticket, NOT a duplicate or related to another open issue.
Steps to reproduce
Python
packagerequests
to execute the command:requests.get("[komga-url]/api/v1/series?library_id=bbb", auth=HTTPBasicAuth("test@example.com", "password")).json()
. The response is{'content': [{'id': 'xxx', 'libraryId': 'aaa', 'name'...
(I think it just returns the information from the first library.)Expected behavior
The response should be a null dict or raise an error.
Actual behavior
See step 5. This is an error, as the information accessed pertains to Library A instead of Library B.
Logs
No response
Komga version
v1.10.4-master
Operating system
Linux
Installation method
Docker
Other details
I suspect that this issue and #1470 are caused by the same underlying logic problem in the code, but I am not sure, so I have opened another issue to address it separately.
Acknowledgements