Skip to content

Check access to channel before downloading and starting upload #434

@lsolesen

Description

@lsolesen
  • ricecooker version: 0.7.1
  • Python version:
  • Operating System:

Description

I helped other people making channels through ricecooker. They use different tokens for their channel off course. By accident I used my own token, when trying to upload their channel.

Off course I do not have access to the channel, so I should not be able to upload it.

However the check for access to the channel is not made in the beginning of the channel creation but after downloading and starting the upload.

What I Did

I just ran the ricecooker command

And then I had the following:

INFO     Uploading files...
INFO       Uploading 3 new file(s) to Kolibri Studio...
INFO            Uploaded 54f5b6c15ba79c0d8e786d9667745932.png (1/3) 
INFO            Uploaded 4228107f6e318fec8037cab371af946b.png (2/3)
INFO            Uploaded 1c0c13c7c3cf1494342f53cc24a443a1.png (3/3) 
INFO     
INFO     Creating channel...
INFO     Creating tree on Kolibri Studio...
INFO        Creating channel Eventure Pregnancy Inspiration
ERROR    Error connecting to API: User is not authorized to edit this channel

You can reproduce by trying to upload the channel to a token which not have access to the channel.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions