Re: [Dev] [AppM] [EMM] Patch for EMM to work with AppM 1.0.0

2015-04-02 Thread Chathura Dilan
Hi Yasassri,

I attached the README with the task

On Thu, Apr 2, 2015 at 11:23 AM, Yasassri Ratnayake yasas...@wso2.com
wrote:

 Hi Chathura,

 I'm unable to find a READ-ME file in the patch. Can you kindly point me to
 the correct location if I have missed it. If its not there can we add a
 Read-Me with the instructions?

 With Regards,

 On Thu, Apr 2, 2015 at 11:18 AM, Chathura Dilan chathu...@wso2.com
 wrote:

 Hi All,

 I have created patch for EMM 1.1.0 to work it with AppM 1.0.0. You can
 find the patch from this JIRA[1]


 [1] - https://wso2.org/jira/browse/APPM-692


 --
 Regards,

 Chatura Dilan Perera
 *(Senior Software Engineer** - WSO2 Inc.**)*
 www.dilan.me




 --
 Yasassri Ratnayake
 Software Engineer - QA
 WSO2 Inc ; http://wso2.com
 lean.enterprise.middleware
 *Mobile : +94715933168 %2B94715933168*
 *Blog : http://yasassriratnayake.blogspot.com/
 http://yasassriratnayake.blogspot.com/*




-- 
Regards,

Chatura Dilan Perera
*(Senior Software Engineer** - WSO2 Inc.**)*
www.dilan.me
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Adding apacheds/1.5.7.wso2v3 and nimbus/2.26.1.wso2v3

2015-04-02 Thread Prasad Tissera
Hi Kernel team,

Can you please review and merge [1].

[1]. https://github.com/wso2/orbit/pull/80

Thanks,

-- 
Prasad Tissera
Software Engineer.
Mobile : +94777223444
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB script mediator - inject Java class as a JS native object

2015-04-02 Thread Akila Ravihansa Perera
Hi Malaka,

That didn't work either but your comment put me into the right direction. I
was able to get it working by using importClass(PackagesJSUtils); in
the javascript.

Thanks a bunch for responding!

Thought of documenting everything in case someone else faces the same issue.

Here is my ESB API

?xml version=1.0 encoding=UTF-8?
api xmlns=http://ws.apache.org/ns/synapse;
 name=MySampleAPI2
 context=/MySampleAPI2
   resource methods=GET
  inSequence
 send
endpoint
   address uri=http://demo3177833.mockable.io/students/
/endpoint
 /send
  /inSequence
  outSequence
 property name=messageType value=application/json
scope=axis2/

 class name=org.example.JSONParseMediator
property name=createJSONPayload value=true /
 /class

 script language=js key=MyLocalJSEntry2
function=executeMain/
 send/
  /outSequence
   /resource
/api


And here is my JS

function executeMain(mc){

   importClass(Packages.org.example.JSUtils);

   var obj = {};
   var myJSUtilsTest = new JSUtils();
   obj.foo = myJSUtilsTest.getTestMessage(echo 123);
   obj.tee = myJSUtilsTest.getMessage();

}


Your class mediator can be anything but you need to have a plain simple
class like JSUtils with public methods which you want to expose to JS
engine. Make sure to package everything into the final jar file. Deploy
this jar file in ESB_HOME/repository/components/lib and restart ESB.

public class JSUtils {

private static final Log logger =
LogFactory.getLog(JSUtils.class.getName());
private ScriptEngineManager manager = new ScriptEngineManager();
private ScriptEngine scriptEngine;

public JSUtils() {
manager.registerEngineExtension(jsEngine, new
RhinoScriptEngineFactory());
scriptEngine = manager.getEngineByExtension(jsEngine);
}
public String getTestMessage(String test) {
return Testing JSUtils with  + test;
}
public Object getMessage() {
return Testing JSUtils with getMessage();
}

public Object parseJSON(String jsonStr) {
try {
return scriptEngine.eval(( + jsonStr + ));
} catch (Exception e) {
logger.error(Error when creating native object, e);
}
return null;
}

public Object stringifyJSON(Object jsonObject) {
try {
Object returnObj = ((Invocable)
scriptEngine).invokeMethod(this.scriptEngine.eval(JSON), stringify,
jsonObject);
return returnObj;
} catch (Exception e) {
logger.error(Error when creating native object, e);
}
return null;
   }
}

This should work with ESB 4.8.0 and 4.8.1. Hope this will be useful.


Thanks.

On Tue, Mar 31, 2015 at 4:18 AM, Malaka Silva mal...@wso2.com wrote:

 Hi Akila,

 You can try following,

 script language=js![CDATA[
  importPackage(Packages.org...JSUtils);
  ..
  var result = JSUtils.parseJSON(someJsonVar);
  ]]/script


 On Tue, Mar 31, 2015 at 3:31 PM, Akila Ravihansa Perera 
 raviha...@wso2.com wrote:

 Hi,

 Is it possible to do $subject? I've been playing around with wso2-synapse
 code base but couldn't find a way around without overriding ScriptMediator
 class which is something I'm trying to avoid.

 My requirement is that I've developed some Java Util methods which I
 would like to expose as JS native functions. I tried writing a class
 mediator and do the bindings but couldn't get it working.

 ScriptEngineManager manager = new ScriptEngineManager();
 manager.registerEngineExtension(jsEngine, new
 RhinoScriptEngineFactory());
 ScriptEngine scriptEngine = manager.getEngineByExtension(jsEngine);

 Bindings bindings = scriptEngine.createBindings();
 bindings.put(jsUtils, new JSUtils());

 JSUtils Java class has some string operations that should be accessible
 via JS. Inside JS script mediator I should be able to something like this;

 var result = jsUtils.parseJSON(someJsonVar);


 I know this can be done by purely using the class mediator to evaluate
 the whole JS source. But I'd much rather use built-in script mediator and
 only inject my custom Java classes onto it.

 I think this would be a cool feature to have, if it is not already
 supported.

 Thanks.

 --
 Akila Ravihansa Perera
 Software Engineer, WSO2

 Blog: http://ravihansa3000.blogspot.com




 --

 Best Regards,

 Malaka Silva
 Senior Tech Lead
 M: +94 777 219 791
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 Skype : malaka.sampath.silva
 LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
 Blog : http://mrmalakasilva.blogspot.com/

 WSO2, Inc.
 lean . enterprise . middleware
 http://www.wso2.com/
 http://www.wso2.com/about/team/malaka-silva/
 http://wso2.com/about/team/malaka-silva/

 Save a tree -Conserve nature  Save the world for your future. Print this
 email only if it is absolutely necessary.




-- 
Akila Ravihansa Perera
Software Engineer, WSO2

Blog: 

[Dev] Bouncycastle dependency version change in the synapse nhttp transporter

2015-04-02 Thread Prabath Ariyarathna
Hi All.

I'm going to change the version of  bouncycastle jar which is used inside
the synapse nhttpd transporter to support java7/8. Currently we are using
bcprov-jdk16 version 1.46 [1] which is only support for the java6 and new
bcprov-jdk15on version 1.52  [2] supports for the java5 to java8 but we
need to do some refactoring in synapse nhttp certification validation
process since new library has some API changes.

Appreciate your comments

[1] = *http://mvnrepository.com/artifact/org.bouncycastle/bcprov-jdk16
http://mvnrepository.com/artifact/org.bouncycastle/bcprov-jdk16*
[2] = *http://mvnrepository.com/artifact/org.bouncycastle/bcprov-jdk15on
http://mvnrepository.com/artifact/org.bouncycastle/bcprov-jdk15on*

thanks.
-- 

*Prabath Ariyarathna*

*Associate Technical Lead*

*WSO2, Inc. *

*lean . enterprise . middleware *


*Email: prabat...@wso2.com prabat...@wso2.com*

*Blog: http://prabu-lk.blogspot.com http://prabu-lk.blogspot.com*

*Flicker : https://www.flickr.com/photos/47759189@N08
https://www.flickr.com/photos/47759189@N08*

*Mobile: +94 77 699 4730 *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] App Manager latest build pack - 02-04-2015

2015-04-02 Thread Dinusha Senanayaka
Hi,

Please find $subject in [1].

[1]. http://builder1.us1.wso2.org/~appm/02-04-2015/

Regards,
Dinusha.

-- 
Dinusha Dilrukshi
Senior Software Engineer
WSO2 Inc.: http://wso2.com/
Mobile: +94725255071
Blog: http://dinushasblog.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please review and merge

2015-04-02 Thread Lasitha Wattaladeniya
Hi johan,

This is the fix PR [1] for public jira [2].

[1]. https://github.com/wso2/carbon-identity/pull/160
[2]. https://wso2.org/jira/browse/IDENTITY-2957

Thanks.

-- 
Lasitha Wattaladeniya
Software Engineer
WSO2, Inc. | http://wso2.com
lean. enterprise. middleware

Mobile : +94719397528
Blog : techreadme.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Adding apacheds/1.5.7.wso2v3 and nimbus/2.26.1.wso2v3

2015-04-02 Thread Aruna Karunarathna
Hi Prasad,

Please follow the Orbit bundle release guide.
I have added some comments regarding the PR. Please check.

Regards,
Aruna

On Wed, Apr 1, 2015 at 11:41 PM, Prasad Tissera pras...@wso2.com wrote:

 Hi Kernel team,

 Can you please review and merge [1].

 [1]. https://github.com/wso2/orbit/pull/80

 Thanks,

 --
 Prasad Tissera
 Software Engineer.
 Mobile : +94777223444

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




-- 

*Aruna Sujith Karunarathna* | Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 9040362 | Work: +94 112145345
Email: ar...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] LZ4 Orbit bundle to be added for casandra data reader.

2015-04-02 Thread Shani Ranasinghe
Hi Niranda,

It was not added. The PR was put on hold.

On Fri, Apr 3, 2015 at 9:01 AM, Niranda Perera nira...@wso2.com wrote:

 Hi Shani,

 may I know the status of this bundle? have you decided to include this in
 the orbit?

 rgds

 On Fri, Feb 13, 2015 at 3:46 PM, Shani Ranasinghe sh...@wso2.com wrote:

 Hi,

 Please hold the pull request. Sory for the inconvenience. As this is an
 optional feature required, it is not yet decided if to include this into
 the product in a rush.



 On Fri, Feb 13, 2015 at 9:43 AM, Shani Ranasinghe sh...@wso2.com wrote:

 Hi,

 Review comments Incorporated. Please let me know if anything needs to be
 changed.

 On Thu, Feb 12, 2015 at 7:33 PM, Bhathiya Jayasekara bhath...@wso2.com
 wrote:

 Hi Shani,

 Please make following changes.

 1) Make license year 2015.
 2) Add export-package version.
 3) Inside import-package, remove **;* and add *!net.jpountz.lz4.*;*

 Thanks,
 Bhathiya

 On Thu, Feb 12, 2015 at 7:07 PM, Shani Ranasinghe sh...@wso2.com
 wrote:

 Hi,

 Please review and commit the pull request in order to add the LZ4
 orbit bundle for the cassandra data reader.
 https://github.com/wso2/orbit/pull/60

 --
 Thanks and Regards
 *,Shani Ranasinghe*
 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 77 2273555
 linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab

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




 --
 *Bhathiya Jayasekara*
 *Software Engineer,*
 *WSO2 inc., http://wso2.com http://wso2.com*

 *Phone: +94715478185 %2B94715478185*
 *LinkedIn: http://www.linkedin.com/in/bhathiyaj
 http://www.linkedin.com/in/bhathiyaj*
 *Twitter: https://twitter.com/bhathiyax https://twitter.com/bhathiyax*
 *Blog: http://movingaheadblog.blogspot.com
 http://movingaheadblog.blogspot.com/*




 --
 Thanks and Regards
 *,Shani Ranasinghe*
 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 77 2273555
 linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab




 --
 Thanks and Regards
 *,Shani Ranasinghe*
 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 77 2273555
 linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab

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




 --
 *Niranda Perera*
 Software Engineer, WSO2 Inc.
 Mobile: +94-71-554-8430
 Twitter: @n1r44 https://twitter.com/N1R44




-- 
Thanks and Regards
*,Shani Ranasinghe*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 77 2273555
linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Authenticating with WSO2 Identity Server 5.0.0

2015-04-02 Thread Harsha Thirimanna
What do you mean by applying patch to the Identity Server 5.0.0 ? Did you
mean by Service Pack ?


