[Mashup-dev] svn commit r18809 - trunk/mashup/java/modules/admin/service/src/org/wso2/mashup/admin/service

2008-07-02 Thread keith
Author: keith
Date: Wed Jul  2 22:32:10 2008
New Revision: 18809
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=18809

Log:
Getting rid of the deprecated method and using the new one


Modified:
   
trunk/mashup/java/modules/admin/service/src/org/wso2/mashup/admin/service/MashupLoginServiceUT.java

Modified: 
trunk/mashup/java/modules/admin/service/src/org/wso2/mashup/admin/service/MashupLoginServiceUT.java
URL: 
http://wso2.org/svn/browse/wso2/trunk/mashup/java/modules/admin/service/src/org/wso2/mashup/admin/service/MashupLoginServiceUT.java?rev=18809&r1=18808&r2=18809&view=diff
==
--- 
trunk/mashup/java/modules/admin/service/src/org/wso2/mashup/admin/service/MashupLoginServiceUT.java
 (original)
+++ 
trunk/mashup/java/modules/admin/service/src/org/wso2/mashup/admin/service/MashupLoginServiceUT.java
 Wed Jul  2 22:32:10 2008
@@ -25,6 +25,7 @@
 import org.wso2.mashup.MashupFault;
 
 import java.util.Vector;
+import java.security.Principal;
 
 public class MashupLoginServiceUT {
 
@@ -57,7 +58,12 @@
 throw new MashupFault("Username not present in the request 
results");
 }
 
-String username = 
((WSSecurityEngineResult)((WSHandlerResult)results.get(0)).getResults().get(1)).getPrincipal().getName();
+WSHandlerResult result = (WSHandlerResult) results.get(0);
+WSSecurityEngineResult wsSecurityEngineResult =
+(WSSecurityEngineResult) result.getResults().get(1);
+String username =
+((Principal) 
wsSecurityEngineResult.get(WSSecurityEngineResult.TAG_PRINCIPAL))
+.getName();
 if (username == null) {
 throw new MashupFault("Username not present in the request 
results");
 }

___
Mashup-dev mailing list
Mashup-dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev


[Mashup-dev] [jira] Commented: (MASHUP-660) HTML sanitation on comments and bio information

2008-07-02 Thread Channa Gunawardena (JIRA)

[ 
https://wso2.org/jira/browse/MASHUP-660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17854#action_17854
 ] 

Channa Gunawardena commented on MASHUP-660:
---

Adding a policy based sanitization library, with a fairly permissive policy 
that should cover our typical user's formatting needs.

> HTML sanitation on comments and bio information
> ---
>
> Key: MASHUP-660
> URL: https://wso2.org/jira/browse/MASHUP-660
> Project: WSO2 Mashup Server
>  Issue Type: New Feature
>Reporter: Jonathan Marsh
>Assignee: Channa Gunawardena
> Fix For: 1.1
>
>
> Limit the HTML allowed in these places to formatting info only - similar to 
> what you could create using a rich text editor within the page.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



___
Mashup-dev mailing list
Mashup-dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev


[Mashup-dev] [jira] Work started: (MASHUP-660) HTML sanitation on comments and bio information

2008-07-02 Thread Channa Gunawardena (JIRA)

 [ 
https://wso2.org/jira/browse/MASHUP-660?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Work on MASHUP-660 started by Channa Gunawardena.

> HTML sanitation on comments and bio information
> ---
>
> Key: MASHUP-660
> URL: https://wso2.org/jira/browse/MASHUP-660
> Project: WSO2 Mashup Server
>  Issue Type: New Feature
>Reporter: Jonathan Marsh
>Assignee: Channa Gunawardena
> Fix For: 1.1
>
>
> Limit the HTML allowed in these places to formatting info only - similar to 
> what you could create using a rich text editor within the page.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



___
Mashup-dev mailing list
Mashup-dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev


[Mashup-dev] svn commit r18780 - trunk/mashup/java

2008-07-02 Thread keith
Author: keith
Date: Wed Jul  2 02:00:08 2008
New Revision: 18780
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=18780

Log:
Moving the version of icu4J into a maven2 property


Modified:
   trunk/mashup/java/pom.xml

Modified: trunk/mashup/java/pom.xml
URL: 
http://wso2.org/svn/browse/wso2/trunk/mashup/java/pom.xml?rev=18780&r1=18779&r2=18780&view=diff
==
--- trunk/mashup/java/pom.xml   (original)
+++ trunk/mashup/java/pom.xml   Wed Jul  2 02:00:08 2008
@@ -1211,7 +1211,7 @@
 
com.ibm.icu
icu4j
-   3.4.4
+   {icu4j.version}
 
 
org.openxri
@@ -1435,6 +1435,7 @@
 1.0
 1.5.1
 1.4.3
+3.4.4
 3.395
 
 

___
Mashup-dev mailing list
Mashup-dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev


[Mashup-dev] [jira] Closed: (MASHUP-874) Error when signing-in with Open ID

2008-07-02 Thread Yumani Ranaweera (JIRA)

 [ 
https://wso2.org/jira/browse/MASHUP-874?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yumani Ranaweera closed MASHUP-874.
---


Not a bug. Closing the JIRA.

> Error when signing-in with Open ID 
> ---
>
> Key: MASHUP-874
> URL: https://wso2.org/jira/browse/MASHUP-874
> Project: WSO2 Mashup Server
>  Issue Type: Bug
>  Components: Admin UI
>Affects Versions: Nightly
> Environment: WinXP, JDK1.5, IE7
>Reporter: Yumani Ranaweera
>Assignee: Channa Gunawardena
> Fix For: 1.1
>
> Attachments: OpenID.JPG
>
>
> My open ID login which I've been using was rejected after a while. I tried 
> restarting the server, deleting the cookies, restarting the machine, but the 
> server is not accepting my Open ID. Its prompting me to re-register instead 
> (see attached image).
> Steps:
> ---
> 1. Login to MS using a valid open ID
> 2. perform some tasks
> 3. Sign-out (or let a timeout happen)
> 4. Try signing-in using the same open ID again
> Issue:
> ---
> The error shown below appeared after the above step 4. 
> INFO [2008-07-02 10:59:56,562]  Starting discovery on URL identifier: 
> http://yumani.myopenid.com/
> INFO [2008-07-02 10:59:58,328]  Yadis discovery succeeded on 
> http://yumani.myopenid.com/
> INFO [2008-07-02 10:59:58,328]  Using Yadis normalized URL as claimedID: 
> http://yumani.myopenid.com/
> INFO [2008-07-02 10:59:58,328]  Discovered 3 OpenID endpoints.
> INFO [2008-07-02 10:59:58,328]  Trying to associate with 
> http://www.myopenid.com/server attempts left: 4
> WARN [2008-07-02 10:59:58,328]  Could not create association of type: 
> no-encryption:HMAC-SHA1:OpenID2
> WARN [2008-07-02 10:59:58,328]  Could not create association of type: 
> no-encryption:HMAC-SHA256:OpenID2
> INFO [2008-07-02 11:00:00,296]  Associated with 
> http://www.myopenid.com/server handle: {HMAC-SHA256}{4861d0d0}{ML3s7g==}
> INFO [2008-07-02 11:00:00,296]  Trying to associate with 
> http://www.myopenid.com/server attempts left: 4
> INFO [2008-07-02 11:00:00,296]  Found an existing association.
> INFO [2008-07-02 11:00:00,312]  Creating authentication request for 
> OP-endpoint: http://www.myopenid.com/server claimedID: 
> http://yumani.myopenid.com
>  OP-specific ID: http://yumani.myopenid.com/
> INFO [2008-07-02 11:00:00,312]  Return URL: 
> https://localhost:7443/identityaccept.jsp?calledfrom=signin&AuthenticationMethod=openid&FromIdentityProvi
> er=true matches realm: 
> https://localhost:7443/identityaccept.jsp?calledfrom=signin&AuthenticationMethod=openid&FromIdentityProvider=true
> WARN [2008-07-02 11:00:00,328]  RP discovery / realm validation disabled; 
> this option SHOULD be enabled for OPs
> INFO [2008-07-02 11:00:00,328]  Return URL: 
> https://localhost:7443/identityaccept.jsp?calledfrom=signin&AuthenticationMethod=openid&FromIdentityProvi
> er=true matches realm: 
> https://localhost:7443/identityaccept.jsp?calledfrom=signin&AuthenticationMethod=openid&FromIdentityProvider=true
> WARN [2008-07-02 11:00:00,328]  RP discovery / realm validation disabled; 
> this option SHOULD be enabled for OPs
> INFO [2008-07-02 11:00:05,109]  Verifying authentication response...
> INFO [2008-07-02 11:00:05,125]  Received positive auth response.
> WARN [2008-07-02 11:00:05,125]  Nonce is too old: 2008-06-25T05:00:05ZAy3DpB
> RROR [2008-07-02 11:00:05,125]  Nonce verification failed.
> RROR [2008-07-02 11:00:05,125]  Error in token verification
> rg.wso2.solutions.identity.relyingparty.RelyingPartyException: OpenID 
> verification failed
>at 
> org.wso2.solutions.identity.relyingparty.openid.OpenIDConsumer.verifyOpenID(OpenIDConsumer.java:203)
>at 
> org.wso2.solutions.identity.relyingparty.openid.OpenIDConsumer.setSessionAttributes(OpenIDConsumer.java:130)
>at 
> org.wso2.solutions.identity.relyingparty.servletfilter.RelyingPartyFilter.doFilter(RelyingPartyFilter.java:61)
>at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
>at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>at 
> org.wso2.mashup.transport.ServiceUIFilter.doFilter(ServiceUIFilter.java:207)
>at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
>at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>at 
> org.wso2.adminui.AdminUIServletFilter.doFilter(AdminUIServletFilter.java:135)
>at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
>at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
> 

[Mashup-dev] svn commit r18799 - trunk/mashup/java

2008-07-02 Thread keith
Author: keith
Date: Wed Jul  2 05:22:47 2008
New Revision: 18799
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=18799

Log:
Adding missing $


Modified:
   trunk/mashup/java/pom.xml

Modified: trunk/mashup/java/pom.xml
URL: 
http://wso2.org/svn/browse/wso2/trunk/mashup/java/pom.xml?rev=18799&r1=18798&r2=18799&view=diff
==
--- trunk/mashup/java/pom.xml   (original)
+++ trunk/mashup/java/pom.xml   Wed Jul  2 05:22:47 2008
@@ -1211,7 +1211,7 @@
 
com.ibm.icu
icu4j
-   {icu4j.version}
+   ${icu4j.version}
 
 
org.openxri

___
Mashup-dev mailing list
Mashup-dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev


[Mashup-dev] [jira] Commented: (MASHUP-826) Allows to upload the same certificate several times

2008-07-02 Thread Tyrell Perera (JIRA)

[ 
https://wso2.org/jira/browse/MASHUP-826?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17809#action_17809
 ] 

Tyrell Perera commented on MASHUP-826:
--

This can't be helped. There's no way to identify whether a given certificate is 
a duplicate of an existing one. Since there won't be an issue having 
duplicates, we can safely ignore this. WSAS follows the same approach.

> Allows to upload the same certificate several times
> ---
>
> Key: MASHUP-826
> URL: https://wso2.org/jira/browse/MASHUP-826
> Project: WSO2 Mashup Server
>  Issue Type: Bug
>  Components: Core
>Affects Versions: Nightly
> Environment: WinXp, JDK1.5, IE7
>Reporter: Yumani Ranaweera
>Assignee: Tyrell Perera
>Priority: Minor
> Fix For: 1.1
>
>
> Steps:
> 
> 1. Login to Mashupserver
> 2. Go to a mashup home page
> 3. Access 'Manage my trusted certificates'
> 4. Upload the same certificate more than once, with same 'alias' given at all 
> instances
> Issue:
> 
> It allows to add the same certificate with same alias. 
> NOTE: However, the alias appears with a name when the certificate details 
> appear in the display area.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



___
Mashup-dev mailing list
Mashup-dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev


[Mashup-dev] Test Mail

2008-07-02 Thread Deependra Ariyadewa

Test Mail.

Please ignore.

Thanks,

Deependra.




___
Mashup-dev mailing list
Mashup-dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev


[Mashup-dev] Test Mail

2008-07-02 Thread Deependra Ariyadewa

Test Mail.

Please ignore.

Thanks,

Deependra.




___
Mashup-dev mailing list
Mashup-dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev


[Mashup-dev] Test Mail

2008-07-02 Thread Deependra Ariyadewa

Test Mail.

Please ignore.

Thanks,

Deependra.



___
Mashup-dev mailing list
Mashup-dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev


[Mashup-dev] Test Mail

2008-07-02 Thread Deependra Ariyadewa

Test Mail.

Please ignore.

Thanks,

Deependra.




___
Mashup-dev mailing list
Mashup-dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev


[Mashup-dev] [jira] Resolved: (MASHUP-826) Allows to upload the same certificate several times

2008-07-02 Thread Tyrell Perera (JIRA)

 [ 
https://wso2.org/jira/browse/MASHUP-826?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tyrell Perera resolved MASHUP-826.
--

Resolution: Won't Fix

> Allows to upload the same certificate several times
> ---
>
> Key: MASHUP-826
> URL: https://wso2.org/jira/browse/MASHUP-826
> Project: WSO2 Mashup Server
>  Issue Type: Bug
>  Components: Core
>Affects Versions: Nightly
> Environment: WinXp, JDK1.5, IE7
>Reporter: Yumani Ranaweera
>Assignee: Tyrell Perera
>Priority: Minor
> Fix For: 1.1
>
>
> Steps:
> 
> 1. Login to Mashupserver
> 2. Go to a mashup home page
> 3. Access 'Manage my trusted certificates'
> 4. Upload the same certificate more than once, with same 'alias' given at all 
> instances
> Issue:
> 
> It allows to add the same certificate with same alias. 
> NOTE: However, the alias appears with a name when the certificate details 
> appear in the display area.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



___
Mashup-dev mailing list
Mashup-dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev


[Mashup-dev] Test Mail

2008-07-02 Thread Deependra Ariyadewa

Test Mail.

Please ignore.

Thanks,

Deependra.




___
Mashup-dev mailing list
Mashup-dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev


[Mashup-dev] [jira] Closed: (MASHUP-870) UI Issues - with new CSS

2008-07-02 Thread Yumani Ranaweera (JIRA)

 [ 
https://wso2.org/jira/browse/MASHUP-870?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yumani Ranaweera closed MASHUP-870.
---


Verified. Closed.

> UI Issues - with new CSS
> 
>
> Key: MASHUP-870
> URL: https://wso2.org/jira/browse/MASHUP-870
> Project: WSO2 Mashup Server
>  Issue Type: Bug
>  Components: Admin UI
>Affects Versions: Nightly
> Environment: WinXP, JDK1.5, IE7
>Reporter: Yumani Ranaweera
>Assignee: Rohitha Fernando
> Fix For: 1.1
>
>
> Help Text
> 
> 1. Add user help text -> mis-alignment appears in the outline of the text box.
> 2. Allow Internet guests -> there's a spelling mistake. 
> Open ID Registration - Can we change the font size of the message (surrounded 
> in the attachment)
> -

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



___
Mashup-dev mailing list
Mashup-dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev


[Mashup-dev] [jira] Closed: (MASHUP-869) Error when saving a new mashup from admin console

2008-07-02 Thread Yumani Ranaweera (JIRA)

 [ 
https://wso2.org/jira/browse/MASHUP-869?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yumani Ranaweera closed MASHUP-869.
---


verified. closed.

> Error when saving a new mashup from admin console
> -
>
> Key: MASHUP-869
> URL: https://wso2.org/jira/browse/MASHUP-869
> Project: WSO2 Mashup Server
>  Issue Type: Bug
>  Components: Admin UI
>Affects Versions: Nightly
> Environment: WinXP, JDK1.5, IE7
>Reporter: Yumani Ranaweera
>Assignee: Keith Godwin Chapman
> Fix For: 1.1
>
>
> Steps:
> ---
> 1. Login (from Open ID)
> 2. Select to 'Create a new mashup.' > give it a name
> 3. Click 'Save Changes' button in the editor.
> Issue:
> ---
> The mashup gets created. But the error below appears in the startup console.
> ERROR [2008-06-24 11:36:38,578]  Failed to read the mashup's custom ui from 
> disk.
> org.wso2.registry.exceptions.ResourceNotFoundException: Resource at '/test2' 
> does not exist.
> at org.wso2.registry.jdbc.BasicRegistry.get(BasicRegistry.java:130)
> at org.wso2.registry.jdbc.AtomicRegistry.get(AtomicRegistry.java:177)
> at org.wso2.registry.jdbc.JDBCRegistry.get(JDBCRegistry.java:299)
> at org.wso2.registry.session.UserRegistry.get(UserRegistry.java:185)
> at 
> org.wso2.mashup.utils.MashupUtils.readServiceUiSource(MashupUtils.java:436)
> at org.apache.jsp.editor_jsp._jspService(editor_jsp.java:682)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at 
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
> at 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
> at 
> org.wso2.mashup.transport.ServiceUIFilter.doFilter(ServiceUIFilter.java:207)
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
> at 
> org.wso2.adminui.AdminUIServletFilter.doFilter(AdminUIServletFilter.java:135)
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
> at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
> at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
> at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
> at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
> at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
> at 
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
> at 
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
> at 
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
> at 
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
> at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
> at java.lang.Thread.run(Thread.java:595)
> ERROR [2008-06-24 11:36:38,625]  Failed to read the mashup's gadget ui from 
> disk.
> org.wso2.registry.exceptions.ResourceNotFoundException: Resource at '/test2' 
> does not exist.
> at org.wso2.registry.jdbc.BasicRegistry.get(BasicRegistry.java:130)
> at org.wso2.registry.jdbc.AtomicRegistry.get(AtomicRegistry.java:177)
> at org.wso2.registry.jdbc.JDBCRegistry.get(JDBCRegistry.java:299)
> at org.wso2.registry.session.UserRegistry.get(UserRegistry.java:185)
> at 
> org.wso2.mashup.utils.MashupUtils.readGadgetUiSource(MashupUtils.java:502)
> at org.apache.jsp.editor_jsp._jspService(editor_jsp.java:709)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at 
> org.apache.jasper.servlet.JspServletWrapper.service(JspS

[Mashup-dev] svn commit r18792 - in trunk/mashup/java/modules: core/src/org/wso2/mashup core/src/org/wso2/mashup/webapp/userprofile www

2008-07-02 Thread channa
Author: channa
Date: Wed Jul  2 03:57:56 2008
New Revision: 18792
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=18792

Log:
Added pagination support for user listing, adding a method which retrieves user 
information only for a given page of users.


Modified:
   trunk/mashup/java/modules/core/src/org/wso2/mashup/MashupConstants.java
   
trunk/mashup/java/modules/core/src/org/wso2/mashup/webapp/userprofile/ManageUsers.java
   trunk/mashup/java/modules/www/manage_users.jsp

Modified: 
trunk/mashup/java/modules/core/src/org/wso2/mashup/MashupConstants.java
URL: 
http://wso2.org/svn/browse/wso2/trunk/mashup/java/modules/core/src/org/wso2/mashup/MashupConstants.java?rev=18792&r1=18791&r2=18792&view=diff
==
--- trunk/mashup/java/modules/core/src/org/wso2/mashup/MashupConstants.java 
(original)
+++ trunk/mashup/java/modules/core/src/org/wso2/mashup/MashupConstants.java 
Wed Jul  2 03:57:56 2008
@@ -280,5 +280,9 @@
 
 public static final int BUFFER_SIZE = 40960;
 
+// Default text populating the openID entry field.
 public static final String OPENID_URL_PREFIX = "http://";;
+
+// Default number of entries shows when displaying a paginated list of 
items. 
+public static final int DEFAULT_PAGE_SIZE = 10;
 }

Modified: 
trunk/mashup/java/modules/core/src/org/wso2/mashup/webapp/userprofile/ManageUsers.java
URL: 
http://wso2.org/svn/browse/wso2/trunk/mashup/java/modules/core/src/org/wso2/mashup/webapp/userprofile/ManageUsers.java?rev=18792&r1=18791&r2=18792&view=diff
==
--- 
trunk/mashup/java/modules/core/src/org/wso2/mashup/webapp/userprofile/ManageUsers.java
  (original)
+++ 
trunk/mashup/java/modules/core/src/org/wso2/mashup/webapp/userprofile/ManageUsers.java
  Wed Jul  2 03:57:56 2008
@@ -81,6 +81,82 @@
 }
 
 /**
+ * Gets a map containing details of a page of users registered on the 
mashup server, keyed by
+ * user name. Implements pagination support, using the existing API of the 
user manager,
+ * with user properties being retrieved only for a given page of user 
data. 
+ *
+ * @param request Servlet request object.
+ * @param start Start listing names at this position.
+ * @param pageLen List this many names.
+ * @return Map of user names.
+ */
+public static Map getUsers(HttpServletRequest request, int start, int 
pageLen) {
+Map userMap = new HashMap();
+UserRegistry userRegistry =
+(UserRegistry) 
request.getSession().getAttribute(MashupConstants.USER_REGISTRY);
+UserRealm realm = userRegistry.getUserRealm();
+int end = start + pageLen;
+
+try {
+// Get an instance of the user store admin.
+UserStoreAdmin userStoreAdmin = realm.getUserStoreAdmin();
+String[] allUsers = userStoreAdmin.getAllUserNames();
+
+// Making sure page start size is valid.
+if (start < allUsers.length) {
+
+// Setting actual page length.
+if (end > allUsers.length) {
+end = allUsers.length;
+}
+
+// Details are retrieved only for a single pageful of users.  
+for (int userCount = start; userCount < end; userCount++) {
+String fullName = (String) 
userStoreAdmin.getUserProperties(allUsers[userCount])
+.get(MashupConstants.FULL_NAME);
+// If the full name is available, use it, otherwise just 
show the user name.
+fullName = fullName != null ? fullName : 
allUsers[userCount];
+UserInformation userInformation =
+new UserInformation(fullName, isUserActive(realm,
+   
allUsers[userCount]),
+isUserDeletable(realm, 
allUsers[userCount]),
+isUserPromotable(realm, 
allUsers[userCount]),
+userHasRole(userStoreAdmin, 
allUsers[userCount],
+
RegistryConstants.ADMIN_ROLE));
+userMap.put(allUsers[userCount], userInformation);
+}
+}
+} catch (UserStoreException e) {
+log.error("User manager error retrieving user list", e);
+} catch (RegistryException e) {
+log.error("Registry error retrieving user list", e);
+}
+return userMap;
+}
+
+/**
+ * Gets the number of users registered on the mashup server.
+ *
+ * @param request Servlet request object.
+ * @return number of users.
+ */
+public static int getUserCount(HttpServletRequest request) {
+UserRegistry u

[Mashup-dev] Test Mail

2008-07-02 Thread Deependra Ariyadewa

Test Mail.

Please ignore.

Thanks,

Deependra.




___
Mashup-dev mailing list
Mashup-dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev


[Mashup-dev] [jira] Closed: (MASHUP-881) Prevent assigning admin rights to 'inactive' users

2008-07-02 Thread Yumani Ranaweera (JIRA)

 [ 
https://wso2.org/jira/browse/MASHUP-881?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yumani Ranaweera closed MASHUP-881.
---

Estimated Complexity: Moderate

Verified. Closed.

> Prevent assigning admin rights to 'inactive' users
> --
>
> Key: MASHUP-881
> URL: https://wso2.org/jira/browse/MASHUP-881
> Project: WSO2 Mashup Server
>  Issue Type: Improvement
>Reporter: Yumani Ranaweera
>Assignee: Channa Gunawardena
>
> A user that has been made inactive (deleted but not purged from the system) 
> can be granted admin privileges by an administrator, without first being 
> re-activated.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



___
Mashup-dev mailing list
Mashup-dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev


[Mashup-dev] [jira] Commented: (MASHUP-734) Add pagination support to take advantage of registry's pagination feature

2008-07-02 Thread Channa Gunawardena (JIRA)

[ 
https://wso2.org/jira/browse/MASHUP-734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17816#action_17816
 ] 

Channa Gunawardena commented on MASHUP-734:
---

Added pagination for 'manage users' page. Pagination support for queries to be 
added once registry API is provided.

> Add pagination support to take advantage of registry's pagination feature
> -
>
> Key: MASHUP-734
> URL: https://wso2.org/jira/browse/MASHUP-734
> Project: WSO2 Mashup Server
>  Issue Type: Improvement
>Reporter: Channa Gunawardena
>Assignee: Channa Gunawardena
> Fix For: 1.1
>
>
> The registry is expected to provide pagination support and the mashup server 
> can take advantage of this feature to provide pagination for queries. Provide 
> a default page size and the option for users to store a preferred page size.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



___
Mashup-dev mailing list
Mashup-dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev


[Mashup-dev] [jira] Commented: (MASHUP-668) Figure out a mechanism to add function to the global object

2008-07-02 Thread Keith Godwin Chapman (JIRA)

[ 
https://wso2.org/jira/browse/MASHUP-668?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17821#action_17821
 ] 

Keith Godwin Chapman commented on MASHUP-668:
-

Sent a note on this to the rhino mailing list. Lets see what there response is 
(http://groups.google.com/group/mozilla.dev.tech.js-engine.rhino/browse_thread/thread/1cf32ad4aa24f8d6#)

> Figure out a mechanism to add function to the global object
> ---
>
> Key: MASHUP-668
> URL: https://wso2.org/jira/browse/MASHUP-668
> Project: WSO2 Mashup Server
>  Issue Type: Task
>Reporter: Keith Godwin Chapman
>Assignee: Tyrell Perera
> Fix For: 1.1
>
>
> Figure out a mechanism to add function to the global object
> Would be nice to say setInterval instead of system.setInterval

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



___
Mashup-dev mailing list
Mashup-dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev


[Mashup-dev] Test Mail

2008-07-02 Thread Deependra Ariyadewa

Test Mail.

Please ignore.

Thanks,

Deependra.




___
Mashup-dev mailing list
Mashup-dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev


[Mashup-dev] [jira] Closed: (MASHUP-868) Error in generating an infor card login

2008-07-02 Thread Yumani Ranaweera (JIRA)

 [ 
https://wso2.org/jira/browse/MASHUP-868?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yumani Ranaweera closed MASHUP-868.
---


verified. closed.

> Error in generating an infor card login
> ---
>
> Key: MASHUP-868
> URL: https://wso2.org/jira/browse/MASHUP-868
> Project: WSO2 Mashup Server
>  Issue Type: Bug
>  Components: Core
>Affects Versions: Nightly
> Environment: WinXP, JDK1.5, IE7
>Reporter: Yumani Ranaweera
>Assignee: Channa Gunawardena
> Fix For: 1.1
>
>
> Steps:
> 
> 1. Allow Internet guests
> 2. Go to Sign-up page
> 3. Go to 'Register using infor card > create a new inforcard > send it
> Issue:
> 
> After the step 3 above the error given below appears.
> ERROR [2008-06-24 11:11:52,046]  Servlet.service() for servlet jsp threw 
> exception
> java.net.SocketException: Connection reset by peer: socket write error
> at java.net.SocketOutputStream.socketWrite0(Native Method)
> at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
> at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
> at 
> com.sun.net.ssl.internal.ssl.OutputRecord.writeBuffer(OutputRecord.java:283)
> at 
> com.sun.net.ssl.internal.ssl.OutputRecord.write(OutputRecord.java:272)
> at 
> com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:663)
> at 
> com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:59)
> at 
> org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:747)
> at 
> org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:432)
> at 
> org.apache.coyote.http11.InternalOutputBuffer.flush(InternalOutputBuffer.java:305)
> at 
> org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:992)
> at org.apache.coyote.Response.action(Response.java:183)
> at 
> org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:322)
> at 
> org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:293)
> at 
> org.apache.catalina.connector.CoyoteOutputStream.flush(CoyoteOutputStream.java:98)
> at 
> javax.imageio.stream.FileCacheImageOutputStream.flushBefore(FileCacheImageOutputStream.java:214)
> at 
> com.sun.imageio.plugins.png.ChunkStream.finish(PNGImageWriter.java:121)
> at 
> com.sun.imageio.plugins.png.PNGImageWriter.write_IHDR(PNGImageWriter.java:369)
> at 
> com.sun.imageio.plugins.png.PNGImageWriter.write(PNGImageWriter.java:1083)
> at org.apache.jsp.captcha_jsp._jspService(captcha_jsp.java:185)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at 
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
> at 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
> at 
> org.wso2.mashup.transport.ServiceUIFilter.doFilter(ServiceUIFilter.java:207)
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
> at 
> org.wso2.adminui.AdminUIServletFilter.doFilter(AdminUIServletFilter.java:135)
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
> at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
> at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
> at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
> at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
> at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
> at 
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
> at 
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
> at 
> org.ap

[Mashup-dev] [jira] Reopened: (MASHUP-660) HTML sanitation on comments and bio information

2008-07-02 Thread Channa Gunawardena (JIRA)

 [ 
https://wso2.org/jira/browse/MASHUP-660?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Channa Gunawardena reopened MASHUP-660:
---

Estimated Complexity: Moderate

> HTML sanitation on comments and bio information
> ---
>
> Key: MASHUP-660
> URL: https://wso2.org/jira/browse/MASHUP-660
> Project: WSO2 Mashup Server
>  Issue Type: New Feature
>Reporter: Jonathan Marsh
>Assignee: Channa Gunawardena
> Fix For: 1.1
>
>
> Limit the HTML allowed in these places to formatting info only - similar to 
> what you could create using a rich text editor within the page.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



___
Mashup-dev mailing list
Mashup-dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev


[Mashup-dev] Test Mail

2008-07-02 Thread Deependra Ariyadewa

Test Mail.

Please ignore.

Thanks,

Deependra.



___
Mashup-dev mailing list
Mashup-dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev


[Mashup-dev] Test Mail

2008-07-02 Thread Deependra Ariyadewa

Test Mail.

Please ignore.

Thanks,

Deependra.




___
Mashup-dev mailing list
Mashup-dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev


[Mashup-dev] [jira] Commented: (MASHUP-660) HTML sanitation on comments and bio information

2008-07-02 Thread Channa Gunawardena (JIRA)

[ 
https://wso2.org/jira/browse/MASHUP-660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17810#action_17810
 ] 

Channa Gunawardena commented on MASHUP-660:
---

Allow anchors (with http/https) divs, tables and make whitelisting elements 
easier.

> HTML sanitation on comments and bio information
> ---
>
> Key: MASHUP-660
> URL: https://wso2.org/jira/browse/MASHUP-660
> Project: WSO2 Mashup Server
>  Issue Type: New Feature
>Reporter: Jonathan Marsh
>Assignee: Channa Gunawardena
> Fix For: 1.1
>
>
> Limit the HTML allowed in these places to formatting info only - similar to 
> what you could create using a rich text editor within the page.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



___
Mashup-dev mailing list
Mashup-dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev


[Mashup-dev] [jira] Reopened: (MASHUP-890) build-setup not working

2008-07-02 Thread Channa Gunawardena (JIRA)

 [ 
https://wso2.org/jira/browse/MASHUP-890?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Channa Gunawardena reopened MASHUP-890:
---


> build-setup not working
> ---
>
> Key: MASHUP-890
> URL: https://wso2.org/jira/browse/MASHUP-890
> Project: WSO2 Mashup Server
>  Issue Type: Bug
>Reporter: Channa Gunawardena
>Assignee: Tyrell Perera
>Priority: Critical
> Fix For: 1.1
>
>
> Windows executable not being built.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



___
Mashup-dev mailing list
Mashup-dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev


[Mashup-dev] [jira] Commented: (MASHUP-890) build-setup not working

2008-07-02 Thread Channa Gunawardena (JIRA)

[ 
https://wso2.org/jira/browse/MASHUP-890?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17852#action_17852
 ] 

Channa Gunawardena commented on MASHUP-890:
---

Dashboard not included in windows installer when build-dashboard option is used 
with build-setup.

It is, however, built and included in the 'dist', so assuming a problem with 
the sequence.

> build-setup not working
> ---
>
> Key: MASHUP-890
> URL: https://wso2.org/jira/browse/MASHUP-890
> Project: WSO2 Mashup Server
>  Issue Type: Bug
>Reporter: Channa Gunawardena
>Assignee: Tyrell Perera
>Priority: Critical
> Fix For: 1.1
>
>
> Windows executable not being built.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



___
Mashup-dev mailing list
Mashup-dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev


[Mashup-dev] [jira] Updated: (MASHUP-815) Error when registering first user, in an .exe installation.

2008-07-02 Thread Channa Gunawardena (JIRA)

 [ 
https://wso2.org/jira/browse/MASHUP-815?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Channa Gunawardena updated MASHUP-815:
--

Priority: Blocker  (was: Major)

> Error when registering first user, in an .exe installation.
> ---
>
> Key: MASHUP-815
> URL: https://wso2.org/jira/browse/MASHUP-815
> Project: WSO2 Mashup Server
>  Issue Type: Bug
>  Components: Admin UI
>Affects Versions: Nightly
> Environment: WinXP, JDK1.5, FF
>Reporter: Yumani Ranaweera
>Assignee: Channa Gunawardena
>Priority: Blocker
> Fix For: 1.1
>
> Attachments: exe.JPG
>
>
> Steps:
> 
> 1. Install the mashup server from the .exe distribution.
> 2. Start the server from the monitor
> 3. Do the initial registration
> Issue:
> 
> After submitting the admin registration data, u get the error shown in the 
> attachment. Registration has not been successful. Because I was not able to 
> login as the admin user later.
> Also this appears only when u install via .exe distribution.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



___
Mashup-dev mailing list
Mashup-dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev


[Mashup-dev] [jira] Commented: (MASHUP-815) Error when registering first user, in an .exe installation.

2008-07-02 Thread Channa Gunawardena (JIRA)

[ 
https://wso2.org/jira/browse/MASHUP-815?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17851#action_17851
 ] 

Channa Gunawardena commented on MASHUP-815:
---

Upgraded to blocker as windows install is unusable unless axis2.xml is edited 
and the global engagement of wso2statistics and DynamicResponseHandler are 
commented out.

> Error when registering first user, in an .exe installation.
> ---
>
> Key: MASHUP-815
> URL: https://wso2.org/jira/browse/MASHUP-815
> Project: WSO2 Mashup Server
>  Issue Type: Bug
>  Components: Admin UI
>Affects Versions: Nightly
> Environment: WinXP, JDK1.5, FF
>Reporter: Yumani Ranaweera
>Assignee: Channa Gunawardena
>Priority: Blocker
> Fix For: 1.1
>
> Attachments: exe.JPG
>
>
> Steps:
> 
> 1. Install the mashup server from the .exe distribution.
> 2. Start the server from the monitor
> 3. Do the initial registration
> Issue:
> 
> After submitting the admin registration data, u get the error shown in the 
> attachment. Registration has not been successful. Because I was not able to 
> login as the admin user later.
> Also this appears only when u install via .exe distribution.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



___
Mashup-dev mailing list
Mashup-dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev


[Mashup-dev] [jira] Resolved: (MASHUP-735) Monitor: Add alerts for server crash

2008-07-02 Thread Jonathan Marsh (JIRA)

 [ 
https://wso2.org/jira/browse/MASHUP-735?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jonathan Marsh resolved MASHUP-735.
---

  Assignee: Jonathan Marsh  (was: Channa Gunawardena)
Resolution: Won't Fix

> Monitor: Add alerts for server crash
> 
>
> Key: MASHUP-735
> URL: https://wso2.org/jira/browse/MASHUP-735
> Project: WSO2 Mashup Server
>  Issue Type: Improvement
>Reporter: Channa Gunawardena
>Assignee: Jonathan Marsh
>
> Add the option of receiving e-mail notification when a monitored server fails 
> to respond when polled.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



___
Mashup-dev mailing list
Mashup-dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev


[Mashup-dev] [jira] Commented: (MASHUP-735) Monitor: Add alerts for server crash

2008-07-02 Thread Jonathan Marsh (JIRA)

[ 
https://wso2.org/jira/browse/MASHUP-735?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17850#action_17850
 ] 

Jonathan Marsh commented on MASHUP-735:
---

Deployed a mooshupMonitor mashup service internally that can notify us of any 
downtime.  This meets our immediate needs better.  We can plan to share this 
simple code with users (maybe a blog posting?) after the 1.5 launch.

> Monitor: Add alerts for server crash
> 
>
> Key: MASHUP-735
> URL: https://wso2.org/jira/browse/MASHUP-735
> Project: WSO2 Mashup Server
>  Issue Type: Improvement
>Reporter: Channa Gunawardena
>Assignee: Jonathan Marsh
>
> Add the option of receiving e-mail notification when a monitored server fails 
> to respond when polled.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



___
Mashup-dev mailing list
Mashup-dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev


[Mashup-dev] [jira] Commented: (MASHUP-882) Return of an xmllist with a single item should be just xml, not xmllist.

2008-07-02 Thread Keith Godwin Chapman (JIRA)

[ 
https://wso2.org/jira/browse/MASHUP-882?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17849#action_17849
 ] 

Keith Godwin Chapman commented on MASHUP-882:
-

Fixed in revision 18806. If the XMLList returned has only one child we annotate 
it as XML

> Return of an xmllist with a single item should be just xml, not xmllist.
> 
>
> Key: MASHUP-882
> URL: https://wso2.org/jira/browse/MASHUP-882
> Project: WSO2 Mashup Server
>  Issue Type: Bug
>Reporter: Jonathan Marsh
>Assignee: Keith Godwin Chapman
> Fix For: 1.1
>
>
> test.outputType = "xml";
> function test() {
> var x = ;
> return x.child;
> }
> In 1.0 this returned js:type="xml".  Now it seems to return 
> js:type="xmllist".  Not backward compatible.
> This doesn't matter in the e4x stub, but in the dom one, the xml element is 
> wrapped in an Array and it must be extracted.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



___
Mashup-dev mailing list
Mashup-dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev


[Mashup-dev] [jira] Resolved: (MASHUP-882) Return of an xmllist with a single item should be just xml, not xmllist.

2008-07-02 Thread Keith Godwin Chapman (JIRA)

 [ 
https://wso2.org/jira/browse/MASHUP-882?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Keith Godwin Chapman resolved MASHUP-882.
-

Resolution: Fixed

> Return of an xmllist with a single item should be just xml, not xmllist.
> 
>
> Key: MASHUP-882
> URL: https://wso2.org/jira/browse/MASHUP-882
> Project: WSO2 Mashup Server
>  Issue Type: Bug
>Reporter: Jonathan Marsh
>Assignee: Keith Godwin Chapman
> Fix For: 1.1
>
>
> test.outputType = "xml";
> function test() {
> var x = ;
> return x.child;
> }
> In 1.0 this returned js:type="xml".  Now it seems to return 
> js:type="xmllist".  Not backward compatible.
> This doesn't matter in the e4x stub, but in the dom one, the xml element is 
> wrapped in an Array and it must be extracted.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



___
Mashup-dev mailing list
Mashup-dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev


[Mashup-dev] [jira] Commented: (MASHUP-882) Return of an xmllist with a single item should be just xml, not xmllist.

2008-07-02 Thread Keith Godwin Chapman (JIRA)

[ 
https://wso2.org/jira/browse/MASHUP-882?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17848#action_17848
 ] 

Keith Godwin Chapman commented on MASHUP-882:
-

I guess we better annotate the return as xml if a returned xmlList has only one 
child

> Return of an xmllist with a single item should be just xml, not xmllist.
> 
>
> Key: MASHUP-882
> URL: https://wso2.org/jira/browse/MASHUP-882
> Project: WSO2 Mashup Server
>  Issue Type: Bug
>Reporter: Jonathan Marsh
>Assignee: Keith Godwin Chapman
> Fix For: 1.1
>
>
> test.outputType = "xml";
> function test() {
> var x = ;
> return x.child;
> }
> In 1.0 this returned js:type="xml".  Now it seems to return 
> js:type="xmllist".  Not backward compatible.
> This doesn't matter in the e4x stub, but in the dom one, the xml element is 
> wrapped in an Array and it must be extracted.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



___
Mashup-dev mailing list
Mashup-dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev


[Mashup-dev] [jira] Created: (MASHUP-891) Issue when setInterval is used in an init function

2008-07-02 Thread Keith Godwin Chapman (JIRA)
Issue when setInterval is used in an init function
--

 Key: MASHUP-891
 URL: https://wso2.org/jira/browse/MASHUP-891
 Project: WSO2 Mashup Server
  Issue Type: Bug
Reporter: Keith Godwin Chapman
Assignee: Keith Godwin Chapman
 Fix For: 1.1


java.lang.NullPointerException
at 
org.wso2.javascript.rhino.JavaScriptEngineUtils.loadGlobalProperties(JavaScriptEngineUtils.java:170)
at 
org.wso2.javascript.rhino.JavaScriptEngineUtils.loadGlobalPropertyObjects(JavaScriptEngineUtils.java:118)
at 
org.wso2.mashup.deployer.JSDeployer.processInitMethod(JSDeployer.java:642)
at 
org.wso2.mashup.deployer.JSDeployer.processService(JSDeployer.java:563)
at org.wso2.mashup.deployer.JSDeployer.deploy(JSDeployer.java:184)
at 
org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
at 
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:597)
at 
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
at 
org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:330)
at 
org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:227)
at 
org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:324)
at 
org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:64)
at 
org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:71)
at 
org.apache.axis2.deployment.scheduler.Scheduler$SchedulerTimerTask.run(Scheduler.java:83)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



___
Mashup-dev mailing list
Mashup-dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev


[Mashup-dev] svn commit r18803 - trunk/mashup/java/modules/hostobjects/src/org/wso2/mashup/hostobjects/email

2008-07-02 Thread keith
Author: keith
Date: Wed Jul  2 10:03:30 2008
New Revision: 18803
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=18803

Log:
Usinf getInstance instead of getDefaultInstance cause this can cause "access to 
default session denied" error


Modified:
   
trunk/mashup/java/modules/hostobjects/src/org/wso2/mashup/hostobjects/email/Email.java

Modified: 
trunk/mashup/java/modules/hostobjects/src/org/wso2/mashup/hostobjects/email/Email.java
URL: 
http://wso2.org/svn/browse/wso2/trunk/mashup/java/modules/hostobjects/src/org/wso2/mashup/hostobjects/email/Email.java?rev=18803&r1=18802&r2=18803&view=diff
==
--- 
trunk/mashup/java/modules/hostobjects/src/org/wso2/mashup/hostobjects/email/Email.java
  (original)
+++ 
trunk/mashup/java/modules/hostobjects/src/org/wso2/mashup/hostobjects/email/Email.java
  Wed Jul  2 10:03:30 2008
@@ -113,7 +113,7 @@
 smtpAuthenticator = new SMTPAuthenticator(username, password);
 email.setProperty("mail.smtp.auth", "true");
 }
-Session session = Session.getDefaultInstance(props, smtpAuthenticator);
+Session session = Session.getInstance(props, smtpAuthenticator);
 email.message = new MimeMessage(session);
 
 email.setProperty("mail.smtp.starttls.enable", "true");

___
Mashup-dev mailing list
Mashup-dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev


[Mashup-dev] [jira] Commented: (MASHUP-882) Return of an xmllist with a single item should be just xml, not xmllist.

2008-07-02 Thread Keith Godwin Chapman (JIRA)

[ 
https://wso2.org/jira/browse/MASHUP-882?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17847#action_17847
 ] 

Keith Godwin Chapman commented on MASHUP-882:
-

Here are two examples,

1. 
test.outputType = "xml";
function test() {
var x = ;
return x.child;
}

2.
test2.outputType = "xml";
function test2() {
var x = ;
return x.child;
}

In 1.0.2

1 returns http://services.mashup.wso2.org/test?xsd";>

2 returns http://services.mashup.wso2.org/test?xsd";>

On trunk 1 returns http://services.mashup.wso2.org/test?xsd";>http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:js="http://www.wso2.org/ns/jstype"; js:type="xmlList" 
xsi:type="xs:anyType">

and 2 returns http://services.mashup.wso2.org/test?xsd";>http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:js="http://www.wso2.org/ns/jstype"; js:type="xmlList" 
xsi:type="xs:anyType">

I think the behaviour we have now is correct. The MessageReceiver builds the 
response based on the XMLSchema. Both "xml" and "xmllist" will produce 
xs:anyType hence the MR does not know the difference between these annotations. 
It plainly puts the js:type based on the instance of the object returned. 

If needed we test the length of an xmllist before adding the js:type though. 
And make it js:type="xml" when the returned xmlList is of length 1.

WDYT?

> Return of an xmllist with a single item should be just xml, not xmllist.
> 
>
> Key: MASHUP-882
> URL: https://wso2.org/jira/browse/MASHUP-882
> Project: WSO2 Mashup Server
>  Issue Type: Bug
>Reporter: Jonathan Marsh
>Assignee: Keith Godwin Chapman
> Fix For: 1.1
>
>
> test.outputType = "xml";
> function test() {
> var x = ;
> return x.child;
> }
> In 1.0 this returned js:type="xml".  Now it seems to return 
> js:type="xmllist".  Not backward compatible.
> This doesn't matter in the e4x stub, but in the dom one, the xml element is 
> wrapped in an Array and it must be extracted.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



___
Mashup-dev mailing list
Mashup-dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev


[Mashup-dev] [jira] Commented: (MASHUP-859) The mashup Server goes into a endless loop if httpLocations such as whttp:location="{name"} is used

2008-07-02 Thread Keith Godwin Chapman (JIRA)

[ 
https://wso2.org/jira/browse/MASHUP-859?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17827#action_17827
 ] 

Keith Godwin Chapman commented on MASHUP-859:
-

Fixed in revision 18802. We now throw a deployment exception if the 
httplocation does not contain a constant part at the start of it.

> The mashup Server goes into a endless loop if httpLocations such as 
> whttp:location="{name"} is used
> ---
>
> Key: MASHUP-859
> URL: https://wso2.org/jira/browse/MASHUP-859
> Project: WSO2 Mashup Server
>  Issue Type: Bug
>Reporter: Keith Godwin Chapman
>Assignee: Keith Godwin Chapman
>Priority: Blocker
> Fix For: 1.1
>
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



___
Mashup-dev mailing list
Mashup-dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev


[Mashup-dev] [jira] Resolved: (MASHUP-859) The mashup Server goes into a endless loop if httpLocations such as whttp:location="{name"} is used

2008-07-02 Thread Keith Godwin Chapman (JIRA)

 [ 
https://wso2.org/jira/browse/MASHUP-859?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Keith Godwin Chapman resolved MASHUP-859.
-

Resolution: Fixed

> The mashup Server goes into a endless loop if httpLocations such as 
> whttp:location="{name"} is used
> ---
>
> Key: MASHUP-859
> URL: https://wso2.org/jira/browse/MASHUP-859
> Project: WSO2 Mashup Server
>  Issue Type: Bug
>Reporter: Keith Godwin Chapman
>Assignee: Keith Godwin Chapman
>Priority: Blocker
> Fix For: 1.1
>
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



___
Mashup-dev mailing list
Mashup-dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev


[Mashup-dev] svn commit r18802 - trunk/mashup/java/modules/javascriptdeployer/src/org/wso2/mashup/deployer

2008-07-02 Thread keith
Author: keith
Date: Wed Jul  2 07:15:42 2008
New Revision: 18802
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=18802

Log:
Fixing mashup-859


Modified:
   
trunk/mashup/java/modules/javascriptdeployer/src/org/wso2/mashup/deployer/JSDeployer.java

Modified: 
trunk/mashup/java/modules/javascriptdeployer/src/org/wso2/mashup/deployer/JSDeployer.java
URL: 
http://wso2.org/svn/browse/wso2/trunk/mashup/java/modules/javascriptdeployer/src/org/wso2/mashup/deployer/JSDeployer.java?rev=18802&r1=18801&r2=18802&view=diff
==
--- 
trunk/mashup/java/modules/javascriptdeployer/src/org/wso2/mashup/deployer/JSDeployer.java
   (original)
+++ 
trunk/mashup/java/modules/javascriptdeployer/src/org/wso2/mashup/deployer/JSDeployer.java
   Wed Jul  2 07:15:42 2008
@@ -941,7 +941,18 @@
 
 // If the user did not specify a httpLocation default it to 
operationName
 // cause this is the default that axis2 uses
-if (httpLocation == null) {
+if (httpLocation != null) {
+if (!httpLocation.startsWith("{{") && 
httpLocation.startsWith("{")) {
+
+// We cannot extract parameters off the URL in situations 
such as
+// foo.httpLocation="{param}"; Rather it should be
+// foo.httpLocation="bar/{param}";
+throw new DeploymentException("The httpLocation Annotation 
of operation " +
+name + " is invalid. The httpLocation found was 
\"" + httpLocation +
+"\". The httpLocation should not start with a 
parameter. " +
+"Please include a constant part at the start of 
the templete.");
+}
+} else {
 httpLocation = name;
 }
 

___
Mashup-dev mailing list
Mashup-dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev


[Mashup-dev] svn commit r18801 - trunk/mashup/java/modules/hostobjects/src/org/wso2/mashup/hostobjects/system

2008-07-02 Thread keith
Author: keith
Date: Wed Jul  2 07:14:51 2008
New Revision: 18801
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=18801

Log:
remove unused imports


Modified:
   
trunk/mashup/java/modules/hostobjects/src/org/wso2/mashup/hostobjects/system/SystemHostObject.java

Modified: 
trunk/mashup/java/modules/hostobjects/src/org/wso2/mashup/hostobjects/system/SystemHostObject.java
URL: 
http://wso2.org/svn/browse/wso2/trunk/mashup/java/modules/hostobjects/src/org/wso2/mashup/hostobjects/system/SystemHostObject.java?rev=18801&r1=18800&r2=18801&view=diff
==
--- 
trunk/mashup/java/modules/hostobjects/src/org/wso2/mashup/hostobjects/system/SystemHostObject.java
  (original)
+++ 
trunk/mashup/java/modules/hostobjects/src/org/wso2/mashup/hostobjects/system/SystemHostObject.java
  Wed Jul  2 07:14:51 2008
@@ -58,12 +58,10 @@
 import java.io.InputStreamReader;
 import java.io.Reader;
 import java.io.ByteArrayInputStream;
-import java.net.HttpURLConnection;
 import java.net.MalformedURLException;
 import java.net.SocketException;
 import java.net.URI;
 import java.net.URL;
-import java.net.URLConnection;
 import java.util.ArrayList;
 import java.util.Date;
 import java.util.HashMap;

___
Mashup-dev mailing list
Mashup-dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev


[Mashup-dev] Test Mail

2008-07-02 Thread Deependra Ariyadewa

Test Mail.

Please ignore.

Thanks,

Deependra.




___
Mashup-dev mailing list
Mashup-dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev


[Mashup-dev] Test Mail

2008-07-02 Thread Deependra Ariyadewa

Test Mail.

Please ignore.

Thanks,

Deependra.




___
Mashup-dev mailing list
Mashup-dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev