From 3fc853cc1e861f455888a92ff0c9995270d2ba2c Mon Sep 17 00:00:00 2001 From: root Date: Mon, 25 Jul 2011 20:14:02 +0200 Subject: imported 1.1.2 --- src/installer/lib/bcprov-jdk15-1.43.jar | Bin 1632822 -> 0 bytes src/installer/lib/bcprov-jdk15-1.45.jar | Bin 0 -> 1663318 bytes src/installer/resources/build.xml | 2 +- src/installer/resources/install.properties | 3 +- src/installer/resources/logging.xml | 16 ++-- src/installer/resources/wayfconfig.xml | 36 ++++++- src/main/webapp/Suggest.js | 146 ++++++++++++++--------------- src/main/webapp/wayf.jsp | 6 +- src/main/webapp/wayferror.jsp | 4 +- 9 files changed, 117 insertions(+), 96 deletions(-) delete mode 100644 src/installer/lib/bcprov-jdk15-1.43.jar create mode 100644 src/installer/lib/bcprov-jdk15-1.45.jar (limited to 'src') diff --git a/src/installer/lib/bcprov-jdk15-1.43.jar b/src/installer/lib/bcprov-jdk15-1.43.jar deleted file mode 100644 index f7bf116..0000000 Binary files a/src/installer/lib/bcprov-jdk15-1.43.jar and /dev/null differ diff --git a/src/installer/lib/bcprov-jdk15-1.45.jar b/src/installer/lib/bcprov-jdk15-1.45.jar new file mode 100644 index 0000000..409070b Binary files /dev/null and b/src/installer/lib/bcprov-jdk15-1.45.jar differ diff --git a/src/installer/resources/build.xml b/src/installer/resources/build.xml index ba7a5cd..b4201d8 100644 --- a/src/installer/resources/build.xml +++ b/src/installer/resources/build.xml @@ -17,7 +17,7 @@ - diff --git a/src/installer/resources/install.properties b/src/installer/resources/install.properties index 6de85c4..4b9d0de 100644 --- a/src/installer/resources/install.properties +++ b/src/installer/resources/install.properties @@ -1,2 +1 @@ -#Mon Jun 28 14:25:15 CEST 2010 -ds.home=/opt/shibboleth-ds +ds.home = /opt/shibboleth-ds \ No newline at end of file diff --git a/src/installer/resources/logging.xml b/src/installer/resources/logging.xml index 77fefd6..3e01593 100644 --- a/src/installer/resources/logging.xml +++ b/src/installer/resources/logging.xml @@ -7,22 +7,22 @@ --> $DS_HOME$/logs/discoveryService.log - true $DS_HOME$/logs/discovery-%d{yyyy-MM-dd}.log - - %date{HH:mm:ss.SSS} %level [%logger] %msg%n%ex{full}%n - + + UTF-8 + %date{HH:mm:ss.SSS} - %level [%logger:%line] - %msg%n%ex{full}%n + - true - - %date{HH:mm:ss.SSS} %level [%logger] %msg%n%ex{full}%n - + + UTF-8 + %date{HH:mm:ss.SSS} - %level [%logger:%line] - %msg%n%ex{full}%n + @@ -70,14 +70,14 @@ NOTE - for windows installation with an explicit DOS device ("C:\etc\discoveryservice") The url below should be "file://C:\program files/metadata/sites.xml - --> +--> - + @@ -139,7 +167,7 @@ + with the DS refers to this handler --> diff --git a/src/main/webapp/Suggest.js b/src/main/webapp/Suggest.js index 6fd945c..2f17b93 100644 --- a/src/main/webapp/Suggest.js +++ b/src/main/webapp/Suggest.js @@ -1,8 +1,3 @@ -// function log(what) -//{ -// document.getElementById("dbg").innerHTML += what ; -//} - function TypeAheadControl(list, box, orig, submit, optype, ie6hack) { // @@ -31,11 +26,11 @@ function TypeAheadControl(list, box, orig, submit, optype, ie6hack) i++; } // - // Set up the "dropDown" + // Set up the 'dropDown' // - this.dropDown = document.createElement("div"); - this.dropDown.className = "dropdown"; - this.dropDown.style.visibility = "hidden"; + this.dropDown = document.createElement('div'); + this.dropDown.className = 'dropdown'; + this.dropDown.style.visibility = 'hidden'; this.dropDown.style.width = box.offsetWidth; this.dropDown.current = -1; document.body.appendChild(this.dropDown); @@ -43,8 +38,7 @@ function TypeAheadControl(list, box, orig, submit, optype, ie6hack) // // mouse listeners for the dropdown box // - this.dropDown.onmouseover = function(event) - { + this.dropDown.onmouseover = function(event) { if (!event) { event = window.event; } @@ -55,8 +49,7 @@ function TypeAheadControl(list, box, orig, submit, optype, ie6hack) myThis.select(target); } - this.dropDown.onmousedown = function(event) - { + this.dropDown.onmousedown = function(event) { if (-1 != myThis.dropDown.current) { myThis.textBox.value = myThis.results[myThis.dropDown.current][0]; } @@ -67,13 +60,13 @@ function TypeAheadControl(list, box, orig, submit, optype, ie6hack) // this.textBox.onkeyup = function(event) { // - // get window even if needed + // get window even if needed (because of browser oddities) // if (!event) { event = window.event; } myThis.handleKeyUp(event); - } + }; this.textBox.onkeydown = function(event) { if (!event) { @@ -81,22 +74,21 @@ function TypeAheadControl(list, box, orig, submit, optype, ie6hack) } myThis.handleKeyDown(event); - } + }; this.textBox.onblur = function() { myThis.hideDrop(); - } + }; this.textBox.onfocus = function() { myThis.handleChange(); - } + }; -} +}; // // Given a name return the first maxresults, or all possibles // -TypeAheadControl.prototype.getPossible = function(name) -{ +TypeAheadControl.prototype.getPossible = function(name) { var possibles = []; var inIndex = 0; var outIndex = 0; @@ -129,8 +121,13 @@ TypeAheadControl.prototype.getPossible = function(name) } inIndex ++; } + // + // reset the cursor to the top + // + this.dropDown.current = -1; + return possibles; -} +}; TypeAheadControl.prototype.handleKeyUp = function(event) { var key = event.keyCode; @@ -139,7 +136,7 @@ TypeAheadControl.prototype.handleKeyUp = function(event) { // // Escape - clear // - this.textBox.value = ""; + this.textBox.value = ''; this.handleChange(); } else if (8 == key || 32 == key || (key >= 46 && key < 112) || key > 123) { // @@ -147,7 +144,7 @@ TypeAheadControl.prototype.handleKeyUp = function(event) { // this.handleChange(); } -} +}; TypeAheadControl.prototype.handleKeyDown = function(event) { @@ -165,46 +162,44 @@ TypeAheadControl.prototype.handleKeyDown = function(event) { // this.downSelect(); } -} +}; -TypeAheadControl.prototype.hideDrop = function() -{ +TypeAheadControl.prototype.hideDrop = function() { var i = 0; if (null != this.ie6hack) { while (i < this.ie6hack.length) { - this.ie6hack[i].style.visibility = "visible"; + this.ie6hack[i].style.visibility = 'visible'; i++; } } - this.dropDown.style.visibility = "hidden"; - this.doUnselected(); -} + this.dropDown.style.visibility = 'hidden'; + if (-1 == this.dropDown.current) { + this.doUnselected(); + } +}; -TypeAheadControl.prototype.showDrop = function() -{ +TypeAheadControl.prototype.showDrop = function() { var i = 0; if (null != this.ie6hack) { while (i < this.ie6hack.length) { - this.ie6hack[i].style.visibility = "hidden"; + this.ie6hack[i].style.visibility = 'hidden'; i++; } } - this.dropDown.style.visibility = "visible"; -} + this.dropDown.style.visibility = 'visible'; +}; -TypeAheadControl.prototype.doSelected = function() -{ - this.submit.value="Select"; - this.optype.value = "selection"; -} +TypeAheadControl.prototype.doSelected = function() { + this.submit.value='Select'; + this.optype.value = 'selection'; +}; -TypeAheadControl.prototype.doUnselected = function() -{ - this.submit.value="Search"; +TypeAheadControl.prototype.doUnselected = function() { + this.submit.value='Search'; - this.optype.value = "search"; -} + this.optype.value = 'search'; +}; TypeAheadControl.prototype.handleChange = function() { @@ -227,7 +222,7 @@ TypeAheadControl.prototype.handleChange = function() { this.doUnselected(); } } -} +}; // // A lot of the stuff below comes from @@ -235,32 +230,30 @@ TypeAheadControl.prototype.handleChange = function() { // // With thanks to Nicholas C Zakas // -TypeAheadControl.prototype.populateDropDown = function(list) -{ - this.dropDown.innerHTML = ""; +TypeAheadControl.prototype.populateDropDown = function(list) { + this.dropDown.innerHTML = ''; var i = 0; var div; while (i < list.length) { - div = document.createElement("div"); + div = document.createElement('div'); div.appendChild(document.createTextNode(list[i][0])); -// div.style.zIndex = "1000"; +// div.style.zIndex = '1000'; this.dropDown.appendChild(div); i++; } var off = this.getXY(); - this.dropDown.style.left = off[0] + "px"; - this.dropDown.style.top = off[1] + "px"; + this.dropDown.style.left = off[0] + 'px'; + this.dropDown.style.top = off[1] + 'px'; this.showDrop(); -} +}; -TypeAheadControl.prototype.getXY = function() -{ +TypeAheadControl.prototype.getXY = function() { var node = this.textBox; var sumX = 0; var sumY = node.offsetHeight; - while(node.tagName != "BODY") { + while(node.tagName != 'BODY') { sumX += node.offsetLeft; sumY += node.offsetTop; node = node.offsetParent; @@ -272,10 +265,9 @@ TypeAheadControl.prototype.getXY = function() sumY += node.offsetTop; return [sumX, sumY]; -} +}; -TypeAheadControl.prototype.select = function(selected) -{ +TypeAheadControl.prototype.select = function(selected) { var i = 0; var node; this.dropDown.current = -1; @@ -286,7 +278,7 @@ TypeAheadControl.prototype.select = function(selected) // // Highlight it // - node.className = "current"; + node.className = 'current'; // // turn on the button // @@ -299,16 +291,16 @@ TypeAheadControl.prototype.select = function(selected) // and the value for the Server // this.origin.value = this.results[i][1]; + this.origin.textValue = this.results[i][0]; } else { - node.className = ""; + node.className = ''; } i++; } this.textBox.focus(); }; -TypeAheadControl.prototype.downSelect = function() -{ +TypeAheadControl.prototype.downSelect = function() { if (this.results.length > 0) { if (-1 == this.dropDown.current) { @@ -316,48 +308,50 @@ TypeAheadControl.prototype.downSelect = function() // mimic a select() // this.dropDown.current = 0; - this.dropDown.childNodes[0].className = "current"; + this.dropDown.childNodes[0].className = 'current'; this.doSelected(); this.origin.value = this.results[0][1]; + this.origin.textValue = this.results[0][0]; } else if (this.dropDown.current < (this.results.length-1)) { // // turn off highlight // - this.dropDown.childNodes[this.dropDown.current].className = ""; + this.dropDown.childNodes[this.dropDown.current].className = ''; // // move cursor // this.dropDown.current++; // - // and "select" + // and 'select' // - this.dropDown.childNodes[this.dropDown.current].className = "current"; + this.dropDown.childNodes[this.dropDown.current].className = 'current'; this.doSelected(); this.origin.value = this.results[this.dropDown.current][1]; + this.origin.textValue = this.results[this.dropDown.current][0]; } } - } +}; -TypeAheadControl.prototype.upSelect = function() -{ +TypeAheadControl.prototype.upSelect = function() { if ((this.results.length > 0) && (this.dropDown.current > 0)) { // // turn off highlight // - this.dropDown.childNodes[this.dropDown.current].className = ""; + this.dropDown.childNodes[this.dropDown.current].className = ''; // // move cursor // this.dropDown.current--; // - // and "select" + // and 'select' // - this.dropDown.childNodes[this.dropDown.current].className = "current"; + this.dropDown.childNodes[this.dropDown.current].className = 'current'; this.doSelected(); this.origin.value = this.results[this.dropDown.current][1]; + this.origin.textValue = this.results[this.dropDown.current][0]; } -} \ No newline at end of file +}; \ No newline at end of file diff --git a/src/main/webapp/wayf.jsp b/src/main/webapp/wayf.jsp index 3a9e258..e30fc38 100644 --- a/src/main/webapp/wayf.jsp +++ b/src/main/webapp/wayf.jsp @@ -237,14 +237,14 @@ Recently used organizations: diff --git a/src/main/webapp/wayferror.jsp b/src/main/webapp/wayferror.jsp index a0cb29d..1fd564a 100644 --- a/src/main/webapp/wayferror.jsp +++ b/src/main/webapp/wayferror.jsp @@ -25,12 +25,12 @@

Please email administrator's name and include the following error message:

-

WAYF failure at ()

+

Discovery Service failure at ()

-

The DiscoveryService should not be called directly

+

The Discovery Service should not be called directly

-- cgit v1.1