Author: keith
Date: Tue Mar 11 03:45:36 2008
New Revision: 14700
Log:
Fixing Mashup-704
Modified:
trunk/mashup/java/modules/coreservices/sharingservice/src/org/wso2/mashup/share/service/MashupSharingService.java
Modified:
trunk/mashup/java/modules/coreservices/sharingservice/src/org/wso2/mashup/share/service/MashupSharingService.java
==============================================================================
---
trunk/mashup/java/modules/coreservices/sharingservice/src/org/wso2/mashup/share/service/MashupSharingService.java
(original)
+++
trunk/mashup/java/modules/coreservices/sharingservice/src/org/wso2/mashup/share/service/MashupSharingService.java
Tue Mar 11 03:45:36 2008
@@ -81,6 +81,9 @@
}
try {
+ if (MashupConstants.SYSTEM_USER.equals(username) ||
MashupConstants.SAMPLES_USER.equals(username)) {
+ throw new MashupFault("Cannot share to user accounts system and
sample.");
+ }
authenticated = MashupUtils.authenticateUser(username, password);
} catch (AuthenticatorException e) {
throw new MashupFault(e);
@@ -185,6 +188,10 @@
"A user can not be found matching the
information contained in this InfoCard.");
}
+ if (MashupConstants.SYSTEM_USER.equals(username) ||
MashupConstants.SAMPLES_USER.equals(username)) {
+ throw new MashupFault("Cannot share to user accounts
system and sample.");
+ }
+
//Now that we have verified this is a valid user, trying
to deploy the mashup in this server
if ((configuration
.getService(username +
MashupConstants.SEPARATOR_CHAR + serviceName) !=
_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev