Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shib/Log In -- FATAL - DISCO:UI #1762

Closed
mheppler opened this issue Mar 25, 2015 · 4 comments
Closed

Shib/Log In -- FATAL - DISCO:UI #1762

mheppler opened this issue Mar 25, 2015 · 4 comments
Assignees
Labels
Feature: Account & User Info UX & UI: Design This issue needs input on the design of the UI and from the product owner
Milestone

Comments

@mheppler
Copy link
Contributor

mheppler commented Mar 25, 2015

The following error was seen on dvn-vm6, when trying to log in. It should probably be something a little less "disco".

http://dvn-vm6.hmdc.harvard.edu:8080/

screen shot 2015-03-25 at 11 19 19 am

disco

@mheppler mheppler added the UX & UI: Design This issue needs input on the design of the UI and from the product owner label Mar 25, 2015
@mheppler mheppler added this to the Beta 15 - Dataverse 4.0 milestone Mar 25, 2015
@pdurbin
Copy link
Member

pdurbin commented Mar 25, 2015

@scolapasta asked me to re-assign this to @mheppler

I'm not exactly sure what the message should say... maybe "This Dataverse installation is configured for login via Shibboleth but there was an internal error. Please contact support."

Here's where that message comes from:

murphy:dataverse pdurbin$ git diff src/main/webapp/resources/js
diff --git a/src/main/webapp/resources/js/shib/idpselect.js b/src/main/webapp/resources/js/shib/idpselect.js
index b1ff425..28286f2 100644
--- a/src/main/webapp/resources/js/shib/idpselect.js
+++ b/src/main/webapp/resources/js/shib/idpselect.js
@@ -1321,7 +1321,7 @@ function IdPSelectUI() {
             idpData = JSON.parse(jsonData);

         }else{
-            fatal(getLocalizedMessage('fatal.loadFailed') + dataSource);
+            fatal(getLocalizedMessage('fatal.loadFailed') + dataSource); // here
             return false;
         }
         return true;
@@ -2212,7 +2212,7 @@ function IdPSelectUI() {
     */

     var fatal = function(message) {
-        alert('FATAL - DISCO UI:' + message);
+        alert('FATAL - DISCO UI:' + message); // here
         var txt = document.createTextNode(message); 
         idpSelectDiv.appendChild(txt);
     };
diff --git a/src/main/webapp/resources/js/shib/idpselect_config.js b/src/main/webapp/resources/js/shib/idpselect_config.js
index b83809b..a62adbd 100644
--- a/src/main/webapp/resources/js/shib/idpselect_config.js
+++ b/src/main/webapp/resources/js/shib/idpselect_config.js
@@ -42,7 +42,7 @@ function IdPSelectUIParms() {
             'fatal.wrongProtocol': 'Policy supplied to DS was not "urn:oasis:names:tc:SAML:profiles:SSO:idpdiscovery-protocol:single"',
             'fatal.wrongEntityId': 'entityId supplied by SP did not match configuration',
             'fatal.noData': 'Metadata download returned no data',
-            'fatal.loadFailed': 'Failed to download metadata from ',
+            'fatal.loadFailed': 'Failed to download metadata from ', // here
             'fatal.noparms': 'No parameters to discovery session and no defaultReturn parameter configured',
             'fatal.noReturnURL': "No URL return parameter provided",
             'fatal.badProtocol': "Return request must start with https:// or http://",

@pdurbin pdurbin assigned mheppler and unassigned pdurbin Mar 25, 2015
@mheppler mheppler assigned scolapasta and unassigned mheppler Mar 25, 2015
@mheppler
Copy link
Contributor Author

Gave to @scolapasta to review in the "In Review - 4.0" milestone.

This isn't just swapping out the text displayed in the modal popup - but thank you, @pdurbin for digging that up.

As I said in my email, "(when there is a FATAL error from Shib) we need to have our built-in login displayed so the majority of our users can access the site, and not a modal popup that covers the entire screen with some "disco" developer-nerd "FATAL" message... Ideally, it fails silently on the UI, or displays a little text blurb in the Institution Log In block that is a little more subtle."

@scolapasta scolapasta modified the milestones: 4.0.1, In Review - 4.0 Mar 30, 2015
@scolapasta scolapasta removed their assignment Apr 4, 2015
@scolapasta scolapasta modified the milestones: 4.0.1, In Review - Short Term Apr 18, 2015
@mercecrosas mercecrosas modified the milestone: In Review Nov 30, 2015
@scolapasta scolapasta removed this from the Not Assigned to a Release milestone Jan 28, 2016
@mheppler
Copy link
Contributor Author

mheppler commented May 17, 2016

In the spirit of the good work being done in the prioritization meetings, I have compromised most of the UX problems initially reported in this issue, and just changed the text of the modal popup to "Internal Error". (Related to issue #3091, commits were checked into 3091-shib-ui branch.)

Disco is dead.

screen shot 2016-05-17 at 10 17 02 am

@mheppler mheppler added this to the 4.4 milestone May 17, 2016
@mheppler mheppler self-assigned this May 17, 2016
@kcondon
Copy link
Contributor

kcondon commented May 22, 2016

Updated as described, closing.

@kcondon kcondon closed this as completed May 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature: Account & User Info UX & UI: Design This issue needs input on the design of the UI and from the product owner
Projects
None yet
Development

No branches or pull requests

5 participants