*Harsha Thirimanna*
Senior Software Engineer; WSO2, Inc.; http://wso2.com
* http://www.apache.org/*
*email: **hars...@wso2.com* az...@wso2.com* cell: +94 71 5186770  , +94 *
*774617784twitter: **http://twitter.com/ http://twitter.com/afkham_azeez*
*harshathirimannlinked-in: **http:
http://lk.linkedin.com/in/afkhamazeez**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
http://www.linkedin.com/pub/harsha-thirimanna/10/ab8/122*

*Lean . Enterprise . Middleware*


On Thu, Apr 2, 2015 at 6:48 PM, michael.e...@sanofipasteur.com wrote:

  I can try that, but the user I have does not have write access to the
 server.



 *Michael Eyre*

 *From:* Dominique Debailleux [mailto:dominique.debaill...@woana.net]
 *Sent:* Thursday, April 02, 2015 8:40 AM
 *To:* Akila Ravihansa Perera
 *Cc:* Eyre, Michael (sanofi pasteur); WSO2 Developers' List
 *Subject:* Re: [Dev] Authenticating with WSO2 Identity Server 5.0.0



 Hi Michael



 You should try the read and write user store manager not the read only one.



 Dominique



 2015-04-01 22:20 GMT+02:00 Akila Ravihansa Perera raviha...@wso2.com:

 Hi Michael,



 Would it be possible for you to share the configs and wso2carbon.log? It's
 not easy to guess the problem without looking at the logs.



 Do you have email addresses as usernames? In that case you need to enable
 EnableEmailUsers property in carbon.xml. Did you configure a DomainName for
 your LDAP userstore? You can try to authenticate with
 domain_name\username



 Thanks.



 On Wed, Apr 1, 2015 at 9:45 AM, michael.e...@sanofipasteur.com wrote:

   I am working at evaluating WSO2 Identity Server and API Manager.



 I am trying to connect the Identity Server with our VDS/LDAP server.  I
 have created the UserStoreManager configuration in the user-mgt.xml file
 and set the AdminUser to the same user name (not the full connectionName),
 but I am not able to authenticate with this user.  When I navigate to the
 local carbon instance, enter the username and password, I get an login
 failure message.  The UserStoreManager is a read-only connection to the VDS
 server.  I have also disabled the internal LDAP server.  If I enable the
 internal LDAP server and configure the connection to the internal VDS
 server with a secondary user store, I can log in with the standard “admin”
 user and the Travelocity.com example works with that user, but even if I
 add one of the VDS user to the Travelocity internal group, I cannot
 authenticate with SAML SSO example.



 I am trying to do two things.



 1.Log into the Identity Server Management console with an
 internal LDAP user

 2.   Authenticate with Travelocity SAML SSO example with an internal
 LDAP user, either as a secondary user store or when the internal LDAP
 server is the primary (and only) user store.



 Thanks for your help on this issue



 *Michael Eyre*





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





 --

 Akila Ravihansa Perera
 Software Engineer, WSO2

 Blog: http://ravihansa3000.blogspot.com


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





 --

 Dominique Debailleux

 WoAnA - small.but.robust
 [image: Accèder au profil LinkedIn de Dominique Debailleux]
 http://www.linkedin.com/in/dominiquedebailleux

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


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


Re: [Dev] LZ4 Orbit bundle to be added for casandra data reader.

2015-04-02 Thread Niranda Perera
Hi Shani,

may I know the status of this bundle? have you decided to include this in
the orbit?

rgds

On Fri, Feb 13, 2015 at 3:46 PM, Shani Ranasinghe sh...@wso2.com wrote:

 Hi,

 Please hold the pull request. Sory for the inconvenience. As this is an
 optional feature required, it is not yet decided if to include this into
 the product in a rush.



 On Fri, Feb 13, 2015 at 9:43 AM, Shani Ranasinghe sh...@wso2.com wrote:

 Hi,

 Review comments Incorporated. Please let me know if anything needs to be
 changed.

 On Thu, Feb 12, 2015 at 7:33 PM, Bhathiya Jayasekara bhath...@wso2.com
 wrote:

 Hi Shani,

 Please make following changes.

 1) Make license year 2015.
 2) Add export-package version.
 3) Inside import-package, remove **;* and add *!net.jpountz.lz4.*;*

 Thanks,
 Bhathiya

 On Thu, Feb 12, 2015 at 7:07 PM, Shani Ranasinghe sh...@wso2.com
 wrote:

 Hi,

 Please review and commit the pull request in order to add the LZ4 orbit
 bundle for the cassandra data reader.
 https://github.com/wso2/orbit/pull/60

 --
 Thanks and Regards
 *,Shani Ranasinghe*
 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 77 2273555
 linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab

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




 --
 *Bhathiya Jayasekara*
 *Software Engineer,*
 *WSO2 inc., http://wso2.com http://wso2.com*

 *Phone: +94715478185 %2B94715478185*
 *LinkedIn: http://www.linkedin.com/in/bhathiyaj
 http://www.linkedin.com/in/bhathiyaj*
 *Twitter: https://twitter.com/bhathiyax https://twitter.com/bhathiyax*
 *Blog: http://movingaheadblog.blogspot.com
 http://movingaheadblog.blogspot.com/*




 --
 Thanks and Regards
 *,Shani Ranasinghe*
 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 77 2273555
 linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab




 --
 Thanks and Regards
 *,Shani Ranasinghe*
 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 77 2273555
 linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab

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




-- 
*Niranda Perera*
Software Engineer, WSO2 Inc.
Mobile: +94-71-554-8430
Twitter: @n1r44 https://twitter.com/N1R44
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Using LogViewerClient in Integration Tests

2015-04-02 Thread Maheeka Jayasuriya
Hi Saneth/Waruna,

I was able to resolve the issue by using the before log length and after
log length and iterating between these two counts.

There still seem to be an issue with the clearLogs() even when tested with
a 10 sec wait. Therefore, I am sticking with above approach.

Thanks,
Maheeka


Maheeka Jayasuriya
Software Engineer
Mobile : +9450661

