RebelTechnology / OwlServer

Web-based Client/Server application for the Open Ware Laboratory
GNU General Public License v2.0
2 stars 2 forks source link

SysEx download fails if not logged in #221

Closed pingdynasty closed 6 years ago

pingdynasty commented 6 years ago

Fails with a 401 if the user is not logged in. Presumably this has smth to do with the download count.

pingdynasty commented 6 years ago

This also affects Patch Load and Play.

goozo commented 6 years ago

I could not reproduce this, it works ok when not logged in (incognito mode chrome) both syx could be downloaded and I could play the patch in the browser. https://hoxtonowl.com/patch-library/patch/Gain which browser / os was this on?

pingdynasty commented 6 years ago

If I log out and hit Play on the Gain patch I get a 401 (in the console) on: getScript.js:18 GET https://hoxtonowl.com/api/builds/55074dcda82f90176ffe3bdc?format=js&download=0&cachebust=1507916715577

pingdynasty commented 6 years ago

.. which comes back with: {"status":401,"success":false,"message":"Not authorized."}

pingdynasty commented 6 years ago

actually hitting the URL with curl from my local machine returns the patch... It's fake bugs! Only seems to happen with an old version of Chrome on my Debian box.

pingdynasty commented 6 years ago

This is what happens in Chrome Version 48.0.2564.116 on my Ubuntu 14.04 machine: out

On FireFox the same URL produces the JS patch correctly, without being logged in. Note that it's an old, unsupported chrome version. Still weird!

goozo commented 6 years ago

seems to work.