CIDARLAB / Neptune-iGEM-2016

BSD 2-Clause "Simplified" License
11 stars 12 forks source link

Illegal POST request being sent on the specify page #29

Open rkrishnasanka opened 8 years ago

rkrishnasanka commented 8 years ago

There seems to be a jquery 'getFile' api requiest thats using POST instead of GET thats totally throwing the server off.

image

aonanam commented 8 years ago

image I was getting a similar error on the specify page. On the GUI the LFR tab had no name and there was no UCF tab. Upon restarting Neptune, I now have both a LFR and UCF tab, both named specify[type].[extension]; it seems to be fine now.

Could be an issue that only happens on first Specify run?

rkrishnasanka commented 8 years ago

Well the problem is 2-Fold, 1) I've realized that I as I was going through all the codebase on Sunday. Looks like the crash happens the first time the project directory is created. 2) @kestaskk uses POST requests for some things where he should instead use GET. It doesn't cause any problems with the code but its a bad practice in creating API endpoints.

@kestaskk we need to redo some of the endpoints later on. This bug has more to do with some run away POST request thats probably being called before the directory is being created.