On Wed, Apr 1, 2015 at 2:33 PM, Saneth Dharmakeerthi sane...@wso2.com
wrote:

 Hi Maheeka,

 You can filter the logs while iterating over the logs using
 logEvent.getLogTime() which return the logged time in the format of
 2015-04-01 14:16:07,187. You need to covert  this to a timestamp and
 filter only  logs that was created within the test method scope.


 Thanks and Best Regards,

 Saneth Dharmakeerthi
 Senior Software Engineer
 WSO2, Inc.
 Mobile: +94772325511

 On Wed, Apr 1, 2015 at 1:05 PM, Waruna Perera waru...@wso2.com wrote:

 Hi Maheeka,

 Avoid using sleep. Use  time out  function.

 Thanks,

 On Wed, Apr 1, 2015 at 12:35 PM, Maheeka Jayasuriya mahe...@wso2.com
 wrote:

 Hi Waruna,

 In that case, what would be the alternative to do the above? Since
 iterating over the new logs (using before length and after length) also did
 not work for me. Or is the issue only in a delay? If so a sleep would solve
 the issue?

 Thanks,
 Maheeka

 Maheeka Jayasuriya
 Software Engineer
 Mobile : +9450661

 On Wed, Apr 1, 2015 at 11:20 AM, Waruna Perera waru...@wso2.com wrote:

 Hi Maheeka,

 We have encountered issue with delay of clear logs in our test cases at
 times. So you will have to consider that.

 Thanks,

 Waruna

 On Wed, Apr 1, 2015 at 11:15 AM, Maheeka Jayasuriya mahe...@wso2.com
 wrote:

 Hi,

 I want to read the logs in ESB to do perform a few assertions.
 However, since I have multiple test methods in the test case, I am unable
 to find the correct required log.

 To further elaborate, my first test case prints 20 of required logs
 and the second test case prints 100. When I iterate through all logs,
 although logViewer.clearLogs() is done at the start of each method, the
 count for the second run test case is 120 and not 20 or 100 (I am 
 verifying
 the log count in the test case). I verified with the log length before and
 after clearLogs() is called and the length remains the same. What is the
 expectation of the clearLogs() method. Does it clear all the system logs 
 or
 something else?

 If I use the length of the logs before and after the test
 functionality and iterate through that, the required logs are not
 available.

 Also believe, logViewer.getAllRemoteSystemLogs() is the successor to
 deprecated method logViewer.getAllSystemLogs() ?

 Thanks,
 Maheeka

 Maheeka Jayasuriya
 Software Engineer
 Mobile : +9450661

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




 --
 Waruna Perera
 Senior Software Engineer - Test Automation
 Mobile: +94 77 3867037
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.





 --
 Waruna Perera
 Senior Software Engineer - Test Automation
 Mobile: +94 77 3867037
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.

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



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


Re: [Dev] Applying QOS from developer studio with ESB 4.9.0 release

2015-04-02 Thread Chanaka Fernando
Hi Sohani,

Please see my comments inline.

AFAIK when we deploy a proxy which has allowRoles parameter, the
'UM_PERMISSION ' table is getting updated and an entry is created with that
ID in the UM_ROLE_PERMISSION table. This works fine with ESB 4.8.1 but with
ESB 4.9.0 the UM_PERMISSION table is not getting updated. Therefore, I
think we need to modify the existing deployer to handle this task as we
have discussed during the last meeting. Correct me if I am wrong.

-- I have also checked in the code and this allowRoles property do the
same operation in the JDBCAuthorizationManager class when we add the user
roles from the management console. So it should work as expected. But
KasunG's point is that this is a kind of a quick fix and this may not work
for axis2 services.

When concerning the new suggestion of including the user role information
as a registry property of the registry resource, how can we handle updating
the user role information in the database since we don't have the proxy
information at the time we create the policy file? Can someone please
advise on the way to proceed with this.

-- Here you don't need to add this information to the database from DevS
side. At the deployment time, deployer will check the user role from the
resource properties and add that to the relevant database using the
JDBCAuthorizationManager class.

Shall we have a meeting to discuss about this further? WDYT?

+1 for a meeting.


Thanks,
Chanaka




On Thu, Apr 2, 2015 at 3:32 PM, Sohani Weerasinghe soh...@wso2.com wrote:

 Hi All,

 AFAIK when we deploy a proxy which has allowRoles parameter, the
 'UM_PERMISSION ' table is getting updated and an entry is created with that
 ID in the UM_ROLE_PERMISSION table. This works fine with ESB 4.8.1 but with
 ESB 4.9.0 the UM_PERMISSION table is not getting updated. Therefore, I
 think we need to modify the existing deployer to handle this task as we
 have discussed during the last meeting. Correct me if I am wrong.

 When concerning the new suggestion of including the user role information
 as a registry property of the registry resource, how can we handle updating
 the user role information in the database since we don't have the proxy
 information at the time we create the policy file? Can someone please
 advise on the way to proceed with this.

 Shall we have a meeting to discuss about this further? WDYT?

 Thanks,
 Sohani


 Sohani Weerasinghe
 Software Engineer
 WSO2, Inc: http://wso2.com

 Mobile  : +94 716439774
 Blog :http://christinetechtips.blogspot.com/
 Twitter  : https://twitter.com/sohanichristine

 On Tue, Mar 31, 2015 at 5:11 PM, KasunG Gajasinghe kas...@wso2.com
 wrote:

 Hi,

 On Tue, Mar 31, 2015 at 4:59 PM, Isuru Udana isu...@wso2.com wrote:

 Hi KasunG,

 On Tue, Mar 31, 2015 at 4:32 PM, KasunG Gajasinghe kas...@wso2.com
 wrote:

 Hi,

 Two questions -

 1. Why do we need a separate axis2 deployer to handle just user roles?

 We were thinking about modifying existing deployers (proxy deployer etc)
 to call the relevant component in the security side.


 To add the policy to a service, you can also use an AxisObserver. With
 this, you won't need to patch the deployers. You can re-use the existing
 code in DeploymentInterceptor class in carbon core component on applying
 policies to runtime AxisService object.





 2. Isn't it much cleaner if we keep the list of user roles as a
 registry property of the registry resource that contains the policy? Then,
 this won't depend on the service type, and the security configuration will
 be located in a single place. I believe allowRoles was provided as a quick
 fix for a support ticket.

 This is a very good suggestion. Let's consider this option as well.


 Sounds good!



 Thanks.

 On Tue, Mar 31, 2015 at 3:53 PM, Sohani Weerasinghe soh...@wso2.com
 wrote:

 Meeting notes is as follows

 Participants: Jasintha, Susinda, Awanthika, Chanaka, IsuruU, Johann,
 Godwin, Dulindra, Sohani

 Notes:

 From the Developer Studio perspective, currently we are implementing
 the security policy as a registry resource and as per the discussion had 
 we
 will use the parameter 'allowRoles' to define the relevant user roles. 
 This
 will be a service level parameter and the roles can be obtained by
 connecting to the server.

 This parameter is already available with ESB and this needs to be
 facilitated by DSS and Axis2.

 From the Servers (ESB, DSS and AS) a deployer needs to be implemented
 to handle user roles at the run time

 Please add points to this if I have missed anything.

 Thanks,
 Sohani

 Sohani Weerasinghe
 Software Engineer
 WSO2, Inc: http://wso2.com

 Mobile  : +94 716439774
 Blog :http://christinetechtips.blogspot.com/
 Twitter  : https://twitter.com/sohanichristine

 On Thu, Mar 26, 2015 at 3:35 PM, Sohani Weerasinghe soh...@wso2.com
 wrote:

 Hi Chanaka,

 Thanks for the explanation and as per the offline discussion we had,
  let's have a meeting on next week so that we can discuss and finalize 
 

Re: [Dev] Authenticating with WSO2 Identity Server 5.0.0

2015-04-02 Thread Dominique Debailleux
Hi Michael

You should try the read and write user store manager not the read only one.

Dominique

2015-04-01 22:20 GMT+02:00 Akila Ravihansa Perera raviha...@wso2.com:

 Hi Michael,

 Would it be possible for you to share the configs and wso2carbon.log? It's
 not easy to guess the problem without looking at the logs.

 Do you have email addresses as usernames? In that case you need to enable
 EnableEmailUsers property in carbon.xml. Did you configure a DomainName for
 your LDAP userstore? You can try to authenticate with
 domain_name\username

 Thanks.

 On Wed, Apr 1, 2015 at 9:45 AM, michael.e...@sanofipasteur.com wrote:

  I am working at evaluating WSO2 Identity Server and API Manager.



 I am trying to connect the Identity Server with our VDS/LDAP server.  I
 have created the UserStoreManager configuration in the user-mgt.xml file
 and set the AdminUser to the same user name (not the full connectionName),
 but I am not able to authenticate with this user.  When I navigate to the
 local carbon instance, enter the username and password, I get an login
 failure message.  The UserStoreManager is a read-only connection to the VDS
 server.  I have also disabled the internal LDAP server.  If I enable the
 internal LDAP server and configure the connection to the internal VDS
 server with a secondary user store, I can log in with the standard “admin”
 user and the Travelocity.com example works with that user, but even if I
 add one of the VDS user to the Travelocity internal group, I cannot
 authenticate with SAML SSO example.



 I am trying to do two things.



 1.Log into the Identity Server Management console with an
 internal LDAP user

 2.   Authenticate with Travelocity SAML SSO example with an internal
 LDAP user, either as a secondary user store or when the internal LDAP
 server is the primary (and only) user store.



 Thanks for your help on this issue



 *Michael Eyre*



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




 --
 Akila Ravihansa Perera
 Software Engineer, WSO2

 Blog: http://ravihansa3000.blogspot.com

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




-- 
Dominique Debailleux
WoAnA - small.but.robust
[image: Accèder au profil LinkedIn de Dominique Debailleux]
http://www.linkedin.com/in/dominiquedebailleux
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please Merge the PR

2015-04-02 Thread Lasitha Wattaladeniya
Hi,

This is the PR[1] for the Jira [2].

[1]. https://github.com/wso2/carbon-identity/pull/162
[2]. https://wso2.org/jira/browse/IDENTITY-3177

Thanks.

-- 
Lasitha Wattaladeniya
Software Engineer
WSO2, Inc. | http://wso2.com
lean. enterprise. middleware

Mobile : +94719397528
Blog : techreadme.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Applying QOS from developer studio with ESB 4.9.0 release

2015-04-02 Thread Sohani Weerasinghe
Hi All,

AFAIK when we deploy a proxy which has allowRoles parameter, the
'UM_PERMISSION ' table is getting updated and an entry is created with that
ID in the UM_ROLE_PERMISSION table. This works fine with ESB 4.8.1 but with
ESB 4.9.0 the UM_PERMISSION table is not getting updated. Therefore, I
think we need to modify the existing deployer to handle this task as we
have discussed during the last meeting. Correct me if I am wrong.

When concerning the new suggestion of including the user role information
as a registry property of the registry resource, how can we handle updating
the user role information in the database since we don't have the proxy
information at the time we create the policy file? Can someone please
advise on the way to proceed with this.

Shall we have a meeting to discuss about this further? WDYT?

Thanks,
Sohani


Sohani Weerasinghe
Software Engineer
WSO2, Inc: http://wso2.com

Mobile  : +94 716439774
Blog :http://christinetechtips.blogspot.com/
Twitter  : https://twitter.com/sohanichristine

