mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-25 08:56:02 +03:00
[GH-ISSUE #1582] Problem with API and mailboxes-list and mailboxes-read #1244
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#1244
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @stefaweb on GitHub (Oct 10, 2018).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1582
Seems the API is no longer working with last modoboa version.
If I go to https://mailserver/docs/api/#mailboxes-list/api/v1/mailboxes/, I got an error 500.
In /var/log/uwsgi/app/modoboa_instance.log:
GET /api/v1/mailboxes/ => generated 870 bytes in 217 msecs (HTTP/1.1 500) 5 headers in 181 bytes (1 switches on core 0)Same if I use
/api/v1/mailboxes/{id}/.EDIT : The new API module /api/v1/armessages/ seems to work but as /mailboxes don't work, I can access to the data.
@stefaweb commented on GitHub (Oct 10, 2018):
Again me.
How to found armessages ID?
I was thinking that we can have it with /api/v1/accounts/mailboxes but I don't know as the API doesn't work.
With /api/v1/accounts/ we don't get it (only mailbox pk ID) and in /armessages we can only search with the armessages ID. Maybe adding the accounts ID in armessages would be easier to access to the data.
@tonioo commented on GitHub (Oct 11, 2018):
@stefaweb I think the bug you encounter with API is due to the radicale plugin. Are you browsing the API as default administrator? (which has no mailbox) If so, just switch to a user with a mailbox and it will work again.
About the ARmessage API, I can add a filter. Something like:
GET /api/v1/armessages/?mailbox=
What do you think about this ?
Anyway, could you open an issue in the appropriate repository?
@stefaweb commented on GitHub (Oct 12, 2018):
@tonioo
Sorry for this late answer. I was too busy.
For the error 500, you're right. I was using admin. No 500 error using a login with mailbox.
For ARmessage API, you suggestion seems interesting. I open a issue in the right part.
@stefaweb commented on GitHub (Oct 16, 2018):
See in https://github.com/modoboa/modoboa-radicale/issues/40