mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-03-03 00:46:57 -05:00
API call for attachment download => "missing, malformed, expired or otherwise invalid token provided" #192
Labels
No labels
area/api
area/caldav
area/filters
area/frontend
area/gantt
area/internal-code
area/typesense
bug
changes requested
confirmed
dependencies
enhancement
good first issue
help wanted
kind/bug
kind/feature
needs reproduction
question
security
support
upstream issue
waiting for reply
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vikunja-go-vikunja#192
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 @ozuzo on GitHub (Feb 2, 2024).
Description
I think I've assigned all roles to an API token in Vikunja, and are able to extract projects, tasks, etc from the API. But when trying to recreate download links for attachments, I get
[message] => missing, malformed, expired or otherwise invalid token providedfor the
/tasks/XX/attachments/YYcall, instead of the contents of the attachmentAre tokens supposed to work for this call as well?
Vikunja Frontend Version
0.22.1
Vikunja API Version
0.22.1
Browser and version
n/a
Can you reproduce the bug on the Vikunja demo site?
No
Screenshots
No response
@kolaente commented on GitHub (Feb 5, 2024):
Looks like attachment upload and download are not included in the available token scopes.
@kolaente commented on GitHub (Feb 14, 2024):
Now implemented in
415c6380a5, please check with the next unstable build (should be ready for deployment in ~45min, also on try).Note that you need to recreate any tokens you were previously using for this.
@ozuzo commented on GitHub (Feb 14, 2024):
Thanks - this seems to work now in my reporting tool :-)
@kolaente commented on GitHub (Feb 14, 2024):
I'm a little curious, how are you using the api?
@ozuzo commented on GitHub (Feb 14, 2024):
I'm running Vikunja to support a small group of not-very-technical board members of a committee - so we have a central location for ongoing tasks, keeping track of related documents etc (in the past this was usually done only in the minutes of meetings, quite ineffecient). Two issues: te GUI is for some of them already a bit challenging, and it was a bit difficult tracking any changes since our last board meeting (specifically: added comments).
So I've written a small PHP script to generate an overview of all open tasks, with all comments and attachments, highlighting any comments made within the last four weeks (the usual interval between meetings). That way we have a nice summary of what to discuss, and everybody can easily prepare...
@ozuzo commented on GitHub (Feb 14, 2024):
Looks like:
@kolaente commented on GitHub (Feb 14, 2024):
Very nice, thanks for the insight!