| Summary: | Plugins give no feedback when authentication is required | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | John J. Barton <johnjbarton> |
| Component: | Client | Assignee: | Simon Kaegi <simon_kaegi> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | ken_walker, malgorzata.tomczyk, simon_kaegi, Szymon.Brandys |
| Version: | 0.2 | Flags: | john.arthorne:
review+
|
| Target Milestone: | 1.0 RC2 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 349443, 350329 | ||
|
Description
John J. Barton
Well it seems like the logon has to expire. I can't reproduce it by logging out. It sounds to me like your plugin is being protected by the workspace authentication filter. If that's true then I bet you're getting a 401 in your plugin and we're not being good about handling it. The authentication story for plugins is not at all where we want it and at the moment either piggybacking on existing authentication tokens or else only works with anonymous. If your session timed out then that indeed would hose you. I going to use this bug to track ensuring I add the login bits to our soon to be done notification area. (In reply to comment #3) > I going to use this bug to track ensuring I add the login bits to our soon > to be done notification area. The recent changes removed handling 401 when xhr calls are made from the page and the session expired. I don't understand why you are removing this code? Hi Szymon We're mid-stream in the change -- I'm adding it back now but differently and at a lower layer. The UI is different and rather than using the login dialog we're using the status service notification and a "login" link that the plugin provides in its manifest. auth.js has been broken for essentially the entire release as it was involved in a dependency cycle so we were hitting a TypeError rather than letting the error bubble up. No-one really noticed because the bootstrap always redirects to the login page if not logged in. auth.js and logindialog were referenced in roughly 10 files so we decided to remove the references as a first step to help ensure our merge on commit would be simple for a reviewer to look at. More coming shortly... John reviewed. Its not a beautiful UX which we'll work on in rc3 but its checked in -- also includes cross orion filesystem support so you can mount your local orions filesystem in orion.eclipse.org. Ken reviewed. I did one final fix to ensure the login window opens in a _blank target and handled an error check better that masking some problem reporting. |