| Summary: | Not able to access the Orion application running in Eclipse | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Pradyut Sarma <pradyutksarma> | ||||||||||||||||
| Component: | Server | Assignee: | Project Inbox <orion.server-inbox> | ||||||||||||||||
| Status: | RESOLVED WORKSFORME | QA Contact: | |||||||||||||||||
| Severity: | normal | ||||||||||||||||||
| Priority: | P3 | CC: | ken_walker, malgorzata.tomczyk, simon_kaegi, Szymon.Brandys, tomasz.zarna | ||||||||||||||||
| Version: | 0.3 | ||||||||||||||||||
| Target Milestone: | --- | ||||||||||||||||||
| Hardware: | PC | ||||||||||||||||||
| OS: | Windows 7 | ||||||||||||||||||
| Whiteboard: | |||||||||||||||||||
| Attachments: |
|
||||||||||||||||||
|
Description
Pradyut Sarma
Created attachment 203745 [details]
Orion Bug
Did you try to login? See the "Security" button in the top right. Hey John, I am not getting the login form at all. But I do see the security button (See attached snapshot). Nothing happens when I click on the link ;-( Best Regards, Pradyut. (In reply to comment #3) What is your browser? I m using Google Chrome, installed a week back. Best Regards, Pradyut. The login dialog is a pop-up (Gosia correct me if I'm wrong and it has changed), do you have an addon/extension installed that blocks pop-ups? (In reply to comment #6) > The login dialog is a pop-up (Gosia correct me if I'm wrong and it has > changed), do you have an addon/extension installed that blocks pop-ups? No, not any more. It should show something like a tooltip from "Security". Pradyut, can you go to Plugins page and tell me if there's an "authenticationPlugin.html" on the list? Hey Malgorzata, You're right. There seems to be some problem with the authenticationplugin.html. It's not loaded and even on RELOAD does not work. Probably the URL to the plugin is not right.... Check attached snapshot (auth_error.png). Best Regards, Pradyut. (In reply to comment #7) > (In reply to comment #6) > > The login dialog is a pop-up (Gosia correct me if I'm wrong and it has > > changed), do you have an addon/extension installed that blocks pop-ups? > > No, not any more. It should show something like a tooltip from "Security". > Pradyut, can you go to Plugins page and tell me if there's an > "authenticationPlugin.html" on the list? Created attachment 203788 [details]
Authentication Error Snapshot
BTW Malgorzata, I changed some parameters in the web-ide.conf such as orion.auth.name=Basic (changed to Basic from FORM and added an admin user and password too as shown below). orion.auth.user.creation=admin orion.auth.admin.default.password=password Now I don't get the Form authentication but the basic thing running. A nice workaround. But I don't know what else may fail with this workaround in place (I am not sure if this can be used as a workaround) Thanks and Regards, Pradyut. Created attachment 203789 [details]
Basic Authentication popup working
The Basic Authentication popup works and I can now login into the application ;~D
Best Regards,
Pradyut.
Yes, it's a workaround, but even if you have the basic authentication you should have authenticationPlugin.html deployed in your client and it should display something in the popup on the right. This is the way it's written. So it's not only the form authentication that has this problem. I should try to figure out why authenticationPlugin.html is on accessible in your server. (In reply to comment #10) > BTW Malgorzata, > > I changed some parameters in the web-ide.conf such as > orion.auth.name=Basic (changed to Basic from FORM and added an admin user and > password too as shown below). > > orion.auth.user.creation=admin > orion.auth.admin.default.password=password > > Now I don't get the Form authentication but the basic thing running. A nice > workaround. But I don't know what else may fail with this workaround in place > (I am not sure if this can be used as a workaround) > > Thanks and Regards, > Pradyut. Sounds ok to me and thanks for the help anyways. Lemme know wherever you need my inputs. Best Regards, Pradyut. (In reply to comment #12) > Yes, it's a workaround, but even if you have the basic authentication you > should have authenticationPlugin.html deployed in your client and it should > display something in the popup on the right. This is the way it's written. So > it's not only the form authentication that has this problem. > I should try to figure out why authenticationPlugin.html is on accessible in > your server. Hi Malgorzata, Even with this workaround in place, nothing else in the application seems to work. I have created a couple of js and css files but the editor never opens for them, but redirects to the default browser. There are also errors of some unloaded javascripts. Thanks and Regards, Pradyut. (In reply to comment #12) > Yes, it's a workaround, but even if you have the basic authentication you > should have authenticationPlugin.html deployed in your client and it should > display something in the popup on the right. This is the way it's written. So > it's not only the form authentication that has this problem. > I should try to figure out why authenticationPlugin.html is on accessible in > your server. Pradyut, it looks like your server really didn't start correctly. Can you attach an outcome from OSGI console when your server is starting and them outcome of command "ss" on OSGI console? What browser are you using? Can you copy the javascript errors you are getting? Pradyut, what area are you interested in working on? For Orion client development there is no real need to run your own server, since you can do your development on orion.eclipse.org. I can create you an account there if you are intersted in working on the client. If you're doing server development then you'll need to run your own server. Answer Gosia's questions and we can diagnose the problem from there. Hi Malgorzata, Sorry for the late reply. I have attached the console output along with the workspace .log file (console.log and .log) with the message. I have also attached a file with a snapshot of the javascript console of Chrome. Hope this helps. Thanks and Regards, Pradyut. (In reply to comment #15) > Pradyut, it looks like your server really didn't start correctly. Can you > attach an outcome from OSGI console when your server is starting and them > outcome of command "ss" on OSGI console? > What browser are you using? Can you copy the javascript errors you are getting? Created attachment 203958 [details]
Eclipse Console with ss output
Created attachment 203959 [details]
WS log
Created attachment 203960 [details]
Javascript Errors Log Snapshot
Hey John, We want to migrate our programming/development tools to a browser based environment and we are evaluating Orion for the integration capabilities and APIs that it provides. Our requirements consist of both server-side bundles as well as client-side scripting. Hence, we have set up our own Orion environment here and have recently migrated to the 0.3 M1 build of Orion. Thanks and Regards, Pradyut. (In reply to comment #16) > Pradyut, what area are you interested in working on? For Orion client > development there is no real need to run your own server, since you can do your > development on orion.eclipse.org. I can create you an account there if you are > intersted in working on the client. If you're doing server development then > you'll need to run your own server. Answer Gosia's questions and we can > diagnose the problem from there. Pradyut,
from your logs I see that all authentication bundles were loaded but server couldn't find the bundle for authentication method specified. The default authentication method is FORM+OpenID and you have this bundle loaded. I see two possible reasons for that problem:
1. There is a typo in custom authentication method name
2. The authentication bundle was laded too early
To check for the problem no. 1. please:
1. find web-ide.conf in your workspace and add this line:
orion.auth.name=FORM+OpenID
Other valid values of this property are Basic and FORM. Case sensitive.
2. Restart your Orion server.
3. Then you need to clear cache of your browser: Options -> Under the hood -> Clear browsing data -> select "Empty the cache" and "Delete cookies and other site and plug-in data".
4. Load Orion and go to "Plugins". Reload the authenticationPlugin.html.
5. Go back to Orion main page and reload.
6. Tooltip under Security shouldn't be empty.
If this doesn't help then to solve problem no. 2:
1. Go to OSGI console
2. Run ss command
3. Find this bundle: org.eclipse.orion.server.authentication.formopenid and copy its id
4. Run command stop <id of org.eclipse.orion.server.authentication.formopenid>
5. Run command start stop <id of org.eclipse.orion.server.authentication.formopenid>
6. Repeat actions from point 3. ("Then you need to clear cache of your browser...") in previous scenario.
Let me know if it helped for you.
Hi Malgorzata, I followed the steps as put down by you in the last comment. But the situation is still the same. 1) For the solution to problem no1, I changed the auth.name to FORM+OpenID, cleared my browser cache and cookies and restarted but didn't help. By the way, when I had set up my environment, the auth.name was FORM only. I had changed it to Basic to somehow login to the system. But neither of "FORM" or "FORM+OpenID" or "Basic" helped. 2) I also carried out the steps to solve problem no.2. I have also attached a snapshot(Steps_Done_for_problem_2.png) of the OSGI console as seen in eclipse along with the bundle that I stopped and started. But even after doing this, the authenticationPlugin.html still shows as unloaded. Thanks and Regards, Pradyut. Created attachment 204086 [details]
Steps done to solve problem2
(In reply to comment #23) > 2) I also carried out the steps to solve problem no.2. I have also attached a > snapshot(Steps_Done_for_problem_2.png) of the OSGI console as seen in eclipse > along with the bundle that I stopped and started. But even after doing this, > the authenticationPlugin.html still shows as unloaded. But did you try to clear the browser cache and reload it? Yes.I did clear the browser cache and cookies each time. Best Regards, Pradyut. In reply to comment #25) > (In reply to comment #23) > > 2) I also carried out the steps to solve problem no.2. I have also attached a > > snapshot(Steps_Done_for_problem_2.png) of the OSGI console as seen in eclipse > > along with the bundle that I stopped and started. But even after doing this, > > the authenticationPlugin.html still shows as unloaded. > > But did you try to clear the browser cache and reload it? What is the state of this defect? Showing as critical Pradyut, there where some changes made to prevent caching the plugins. Can you please verify if new version still has this problem? Chrome caused us some problems in the caching area, so maybe your case is another one to solve. If you still have the problem, please check do this: 1. Check what do you really have under localhost:8080/authenticationPlugin.html? If you get 404 please send me your server logs, as probably your authentication failed to initialize. 2. If you have any authenticationPlugin.html than everything should work fine on a clean environment so please do the following(order is important): 1) Go to the plugins page (this is now the Settings page) 2) Clean your browser cache (for Chrome: Options -> Under the hood -> Clear browsing data -> from "the begging of time" -> check Empty cache + Delete cookies and other site and plug-in data. 3) Click Reload next to the authentication plugin (please track F12 console while doing this) 4) Refresh page and check if you have "Sign in" or a user name in the top right corner If you have still problems after doing this in the newest version of Orion than you should probably have errors in console. Please attach them here. I have to say that if those problems are not caused by the caching problem I really don't have a clue why this is happening. This is a mainline use case that we help set new devs up with regularly. Please try again in the current release and re-open if you are still having problems. |