On Tue, Mar 31, 2015 at 5:11 PM, KasunG Gajasinghe kas...@wso2.com wrote:

 Hi,

 On Tue, Mar 31, 2015 at 4:59 PM, Isuru Udana isu...@wso2.com wrote:

 Hi KasunG,

 On Tue, Mar 31, 2015 at 4:32 PM, KasunG Gajasinghe kas...@wso2.com
 wrote:

 Hi,

 Two questions -

 1. Why do we need a separate axis2 deployer to handle just user roles?

 We were thinking about modifying existing deployers (proxy deployer etc)
 to call the relevant component in the security side.


 To add the policy to a service, you can also use an AxisObserver. With
 this, you won't need to patch the deployers. You can re-use the existing
 code in DeploymentInterceptor class in carbon core component on applying
 policies to runtime AxisService object.





 2. Isn't it much cleaner if we keep the list of user roles as a registry
 property of the registry resource that contains the policy? Then, this
 won't depend on the service type, and the security configuration will be
 located in a single place. I believe allowRoles was provided as a quick fix
 for a support ticket.

 This is a very good suggestion. Let's consider this option as well.


 Sounds good!



 Thanks.

 On Tue, Mar 31, 2015 at 3:53 PM, Sohani Weerasinghe soh...@wso2.com
 wrote:

 Meeting notes is as follows

 Participants: Jasintha, Susinda, Awanthika, Chanaka, IsuruU, Johann,
 Godwin, Dulindra, Sohani

 Notes:

 From the Developer Studio perspective, currently we are implementing
 the security policy as a registry resource and as per the discussion had we
 will use the parameter 'allowRoles' to define the relevant user roles. This
 will be a service level parameter and the roles can be obtained by
 connecting to the server.

 This parameter is already available with ESB and this needs to be
 facilitated by DSS and Axis2.

 From the Servers (ESB, DSS and AS) a deployer needs to be implemented
 to handle user roles at the run time

 Please add points to this if I have missed anything.

 Thanks,
 Sohani

 Sohani Weerasinghe
 Software Engineer
 WSO2, Inc: http://wso2.com

 Mobile  : +94 716439774
 Blog :http://christinetechtips.blogspot.com/
 Twitter  : https://twitter.com/sohanichristine

 On Thu, Mar 26, 2015 at 3:35 PM, Sohani Weerasinghe soh...@wso2.com
 wrote:

 Hi Chanaka,

 Thanks for the explanation and as per the offline discussion we had,
  let's have a meeting on next week so that we can discuss and finalize the
 things.

 Regards,
 Sohani

 Sohani Weerasinghe
 Software Engineer
 WSO2, Inc: http://wso2.com

 Mobile  : +94 716439774
 Blog :http://christinetechtips.blogspot.com/
 Twitter  : https://twitter.com/sohanichristine

 On Thu, Mar 26, 2015 at 3:26 PM, Chanaka Fernando chana...@wso2.com
 wrote:

 Hi Sohani,

 I got your idea. But what I meant was that this does not give any
 additional security. BTW, I am not against the registry based approach  
 :)

 Thanks,
 Chanaka



 On Thu, Mar 26, 2015 at 3:05 PM, Sohani Weerasinghe soh...@wso2.com
 wrote:

 @Chanaka : I just considered the fact that if we specify it as a
 parameter then that information will be visible. That is why thought of
 saving it as a registry resource would be better. But if we can continue
 with the parameter then we'll continue the testing with that.

 Regards,
 Sohani

 Sohani Weerasinghe
 Software Engineer
 WSO2, Inc: http://wso2.com

 Mobile  : +94 716439774
 Blog :http://christinetechtips.blogspot.com/
 Twitter  : https://twitter.com/sohanichristine

 On Thu, Mar 26, 2015 at 3:02 PM, Chanaka Fernando chana...@wso2.com
  wrote:

 Hi Sohani,

 What is the additional security you get from having that parameter
 in registry?

 Thanks,
 Chanaka

 On Thu, Mar 26, 2015 at 2:55 PM, Sohani Weerasinghe 
 soh...@wso2.com wrote:

 Hi Chanaka,

 Please find my comments inline

 Sohani Weerasinghe
 Software Engineer
 WSO2, Inc: http://wso2.com

 Mobile  : +94 716439774
 Blog :http://christinetechtips.blogspot.com/
 Twitter  : https://twitter.com/sohanichristine

 On Thu, 

[Dev] Some suggestions for ML

2015-04-02 Thread Lochana
I think it is better to give an option to upload a file (csv or tsv) for 
predictions (rather than asking user to  input values for features).

https://docs.wso2.com/display/ML100/ML+UI+Workflow#MLUIWorkflow-Makingpredictions

Found some mistakes in the documentation.. not sure whether this is the 
right place to discuss those..


https://docs.wso2.com/display/ML100/Architecture

Figure: Machine REST API

The diabetes dataset used in examples has nothing to do with diabetes in 
India. It is about diabetes among certain group of native indians in the US.

https://archive.ics.uci.edu/ml/datasets/Pima+Indians+Diabetes

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


[Dev] Set the FTP home to a different location except user home

2015-04-02 Thread Amalka Subasinghe
Hi,

Does anyone know how to do the $subject?

Thanks
Amalka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Set the FTP home to a different location except user home

2015-04-02 Thread Amalka Subasinghe
Tried different articles but couldn't find a correct one

On Fri, Apr 3, 2015 at 9:17 AM, Amalka Subasinghe ama...@wso2.com wrote:

 Hi,

 Does anyone know how to do the $subject?

 Thanks
 Amalka




-- 

Amalka Subasinghe
Senior Software Engineer
WSO2 Inc.
Mobile: +94 77 9401267
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [G-Reg][ES] Integrating ES2 to G-reg/Publisher Issues

2015-04-02 Thread Sagara Gunathunga
On Thu, Apr 2, 2015 at 7:53 PM, Sameera Medagammaddegedara 
samee...@wso2.com wrote:

 Hi,

 1. When we add a new custom RXT to G-Reg, the integrated Publisher should
 also show it (without creating any ES asset extension).
 While testing this scenario for M4 (to be released) pack, the new
 RXT(application.rxt) is shown in the list down menu. Yet when I click the
 'Add' button to add a new entry, following error occured

 This is occurring due to the Publisher attempting to auto populate
 provider names.Since the endpoint.rxt does not have a provider this is
 causing the above issue when rendering the Create, Update and Details pages.

 This issue will be fixed prior to the next GREG milestone [1]


They are users waiting to evaluate GC from M3 release onwards and this is a
very core use case for G-Reg, hence this issue is a blocker and we can't
release G-Reg M4 with this issue, specially we can't break such important
feature worked properly in previous releases.


BTW this indicate we don't have enough test cases in both ES/G-Reg,
@Denuwanthi, in the meantime can we add a test case to G-Reg to verify this
issue ?


 2. RXT hot deployment is not happening in Publisher.
 When we add a new RXT, from G-Reg admin console, and go to Publisher , it
 is not added in Publisher front.
 We need to restart the server in order to view it. This might be a
 problem in production environments if we have to restart the server.

  Noted. This is a feature which we are planning to support in the future.


+1 we can wait for this feature.

Thanks !


 *Reference*
 [1] https://wso2.org/jira/browse/STORE-663

 Thank You,
 Sameera

 On Thu, Apr 2, 2015 at 7:29 PM, Denuwanthi De Silva denuwan...@wso2.com
 wrote:

 Hi,

 While migrating G-Reg 5.0.0-SNAPSHOT UI to ES 2.0.1-SNAPSHOT, I faced the
 following issues:

 1. When we add a new custom RXT to G-Reg, the integrated Publisher should
 also show it (without creating any ES asset extension).
 While testing this scenario for M4 (to be released) pack, the new
 RXT(application.rxt) is shown in the list down menu. Yet when I click the
 'Add' button to add a new entry, following error occured

 HTTP Status 500 - org.mozilla.javascript.WrappedException: Wrapped
 org.jaggeryjs.scriptengine.exceptions.ScriptException:
 org.mozilla.javascript.EcmaError: TypeError: Cannot set property value of
 undefined to org.mozilla.javascript.NativeJavaObject@4d817183 (eval
 code#1(eval)#266) (/publisher/controllers/assets-router.jag#75)
 What could be the issue for this? We should be able to support this
 without creating any custom asset extension.
 In the G-Reg 5.0.0 M3 pack, we did not occur any such error, and we could
 deploy a new RXT and add entries without problem.


 2. RXT hot deployment is not happening in Publisher.
 When we add a new RXT, from G-Reg admin console, and go to Publisher , it
 is not added in Publisher front.
 We need to restart the server inorder to view it. This might be a problem
 in production environments if we have to restart the server.



 Thanks,

 --
 Denuwanthi De Silva
 Software Engineer;
 WSO2 Inc.; http://wso2.com,
 Email: denuwan...@wso2.com
 Blog: https://denuwanthi.wordpress.com/




 --
 Sameera Medagammaddegedara
 Software Engineer

 Contact:
 Email: samee...@wso2.com
 Mobile: + 94 077 255 3005




-- 
Sagara Gunathunga

Senior Technical Lead; WSO2, Inc.;  http://wso2.com
V.P Apache Web Services;http://ws.apache.org/
Linkedin; http://www.linkedin.com/in/ssagara
Blog ;  http://ssagara.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [G-Reg][ES] Integrating ES2 to G-reg/Publisher Issues

2015-04-02 Thread Denuwanthi De Silva
Hi,

While migrating G-Reg 5.0.0-SNAPSHOT UI to ES 2.0.1-SNAPSHOT, I faced the
following issues:

1. When we add a new custom RXT to G-Reg, the integrated Publisher should
also show it (without creating any ES asset extension).
While testing this scenario for M4 (to be released) pack, the new
RXT(application.rxt) is shown in the list down menu. Yet when I click the
'Add' button to add a new entry, following error occured

HTTP Status 500 - org.mozilla.javascript.WrappedException: Wrapped
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.EcmaError: TypeError: Cannot set property value of
undefined to org.mozilla.javascript.NativeJavaObject@4d817183 (eval
code#1(eval)#266) (/publisher/controllers/assets-router.jag#75)
What could be the issue for this? We should be able to support this without
creating any custom asset extension.
In the G-Reg 5.0.0 M3 pack, we did not occur any such error, and we could
deploy a new RXT and add entries without problem.


2. RXT hot deployment is not happening in Publisher.
When we add a new RXT, from G-Reg admin console, and go to Publisher , it
is not added in Publisher front.
We need to restart the server inorder to view it. This might be a problem
in production environments if we have to restart the server.



Thanks,

-- 
Denuwanthi De Silva
Software Engineer;
WSO2 Inc.; http://wso2.com,
Email: denuwan...@wso2.com
Blog: https://denuwanthi.wordpress.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Authenticating with WSO2 Identity Server 5.0.0

2015-04-02 Thread Michael.Eyre
I can try that, but the user I have does not have write access to the server.

Michael Eyre
From: Dominique Debailleux [mailto:dominique.debaill...@woana.net]
Sent: Thursday, April 02, 2015 8:40 AM
To: Akila Ravihansa Perera
Cc: Eyre, Michael (sanofi pasteur); WSO2 Developers' List
Subject: Re: [Dev] Authenticating with WSO2 Identity Server 5.0.0

Hi Michael

You should try the read and write user store manager not the read only one.

Dominique

2015-04-01 22:20 GMT+02:00 Akila Ravihansa Perera 
raviha...@wso2.commailto:raviha...@wso2.com:
Hi Michael,

Would it be possible for you to share the configs and wso2carbon.log? It's not 
easy to guess the problem without looking at the logs.

Do you have email addresses as usernames? In that case you need to enable 
EnableEmailUsers property in carbon.xml. Did you configure a DomainName for 
your LDAP userstore? You can try to authenticate with domain_name\username

Thanks.

On Wed, Apr 1, 2015 at 9:45 AM, 
michael.e...@sanofipasteur.commailto:michael.e...@sanofipasteur.com wrote:
I am working at evaluating WSO2 Identity Server and API Manager.

I am trying to connect the Identity Server with our VDS/LDAP server.  I have 
created the UserStoreManager configuration in the user-mgt.xml file and set the 
AdminUser to the same user name (not the full connectionName), but I am not 
able to authenticate with this user.  When I navigate to the local carbon 
instance, enter the username and password, I get an login failure message.  The 
UserStoreManager is a read-only connection to the VDS server.  I have also 
disabled the internal LDAP server.  If I enable the internal LDAP server and 
configure the connection to the internal VDS server with a secondary user 
store, I can log in with the standard “admin” user and the Travelocity.com 
example works with that user, but even if I add one of the VDS user to the 
Travelocity internal group, I cannot authenticate with SAML SSO example.

I am trying to do two things.


1.Log into the Identity Server Management console with an internal LDAP 
user

2.   Authenticate with Travelocity SAML SSO example with an internal LDAP 
user, either as a secondary user store or when the internal LDAP server is the 
primary (and only) user store.

Thanks for your help on this issue

Michael Eyre


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



--
Akila Ravihansa Perera
Software Engineer, WSO2

Blog: http://ravihansa3000.blogspot.com

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



--
Dominique Debailleux
WoAnA - small.but.robust
[Accèder au profil LinkedIn de Dominique 
Debailleux]http://www.linkedin.com/in/dominiquedebailleux
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [G-Reg][ES] Integrating ES2 to G-reg/Publisher Issues

2015-04-02 Thread Sameera Medagammaddegedara
Hi,

1. When we add a new custom RXT to G-Reg, the integrated Publisher should
 also show it (without creating any ES asset extension).
 While testing this scenario for M4 (to be released) pack, the new
 RXT(application.rxt) is shown in the list down menu. Yet when I click the
 'Add' button to add a new entry, following error occured

This is occurring due to the Publisher attempting to auto populate provider
names.Since the endpoint.rxt does not have a provider this is causing the
above issue when rendering the Create, Update and Details pages.

This issue will be fixed prior to the next GREG milestone [1]

2. RXT hot deployment is not happening in Publisher.
 When we add a new RXT, from G-Reg admin console, and go to Publisher , it
 is not added in Publisher front.
 We need to restart the server in order to view it. This might be a problem
 in production environments if we have to restart the server.

 Noted. This is a feature which we are planning to support in the future.

*Reference*
[1] https://wso2.org/jira/browse/STORE-663

Thank You,
Sameera

On Thu, Apr 2, 2015 at 7:29 PM, Denuwanthi De Silva denuwan...@wso2.com
wrote:

 Hi,

 While migrating G-Reg 5.0.0-SNAPSHOT UI to ES 2.0.1-SNAPSHOT, I faced the
 following issues:

 1. When we add a new custom RXT to G-Reg, the integrated Publisher should
 also show it (without creating any ES asset extension).
 While testing this scenario for M4 (to be released) pack, the new
 RXT(application.rxt) is shown in the list down menu. Yet when I click the
 'Add' button to add a new entry, following error occured

 HTTP Status 500 - org.mozilla.javascript.WrappedException: Wrapped
 org.jaggeryjs.scriptengine.exceptions.ScriptException:
 org.mozilla.javascript.EcmaError: TypeError: Cannot set property value of
 undefined to org.mozilla.javascript.NativeJavaObject@4d817183 (eval
 code#1(eval)#266) (/publisher/controllers/assets-router.jag#75)
 What could be the issue for this? We should be able to support this
 without creating any custom asset extension.
 In the G-Reg 5.0.0 M3 pack, we did not occur any such error, and we could
 deploy a new RXT and add entries without problem.


 2. RXT hot deployment is not happening in Publisher.
 When we add a new RXT, from G-Reg admin console, and go to Publisher , it
 is not added in Publisher front.
 We need to restart the server inorder to view it. This might be a problem
 in production environments if we have to restart the server.



 Thanks,

 --
 Denuwanthi De Silva
 Software Engineer;
 WSO2 Inc.; http://wso2.com,
 Email: denuwan...@wso2.com
 Blog: https://denuwanthi.wordpress.com/




-- 
Sameera Medagammaddegedara
Software Engineer

Contact:
Email: samee...@wso2.com
Mobile: + 94 077 255 3005
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [G-Reg][ES] Integrating ES2 to G-reg/Publisher Issues

2015-04-02 Thread Denuwanthi De Silva
Hi,

On Thu, Apr 2, 2015 at 9:40 PM, Sagara Gunathunga sag...@wso2.com wrote:



 On Thu, Apr 2, 2015 at 7:53 PM, Sameera Medagammaddegedara 
 samee...@wso2.com wrote:

 Hi,

 1. When we add a new custom RXT to G-Reg, the integrated Publisher should
 also show it (without creating any ES asset extension).
 While testing this scenario for M4 (to be released) pack, the new
 RXT(application.rxt) is shown in the list down menu. Yet when I click the
 'Add' button to add a new entry, following error occured

 This is occurring due to the Publisher attempting to auto populate
 provider names.Since the endpoint.rxt does not have a provider this is
 causing the above issue when rendering the Create, Update and Details pages.

 This issue will be fixed prior to the next GREG milestone [1]


 They are users waiting to evaluate GC from M3 release onwards and this is
 a very core use case for G-Reg, hence this issue is a blocker and we can't
 release G-Reg M4 with this issue, specially we can't break such important
 feature worked properly in previous releases.


 BTW this indicate we don't have enough test cases in both ES/G-Reg,
 @Denuwanthi, in the meantime can we add a test case to G-Reg to verify this
 issue ?

Sure. Will work on it.




 2. RXT hot deployment is not happening in Publisher.
 When we add a new RXT, from G-Reg admin console, and go to Publisher ,
 it is not added in Publisher front.
 We need to restart the server in order to view it. This might be a
 problem in production environments if we have to restart the server.

  Noted. This is a feature which we are planning to support in the future.


 +1 we can wait for this feature.

 Thanks !


 *Reference*
 [1] https://wso2.org/jira/browse/STORE-663

 Thank You,
 Sameera

 On Thu, Apr 2, 2015 at 7:29 PM, Denuwanthi De Silva denuwan...@wso2.com
 wrote:

 Hi,

 While migrating G-Reg 5.0.0-SNAPSHOT UI to ES 2.0.1-SNAPSHOT, I faced
 the following issues:

 1. When we add a new custom RXT to G-Reg, the integrated Publisher
 should also show it (without creating any ES asset extension).
 While testing this scenario for M4 (to be released) pack, the new
 RXT(application.rxt) is shown in the list down menu. Yet when I click the
 'Add' button to add a new entry, following error occured

 HTTP Status 500 - org.mozilla.javascript.WrappedException: Wrapped
 org.jaggeryjs.scriptengine.exceptions.ScriptException:
 org.mozilla.javascript.EcmaError: TypeError: Cannot set property value of
 undefined to org.mozilla.javascript.NativeJavaObject@4d817183 (eval
 code#1(eval)#266) (/publisher/controllers/assets-router.jag#75)
 What could be the issue for this? We should be able to support this
 without creating any custom asset extension.
 In the G-Reg 5.0.0 M3 pack, we did not occur any such error, and we
 could deploy a new RXT and add entries without problem.


 2. RXT hot deployment is not happening in Publisher.
 When we add a new RXT, from G-Reg admin console, and go to Publisher ,
 it is not added in Publisher front.
 We need to restart the server inorder to view it. This might be a
 problem in production environments if we have to restart the server.



 Thanks,

 --
 Denuwanthi De Silva
 Software Engineer;
 WSO2 Inc.; http://wso2.com,
 Email: denuwan...@wso2.com
 Blog: https://denuwanthi.wordpress.com/




 --
 Sameera Medagammaddegedara
 Software Engineer

 Contact:
 Email: samee...@wso2.com
 Mobile: + 94 077 255 3005




 --
 Sagara Gunathunga

 Senior Technical Lead; WSO2, Inc.;  http://wso2.com
 V.P Apache Web Services;http://ws.apache.org/
 Linkedin; http://www.linkedin.com/in/ssagara
 Blog ;  http://ssagara.blogspot.com



Thanks,
-- 
Denuwanthi De Silva
Software Engineer;
WSO2 Inc.; http://wso2.com,
Email: denuwan...@wso2.com
Blog: https://denuwanthi.wordpress.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev