Author: tyrell
Date: Fri May 16 06:20:05 2008
New Revision: 17127
Log:
Informing the user when sharing fails due to the non-availability of a trusted
certificate. A link is provided to the certificate manager.
Modified:
trunk/mashup/java/modules/www/js/mashup-utils.js
Modified: trunk/mashup/java/modules/www/js/mashup-utils.js
==============================================================================
--- trunk/mashup/java/modules/www/js/mashup-utils.js (original)
+++ trunk/mashup/java/modules/www/js/mashup-utils.js Fri May 16 06:20:05 2008
@@ -217,17 +217,15 @@
if (!error) {
this.params.innerHTML =
"Failed to share the service. Please refer to system admin for
more details.";
- }
-
- else if (error.reason.indexOf("Access Denied. Please login first") >
-1) {
+ } else if (error.reason.indexOf("Access Denied. Please login first") >
-1) {
wso2.wsf.Util.alertMessage("Your session has expired.");
//Envoking force logout
wso2.mashup.services.logout(wso2.mashup.handleLogout);
- }
-
- else if (error.reason.indexOf("UnknownHostException") > -1) {
+ } else if (error.reason.indexOf("UnknownHostException") > -1) {
this.params.innerHTML = "Failed to share the service. Unknown Host
: '" +
error.reason + "'";
+ } else if (error.reason.indexOf("No trusted certificate found") > -1) {
+ this.params.innerHTML = "Failed to share the service since a
trusted certificate was not found for the destination site.<br/> You can manage
your trusted certificates <a target='_blank' href='cert_manager.jsp'>here</a>.
(Link opens a new window)";
} else {
this.params.innerHTML = "Failed to share the service. " +
error.reason;
_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev