Closed FriedCircuits closed 10 years ago
Can you give a little more info on this, I cannot reproduce this. Can you post a screenshot of the console output you are referring to?
In the browser console is where I see the HTTP 401. I looked at the code and it looks like it is failing that it is detecting that I am logged in as the admin role and failing to the else condition which is return 401.
I should mention that I am running on IIS but I don't think that is the reason. Instead of the action happening I just get the animated gif with the blue dots.
I've never tested anything on IIS, just on LAMP servers, I think that might be causing part of the issue. I might be taking advantage of some PHP functionality that is implemented differently on Windows.
Maybe, the code looks simple enough. I started playing with bootstrap and its working okay in IIS.
Hmm, maybe something to do with the way the session data is handled on the server. I have a ubuntu box I could try it on as well.
Btw this should work for any robot right?
In theory, it should work with a ROS enabled robot. It uses rosbridge and the Robot Web Tools JS libraries (http://robotwebtools.org/) to communicate with the robot which are robot agnostic tools.
So far it is able to connect to the robot and says available. But I want to edit an environment since the default teleop comes up blank. I haven't setup mjpeg-server yet. I am having problems cross compiling it.
Yeah it's because of the server you are using. Here is the line that is Apache specific that is causing your 401:
https://github.com/WPI-RAIL/rms/blob/stable/src/api/users/user_accounts/user_accounts.inc.php#L333
I found this https://code.google.com/p/libreviens/issues/detail?id=2
using $_SERVER could work when apache isn't available.
I tried a few different things that didn't work. Even this didn't strange. http://us3.php.net/manual/en/function.getallheaders.php
I am running 5.4 too.
Looks like if you're running 5.4 you'll need FastCGI for IIS running as well?
Yeah I made sure FastCGI is working. I tried to update to 5.5.5 but that didn't go well so back to 5.4.
I tried everything and no go. Its so odd. I add a function that replacing the apache get headers if it doesn't exist but something else much be going on. I noticed that the header data like auth_user and auth_pass are blank. (I haven't checked them on Ubuntu\apache yet.) Also noticed I can't even log off and the session never expires.
So I copied the site over to my ubuntu machine but pointing to the mysql on the windows machine and that works for making changes. I still would like to just run it on the windows machine but for now that works. I guess I could install apache on the Windows computer instead and run on another port.
Closing with release of 2.0.0.
Editing any field or deleting returns HTTP 401 in the console. Logged in with default admin account.