[Dhis2-devs] [Bug 1477565] [NEW] Meta data Import fails with "Validation Violations: [ValidationViolation{property='version', message='Invalid range for value [0, 255], value is 422', value=422}]"

2015-07-23 Thread Alex Tumwesigye
Public bug reported: Import on 2.19 and 2.20 fails for datasets with this error "Validation Violations: [ValidationViolation{property='version', message='Invalid range for value [0, 255], value is 422', value=422}]" 2.20 Build version:19682 2.19 build revision:19258 No error is logged in tomcat

Re: [Dhis2-devs] Schema missing many unique constraints

2015-07-23 Thread Morten Olav Hansen
Hi Lorill This is known issue with older versions of DHIS 2 (it was a serious bug in hibernate, which we use as our ORM layer). Jason created a script that will add them back (but please know that there might be conflicts, as uniqueness constraints are added) I'm adding him in, as I don't have a

Re: [Dhis2-devs] Missing Authority (permission) for Aggregate Data Capture

2015-07-23 Thread Morten Olav Hansen
Hi Sam Sorry, but this ended up in the spam folder. Can you tell me which form in data entry you can reproduce this on? I just tried, and was able to easily enter data using the admin user (which does not have ALL) -- Morten On Fri, Jul 17, 2015 at 3:03 PM, Sam Kasozi wrote: > Dear all, > > Th

[Dhis2-devs] [Bug 1474419] Re: metadata import into empty db in 2.19 dhis2 fails

2015-07-23 Thread Morten Olav Hansen
Hi The java class exceptions which are not useful, is exactly what we need to figure out these kinds of bugs.. can you please give us the complete stack trace? -- You received this bug notification because you are a member of DHIS 2 developers, which is subscribed to DHIS. https://bugs.launchpad

Re: [Dhis2-devs] Attempting to create data element with non-unique shortname via Web API throws exception

2015-07-23 Thread Morten Olav Hansen
Hi Could you please share the exception log? I need to know what is not being caught -- Morten On Wed, Jul 22, 2015 at 5:45 AM, Lorill Crees wrote: > Hi, > > If attempting to create a data element with a non-unique shortname via the > Web API in 2.20 build 19682, an exception is thrown instead

Re: [Dhis2-devs] Missing Authority (permission) for Aggregate Data Capture

2015-07-23 Thread Alex Tumwesigye
Dear Sam, Check the sharing settings on the datasets!!! Alex On Thu, Jul 23, 2015 at 6:11 PM, Morten Olav Hansen wrote: > Hi Sam > > Sorry, but this ended up in the spam folder. Can you tell me which form in > data entry you can reproduce this on? I just tried, and was able to easily > enter

Re: [Dhis2-devs] Attempting to create data element with non-unique shortname via Web API throws exception

2015-07-23 Thread Lorill Crees
Hi Morten, Stack trace below. Thanks, Lorill | Error 2015-07-23 10:45:48,415 [http-bio-8080-exec-16] ERROR api.ApiService - Unexpected failure: HTTP/1.1 500 Internal Server Error, resp: groovyx.net.http.HttpResponseDecorator@3cdd5162, json: Apache Tomcat/8.0.21 - Error reportH1 {font-family:Ta

Re: [Dhis2-devs] Attempting to create data element with non-unique shortname via Web API throws exception

2015-07-23 Thread Morten Olav Hansen
Ok, the issue is that its a duplicate shortname.. I will add an exception catcher for the exception -- Morten On Fri, Jul 24, 2015 at 12:51 AM, Lorill Crees wrote: > Hi Morten, > > Stack trace below. > > Thanks, > > Lorill > > | Error 2015-07-23 10:45:48,415 [http-bio-8080-exec-16] ERROR > api.

Re: [Dhis2-devs] Attempting to create data element with non-unique shortname via Web API throws exception

2015-07-23 Thread Lorill Crees
Excellent - thanks Morten. Can this please be included in 2.20? On Thu, Jul 23, 2015 at 11:03 AM, Morten Olav Hansen wrote: > Ok, the issue is that its a duplicate shortname.. I will add an exception > catcher for the exception > > -- > Morten > > On Fri, Jul 24, 2015 at 12:51 AM, Lorill Crees

Re: [Dhis2-devs] Attempting to create data element with non-unique shortname via Web API throws exception

2015-07-23 Thread Morten Olav Hansen
Yes, I will backport the fix.. that said, me and most of the developer team is on a 2-3 week hiatus -- Morten On Fri, Jul 24, 2015 at 1:06 AM, Lorill Crees wrote: > Excellent - thanks Morten. Can this please be included in 2.20? > > On Thu, Jul 23, 2015 at 11:03 AM, Morten Olav Hansen > wrote:

Re: [Dhis2-devs] Schema missing many unique constraints

2015-07-23 Thread Lorill Crees
Thanks Morten, looking forward to getting the script as that will save a lot of manual effort. Perhaps the script could be included or referenced in the upgrade notes here? https://github.com/dhis2/dhis2-utils/blob/master/resources/sql/upgrade-219.sql Also wondering - we're using the latest DHIS

Re: [Dhis2-devs] Schema missing many unique constraints

2015-07-23 Thread Morten Olav Hansen
No, hibernate can't make those can't of changes automatically, which is why Jason created a more manual SQL script for it, hibernate is good at adding columns etc, but can't change the constraints of an already existing column. I agree it should be added on the upgrade page, but its been there sin

Re: [Dhis2-devs] Schema missing many unique constraints

2015-07-23 Thread Jason Pickering
Hi Lorill, You can try and execute this script (at your own risk against a non-production database) and see if it solves the issues you are having. As Morten points out, there is no guarantee it will work, since you have been operating on a database without the constraints. But it may give you an

Re: [Dhis2-devs] Schema missing many unique constraints

2015-07-23 Thread Morten Olav Hansen
If you see duplicate UIDs, you can get new fresh ones at: /api/system/uid?n=100 -- Morten On Fri, Jul 24, 2015 at 2:14 AM, Jason Pickering < jason.p.picker...@gmail.com> wrote: > Hi Lorill, > > You can try and execute this script (at your own risk against a > non-production database) and see if

Re: [Dhis2-devs] Schema missing many unique constraints

2015-07-23 Thread Lorill Crees
Thanks Morten. On Thu, Jul 23, 2015 at 12:36 PM, Morten Olav Hansen wrote: > If you see duplicate UIDs, you can get new fresh ones at: > /api/system/uid?n=100 > > -- > Morten > > On Fri, Jul 24, 2015 at 2:14 AM, Jason Pickering < > jason.p.picker...@gmail.com> wrote: > >> Hi Lorill, >> >> You ca

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 19687: upgrade to spring security 3.2.8

2015-07-23 Thread noreply
revno: 19687 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Fri 2015-07-24 03:03:12 +0700 message: upgrade to spring security 3.2.8 modified: dhis-2/pom.xml -- lp:dhis2 https://code.launchpad.net/~dhis2-devs-core/dhis2

Re: [Dhis2-devs] Schema missing many unique constraints

2015-07-23 Thread Bob Jolliffe
I know that openmrs makes use of liquibase for managing database diffs : http://www.liquibase.org/ It might be worth considering whether this approach would be useful for us in place of our "hibernate ddl + extra sql upgrade script" . Student project? On 23 July 2015 at 20:36, Morten Olav Hansen