Re: [Dhis2-devs] [Dhis2-users] External access (Without Login) Not Working for Resources.

2017-11-22 Thread Sourabh Bhardwaj
Thanks ,

Will test and let you know.

On Thu, Nov 23, 2017 at 11:56 AM, Morten Olav Hansen 
wrote:

> Hi
>
> Can you give our servers about 1 hour to build, then try again with latest
> version (I have made a fix available down to 2.27)
>
> --
> Morten Olav Hansen
> Senior Engineer, DHIS 2
> University of Oslo
> http://www.dhis2.org
>
> On Thu, Nov 23, 2017 at 12:40 PM, Sourabh Bhardwaj 
> wrote:
>
>> Hi Morten ,
>>
>> have included the log below :
>>
>> java.lang.NullPointerException
>> at org.hisp.dhis.security.acl.DefaultAclService.getAccess(Defau
>> ltAclService.java:351)
>> at org.hisp.dhis.webapi.controller.AbstractCrudController.addAc
>> cessProperties(AbstractCrudController.java:1098)
>> at org.hisp.dhis.webapi.controller.AbstractCrudController.handl
>> eLinksAndAccess(AbstractCrudController.java:1138)
>> at org.hisp.dhis.webapi.controller.AbstractCrudController.getOb
>> jectInternal(AbstractCrudController.java:517)
>> at org.hisp.dhis.webapi.controller.AbstractCrudController.getOb
>> ject(AbstractCrudController.java:261)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
>> ssorImpl.java:62)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>> thodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:498)
>> at org.springframework.web.method.support.InvocableHandlerMetho
>> d.doInvoke(InvocableHandlerMethod.java:205)
>> at org.springframework.web.method.support.InvocableHandlerMetho
>> d.invokeForRequest(InvocableHandlerMethod.java:133)
>> at org.springframework.web.servlet.mvc.method.annotation.Servle
>> tInvocableHandlerMethod.invokeAndHandle(ServletInvocableHand
>> lerMethod.java:97)
>> at org.springframework.web.servlet.mvc.method.annotation.Reques
>> tMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHan
>> dlerAdapter.java:827)
>> at org.springframework.web.servlet.mvc.method.annotation.Reques
>> tMappingHandlerAdapter.handleInternal(RequestMappingHandlerA
>> dapter.java:738)
>> at org.springframework.web.servlet.mvc.method.AbstractHandlerMe
>> thodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
>> at org.springframework.web.servlet.DispatcherServlet.doDispatch
>> (DispatcherServlet.java:967)
>> at org.springframework.web.servlet.DispatcherServlet.doService(
>> DispatcherServlet.java:901)
>> at org.springframework.web.servlet.FrameworkServlet.processRequ
>> est(FrameworkServlet.java:970)
>> at org.springframework.web.servlet.FrameworkServlet.doGet(
>> FrameworkServlet.java:861)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
>> at org.springframework.web.servlet.FrameworkServlet.service(
>> FrameworkServlet.java:846)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
>> lter(ApplicationFilterChain.java:292)
>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
>> licationFilterChain.java:207)
>> at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
>> lter(ApplicationFilterChain.java:240)
>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
>> licationFilterChain.java:207)
>> at org.springframework.security.web.FilterChainProxy$VirtualFil
>> terChain.doFilter(FilterChainProxy.java:317)
>> at org.springframework.security.web.access.intercept.FilterSecu
>> rityInterceptor.invoke(FilterSecurityInterceptor.java:127)
>> at org.springframework.security.web.access.intercept.FilterSecu
>> rityInterceptor.doFilter(FilterSecurityInterceptor.java:91)
>> at org.springframework.security.web.FilterChainProxy$VirtualFil
>> terChain.doFilter(FilterChainProxy.java:331)
>> at org.springframework.security.web.access.ExceptionTranslation
>> Filter.doFilter(ExceptionTranslationFilter.java:114)
>> at org.springframework.security.web.FilterChainProxy$VirtualFil
>> terChain.doFilter(FilterChainProxy.java:331)
>> at org.springframework.security.web.session.SessionManagementFi
>> lter.doFilter(SessionManagementFilter.java:137)
>> at org.springframework.security.web.FilterChainProxy$VirtualFil
>> terChain.doFilter(FilterChainProxy.java:331)
>> at org.springframework.security.web.authentication.AnonymousAut
>> henticationFilter.doFilter(AnonymousAuthenticationFilter.java:111)
>> at org.springframework.security.web.FilterChainProxy$VirtualFil
>> terChain.doFilter(FilterChainProxy.java:331)
>> at org.springframework.security.web.servletapi.SecurityContextH
>> olderAwareRequestFilter.doFilter(SecurityContextHolder
>> AwareRequestFilter.java:170)
>> at org.springframework.security.web.FilterChainProxy$VirtualFil
>> terChain.doFilter(FilterChainProxy.java:331)
>> at org.springframework.security.web.savedrequest.RequestCacheAw
>> areFilter.doFilter(RequestCacheAwareFilter.java:63)
>> at org.springframework.security.web.FilterChainProxy$VirtualFil
>> terChain.doFilter(FilterChainProxy.ja

Re: [Dhis2-devs] [Dhis2-users] External access (Without Login) Not Working for Resources.

2017-11-22 Thread Morten Olav Hansen
Hi

Can you give our servers about 1 hour to build, then try again with latest
version (I have made a fix available down to 2.27)

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Thu, Nov 23, 2017 at 12:40 PM, Sourabh Bhardwaj 
wrote:

> Hi Morten ,
>
> have included the log below :
>
> java.lang.NullPointerException
> at org.hisp.dhis.security.acl.DefaultAclService.getAccess(
> DefaultAclService.java:351)
> at org.hisp.dhis.webapi.controller.AbstractCrudController.
> addAccessProperties(AbstractCrudController.java:1098)
> at org.hisp.dhis.webapi.controller.AbstractCrudController.
> handleLinksAndAccess(AbstractCrudController.java:1138)
> at org.hisp.dhis.webapi.controller.AbstractCrudController.
> getObjectInternal(AbstractCrudController.java:517)
> at org.hisp.dhis.webapi.controller.AbstractCrudController.getObject(
> AbstractCrudController.java:261)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(
> InvocableHandlerMethod.java:205)
> at org.springframework.web.method.support.InvocableHandlerMethod.
> invokeForRequest(InvocableHandlerMethod.java:133)
> at org.springframework.web.servlet.mvc.method.annotation.
> ServletInvocableHandlerMethod.invokeAndHandle(
> ServletInvocableHandlerMethod.java:97)
> at org.springframework.web.servlet.mvc.method.annotation.
> RequestMappingHandlerAdapter.invokeHandlerMethod(
> RequestMappingHandlerAdapter.java:827)
> at org.springframework.web.servlet.mvc.method.annotation.
> RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.
> java:738)
> at org.springframework.web.servlet.mvc.method.
> AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
> at org.springframework.web.servlet.DispatcherServlet.
> doDispatch(DispatcherServlet.java:967)
> at org.springframework.web.servlet.DispatcherServlet.
> doService(DispatcherServlet.java:901)
> at org.springframework.web.servlet.FrameworkServlet.processRequest(
> FrameworkServlet.java:970)
> at org.springframework.web.servlet.FrameworkServlet.
> doGet(FrameworkServlet.java:861)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
> at org.springframework.web.servlet.FrameworkServlet.
> service(FrameworkServlet.java:846)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:292)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:207)
> at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:240)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:207)
> at org.springframework.security.web.FilterChainProxy$
> VirtualFilterChain.doFilter(FilterChainProxy.java:317)
> at org.springframework.security.web.access.intercept.
> FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127)
> at org.springframework.security.web.access.intercept.
> FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91)
> at org.springframework.security.web.FilterChainProxy$
> VirtualFilterChain.doFilter(FilterChainProxy.java:331)
> at org.springframework.security.web.access.ExceptionTranslationFilter.
> doFilter(ExceptionTranslationFilter.java:114)
> at org.springframework.security.web.FilterChainProxy$
> VirtualFilterChain.doFilter(FilterChainProxy.java:331)
> at org.springframework.security.web.session.SessionManagementFilter.
> doFilter(SessionManagementFilter.java:137)
> at org.springframework.security.web.FilterChainProxy$
> VirtualFilterChain.doFilter(FilterChainProxy.java:331)
> at org.springframework.security.web.authentication.
> AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.
> java:111)
> at org.springframework.security.web.FilterChainProxy$
> VirtualFilterChain.doFilter(FilterChainProxy.java:331)
> at org.springframework.security.web.servletapi.
> SecurityContextHolderAwareRequestFilter.doFilter(
> SecurityContextHolderAwareRequestFilter.java:170)
> at org.springframework.security.web.FilterChainProxy$
> VirtualFilterChain.doFilter(FilterChainProxy.java:331)
> at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.
> doFilter(RequestCacheAwareFilter.java:63)
> at org.springframework.security.web.FilterChainProxy$
> VirtualFilterChain.doFilter(FilterChainProxy.java:331)
> at org.springframework.security.web.authentication.www.
> BasicAuthenticationFilter.doFilterInternal(BasicAuthenticationFilter.
> java:158)
> at org.springframework.web.filter.OncePerRequestFilter.

Re: [Dhis2-devs] [Dhis2-users] External access (Without Login) Not Working for Resources.

2017-11-22 Thread Sourabh Bhardwaj
Hi Morten ,

have included the log below :

java.lang.NullPointerException
at
org.hisp.dhis.security.acl.DefaultAclService.getAccess(DefaultAclService.java:351)
at
org.hisp.dhis.webapi.controller.AbstractCrudController.addAccessProperties(AbstractCrudController.java:1098)
at
org.hisp.dhis.webapi.controller.AbstractCrudController.handleLinksAndAccess(AbstractCrudController.java:1138)
at
org.hisp.dhis.webapi.controller.AbstractCrudController.getObjectInternal(AbstractCrudController.java:517)
at
org.hisp.dhis.webapi.controller.AbstractCrudController.getObject(AbstractCrudController.java:261)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
at
org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133)
at
org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:97)
at
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)
at
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)
at
org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967)
at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901)
at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
at
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:317)
at
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127)
at
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
at
org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:114)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
at
org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:137)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
at
org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
at
org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:170)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
at
org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
at
org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilterInternal(BasicAuthenticationFilter.java:158)
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
at org.hisp.dhis.security.filter.CorsFilter.doFilter(CorsFilter.java:91)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
at
org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:200)
at
org.springframework.se

Re: [Dhis2-devs] Issues with Upgrade from DHIS 2.26 to DHIS 2.27

2017-11-22 Thread Morten Olav Hansen
>
> > Legends are now directly contained in the object where they are used, so
> no need to reference by UIDs anymore, translations should also be put
> directly in the legend payload.
> We see that we may translate the legends through POST '/api/25/metadata'
> call.
> Is there any other way to translate legends? Can you point us to an
> appropriate API?
>

The translations are now directly a part of the payload itself, you can see
that if you try and translate any part of dhis2, then go to /api/type/ID
and you will see the translations directly contained in the payload itself.

As an example, you can have a look here:
https://play.dhis2.org/dev/api/dataElements.json?fields=id,displayName,translations

the translation object itself is built up of: property (can be NAME,
SHORT_NAME, DESCRIPTION, and FORM_NAME for data elements), locale, value.

Even for contained objects like legends, you still translate in the same
way, just add a array called translations on the legend, and fill in your
props.

> created/lastUpdated should not be gone, I think thats a bug, I will look
> into it.
> From this, we understand that the lastUpdated and created timestamps also
> must be available along with lastUpdatedAtClient and createdAtClient
> timestamps in the response. Could you confirm if it is true.
>

Both created, createdAtClient, lastUpdated, lastUpdatedAtClient will be
there. Created/lastUpdated will be read-only, while *AtClient can be
changed by the client (mostly for usage in offline systems)


>
>  In DHIS 2.27, the enrollments and trackedEntityInstance API responses
> are returning the lastUpdatedAtClient and createdAtClient timestamps
> only. Because of this, we think the lastUpdated and created timestamps have
> been renamed to lastUpdatedAtClient and createdAtClient. If this is the
> case, we think that the data in lastUpdated and created must be migrated
> to lastUpdatedAtClient and createdAtClient. If yes, could you point us to
> any such migration script?
>
> Thanks,
> Madhoolika/Jhansi
>
>
> On Wed, Nov 22, 2017 at 8:12 AM, Morten Olav Hansen 
> wrote:
>
>> Hi Jhansi
>>
>> Legends are now directly contained in the object where they are used, so
>> no need to reference by UIDs anymore, translations should also be put
>> directly in the legend payload.
>>
>> created/lastUpdated should not be gone, I think thats a bug, I will look
>> into it.
>>
>> --
>> Morten Olav Hansen
>> Senior Engineer, DHIS 2
>> University of Oslo
>> http://www.dhis2.org
>>
>> On Tue, Nov 21, 2017 at 1:18 PM, Jhansi Reddy Karee <
>> jhans...@thoughtworks.com> wrote:
>>
>>> Hello Team,
>>>
>>> Did you get a chance to take a look at DHIS 2.27 upgrade issues?
>>>
>>> Thanks,
>>> Jhansi
>>>
>>>
>>>
>>>
>>> On Wed, Nov 15, 2017 at 12:14 PM, Mani Madhoolika Bulusu <
>>> mbul...@thoughtworks.com> wrote:
>>>

 Hello team,

 We are planning an upgrade from DHIS 2.26 to DHIS 2.27, and encountered
 the following blockers during analysis:

- In DHIS 2.26, we were entering the legend translations using PUT '
/api/25/legends/{someLegendId}/translations.json'. In DHIS 2.27
this URL is failing with 404 error code. Could you point us to an end 
 point
for translating the legends in DHIS 2.27?
- In DHIS 2.27, Enrollments and TrackedEntityInstance APIs are
returning lastUpdatedAtClient and createdAtClient timestamps instead of
lastUpdated and created timestamps. On upgrading DHIS from 2.26 to 
 2.27, we
are not getting lastUpdatedAtClient and createdAtClient timestamps for 
 the
Enrollments and TrackedEntityInstances created in DHIS 2.26. Could you
point us to a migration script to migrate the lastUpdated and created to
lastUpdatedAtClient and createdAtClient, if any.

 Let us know if you need more details.

 Thanks,
 Madhoolika/Jhansi

>>>
>>>
>>
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] [Dhis2-users] Creating a comment like data element

2017-11-22 Thread Nayeem Al Mifthah
Dear Gerald

I don't know how you want to analyze. If those are common comments you may
create option set.

If you want to get some narrative description, you may make a data element
with long text as type.

*Nayeem Al Mifthah*
*Consultant for HSS, Health MIS, M&E*
Email: n.mift...@gmail.com
Cell:+8801914030574
Skype: nayeem.a.m

On Thu, Nov 23, 2017 at 6:39 AM, gerald thomas 
wrote:

> Dear All,
> I am creating a data set which needs a section on the form for
> comment. Please how can I create a comment section data element on a
> data set form.
>
> --
> Regards,
>
> Gerald
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] scheduling error

2017-11-22 Thread ζž—ζ™“δΈœ
hi,all
   
   data management --scheduling : ( developing snapshot)


HTTP Status 500 - Unable to instantiate Action, 
org.hisp.dhis.dataadmin.action.scheduling.ScheduleTasksAction, defined for 
'viewScheduledTasks' in namespace 
'/dhis-web-maintenance-dataadmin'org.hisp.dhis.dataadmin.action.scheduling.ScheduleTasksAction

type Exception report

message Unable to instantiate Action, 
org.hisp.dhis.dataadmin.action.scheduling.ScheduleTasksAction, defined for 
'viewScheduledTasks' in namespace 
'/dhis-web-maintenance-dataadmin'org.hisp.dhis.dataadmin.action.scheduling.ScheduleTasksAction

description The server encountered an internal error that prevented it from 
fulfilling this request.

exception

Unable to instantiate Action, 
org.hisp.dhis.dataadmin.action.scheduling.ScheduleTasksAction,  defined for 
'viewScheduledTasks' in namespace 
'/dhis-web-maintenance-dataadmin'org.hisp.dhis.dataadmin.action.scheduling.ScheduleTasksAction
 - action - 
jar:file:/ebs1/instances/dev/tomcat/webapps/dev/WEB-INF/lib/dhis-web-maintenance-dataadmin-2.29-SNAPSHOT.jar!/struts.xml:302:109

com.opensymphony.xwork2.DefaultActionInvocation.createAction(DefaultActionInvocation.java:317)

com.opensymphony.xwork2.DefaultActionInvocation.init(DefaultActionInvocation.java:398)

com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:194)

org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:63)

org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:37)

com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:58)

org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:565)

org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:81)

org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)

org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:317)

org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127)

org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91)

org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)

org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:114)

org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)

org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:137)

org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)

org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111)

org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)

org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:170)

org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)

org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63)

org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)

org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilterInternal(BasicAuthenticationFilter.java:158)

org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
org.hisp.dhis.security.filter.CorsFilter.doFilter(CorsFilter.java:91)

org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)

org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:200)

org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)

org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:200)

org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)

org.hisp.dhis.security.filter.CustomAuthenticationFilter.doFilter(CustomAuthenticationFilter.java:64)

org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy

[Dhis2-devs] Creating a comment like data element

2017-11-22 Thread gerald thomas
Dear All,
I am creating a data set which needs a section on the form for
comment. Please how can I create a comment section data element on a
data set form.

-- 
Regards,

Gerald

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] DHIS-2 API : Update org Unit and their attribute values

2017-11-22 Thread Omer Butt
Hi,

How to Update org Unit fields like name,short Name etc and their* extra
attributes* using web API.

Kindly Guide.


Thanks


Virus-free.
www.avast.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] [Dhis2-fr] Problem with setting indicator containing OU group

2017-11-22 Thread Knut Staring
Hi Carlos,
When the system seems to take very long, there is usually an error message
in the server log.

Knut

On Nov 22, 2017 2:07 PM, "Carlos Nyembwe"  wrote:

> Hi All,
>
> I find something strange in our System and in dhis2 demo on 2.27
>
> When I set up a  indicator containing OU group, and in pivot table when I
> need to display the result, putting OU as raw, the system is running
> indefinitly
>
> [image: Inline image 1]
>
>
> There is a problem or what?
>
> Regards
>
> --
> *Carlos Nyembwe*
> *I'm just a Computer Scientist*
>
> *Skype: carloscnk1*
> *Cell: (+243)813166381 <+243%20813%20166%20381>*
> *Find me in: | Google Plus  | 
> **Linkedin
>  | Facebook
>  | Twitter
>  |ega*
>
> --
> Mailing list: https://launchpad.net/~dhis2-fr
> Post to : dhis2...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-fr
> More help   : https://help.launchpad.net/ListHelp
>
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] Problem with setting indicator containing OU group

2017-11-22 Thread Carlos Nyembwe
Hi All,

I find something strange in our System and in dhis2 demo on 2.27

When I set up a  indicator containing OU group, and in pivot table when I
need to display the result, putting OU as raw, the system is running
indefinitly

[image: Inline image 1]


There is a problem or what?

Regards

-- 
*Carlos Nyembwe*
*I'm just a Computer Scientist*

*Skype: carloscnk1*
*Cell: (+243)813166381*
*Find me in: | Google Plus  |
**Linkedin
 | Facebook
 | Twitter
 |ega*
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Reset DataSet completeness to zero - DHIS2 2.25

2017-11-22 Thread Raminosoa Rabemanantsoa, Tantely
Hello Jason,

Thank you for your support!

Regards,

*Tantely*

On Wed, Nov 22, 2017 at 11:39 AM, Jason Pickering <
jason.p.picker...@gmail.com> wrote:

> If you have access to the backend database, you can just do something like
>
> DELETE FROM completedatasetregistration WHERE ... (put your conditions
> here);
>
> using one of these paramaters
>
>  datasetid  | integer | not null
>  periodid   | integer | not null
>  sourceid   | integer | not null
>  attributeoptioncomboid | integer | not null
>
>
> Otherwise, use the API for this as described here:
>
> https://docs.dhis2.org/master/en/developer/html/webapi_complete_data_set_
> registrations.html#webapi_uncompleting_data_sets
>
> Regards,
> Jason
>
>
> On Wed, Nov 22, 2017 at 8:49 AM, Raminosoa Rabemanantsoa, Tantely <
> tramino...@mikolo.org> wrote:
>
>> Dear DHIS2 community,
>>
>> I would like to ask if there is a way to reset report completeness to 0
>> (zero) in a bulk manner for some group of OrgUnit, via SQLView or Web API?
>> We know the Orgunit uid, period and DataSet uid to reset.
>>
>> Thank you already for your suggestions!
>>
>> Regards,
>>
>> Tantely.
>>
>> *This message and its attachments are confidential and solely for the
>> intended recipients. If received in error, please delete them and notify
>> the sender via reply e-mail immediately.*
>> ___
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to : dhis2-devs@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
>
> --
> Jason P. Pickering
> email: jason.p.picker...@gmail.com
> tel:+46764147049 <+46%2076%20414%2070%2049>
>

-- 
*This message and its attachments are confidential and solely for the 
intended recipients. If received in error, please delete them and notify 
the sender via reply e-mail immediately.*
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Reset DataSet completeness to zero - DHIS2 2.25

2017-11-22 Thread Jason Pickering
If you have access to the backend database, you can just do something like

DELETE FROM completedatasetregistration WHERE ... (put your conditions
here);

using one of these paramaters

 datasetid  | integer | not null
 periodid   | integer | not null
 sourceid   | integer | not null
 attributeoptioncomboid | integer | not null


Otherwise, use the API for this as described here:

https://docs.dhis2.org/master/en/developer/html/webapi_complete_data_set_registrations.html#webapi_uncompleting_data_sets

Regards,
Jason


On Wed, Nov 22, 2017 at 8:49 AM, Raminosoa Rabemanantsoa, Tantely <
tramino...@mikolo.org> wrote:

> Dear DHIS2 community,
>
> I would like to ask if there is a way to reset report completeness to 0
> (zero) in a bulk manner for some group of OrgUnit, via SQLView or Web API?
> We know the Orgunit uid, period and DataSet uid to reset.
>
> Thank you already for your suggestions!
>
> Regards,
>
> Tantely.
>
> *This message and its attachments are confidential and solely for the
> intended recipients. If received in error, please delete them and notify
> the sender via reply e-mail immediately.*
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp