Volafile / volafile-bugs

Volafile.org public bug tracker
17 stars 2 forks source link

Rest API not working for changed room URL's #197

Closed szero closed 7 years ago

szero commented 7 years ago

When the (((Vola Pro))) user changes the room name, you can no longer use it in the Rest API. Example call for retrieving upload key for old BEEPi room (now gentoomen):

curl -H "Referer: https://volafile.org" -H "Accept: text/values" \
            "https://volafile.org/rest/getUploadKey?room=gentoomen&name=Dude"

Returns this:

error.code=403
error.message=Invalid room.
error.name=Forbidden
error.info=undefined
laino commented 7 years ago

the "custom room urls" are just "fake rooms" that get resolved to the real ID internally. Check config.room_id to get the real ID of a custom room. So you still have to use BEEPi.