orientdb icon indicating copy to clipboard operation
orientdb copied to clipboard

Login to New Database in OrientDB Studio Does Not Accept Credentials

Open edalorzo opened this issue 13 years ago • 7 comments

Steps to Reproduce

  1. Got a fresh download of the OrientDB 1.5.0. distribution.
  2. Unzip it and run the server.bat.
  3. Open the orientdb-server-config.xml and change the root password to root.
  4. Stop the server, and start it back again.
  5. Open OrientDB Studio (http://localhost:2480)
  6. Log in to the tinkerpop database using admin/admin credentials.
  7. Click on the OrientDB logo to go to the main page.
  8. Click create database link.
  9. Fill in the form and click the "Create" button.
  10. Fill the credentials form with the password for root/root
  11. Click the back button to go the main page again.
  12. Try to login to the new database using any credentials: admin/admin or root/root.

At this point OrientDB Studio continues to ask for the credentials over and over again. No matter which credentials are provided none work.

  1. So open an OrientDB command-line console.
  2. Do a connect remote:localhost/my-new-database admin admin

This works in the command line console, but not in the OrientDB Studio.

The server console shows the following:

2013-08-22 16:20:31:344 WARN Session OS13772099996228461821454517257232 is trying to access to the database 'sample', but has been authenticated against the database 'tinkerpop' [OServerCommandGetConnect]

Workaround

Close your browser entirely (not just the tab) and open it again and it will work.

System Information

  • OrientDB Version.......: 1.5.0
  • Tinkerpop Blueprints.......: 2.4.0
  • Operating System......: Windows 7 Enterprise
  • Installed RAM............: 8 GB
  • Processor.................: Intel Core i5/2.6Ghz
  • System Type.............: 64/bit
  • Java Version..............: JDK-1.7.0_25-b17/64-bit

edalorzo avatar Aug 22 '13 22:08 edalorzo

I just discover that this problem can be easily reproduce by just loggin into one database, then clicking on the OrientDB logo in the upper left and then trying to login to another database.

edalorzo avatar Aug 22 '13 22:08 edalorzo

OMG thank you! I was going nuts. There needs to be a log out button or something.

tmaiaroto avatar Aug 26 '13 06:08 tmaiaroto

In fact there is a "disconnect" button, but it is not available in the main login page. So, you cannot log out once there

edalorzo avatar Aug 26 '13 15:08 edalorzo

The HTTP REST "disconnect" command wants a database where to disconnect, like:

http://localhost:2480/disconnect/tinkerpop

So if you click on the OrientDB logo or you just go to an external web site and come back there is no way to remember what database you were logged in. So anybody has a smart solution to this? Otherwise I can close it.

lvca avatar Aug 27 '13 13:08 lvca

Why can't the system keep track of the database I am currently logged in and allow me to disconnect no matter if I move to a different page in the application or even if I go away and come back?

Without knowing the details of the implementation this sounds like simple session management. And from the user standpoint this problem is pretty misleading and frustrating (as you can infer from the comment of other user above having the same problem).

It would surprise me a lot that this would get closed without actually proposing a solution.

edalorzo avatar Aug 27 '13 13:08 edalorzo

When the server recognizes the same session is trying to be reused for another database, invalidate the session, so further login works.

lvca avatar Sep 11 '13 11:09 lvca

I also have this issue. Resolved using a Chrome incognito window. (Will not maintain the session data.)

thecyman avatar Jul 21 '14 20:07 thecyman