Re: [Dhis2-devs] [Dhis2-users] Nightly Batch-Jobs

2016-01-25 Thread Halvdan Grelland
released, though, not to worry. As for configuring the time at which this task is ran (or if it is ran at all) this is not in place yet but will be more flexible in future versions. As said, though, it really should not affect your use case at all. Hope that answers your question. Thanks for rep

Re: [Dhis2-devs] [Dhis2-users] Nightly Batch-Jobs

2016-01-25 Thread Halvdan Grelland
point for external triggering and include a > deselect into > the scheduling options as there might be people who want to upload files > via api > - I would imagine that cleaning up while uploading might cause some > problems ... > > Regards, Uwe > > > Halvdan Grell

Re: [Dhis2-devs] [Dhis2-users] 2.23 Metadata importer rewrite and dryRuns

2016-02-02 Thread Halvdan Grelland
>From a dev perspective dryRun is pretty useful for debugging any features built on top of it. 2016-02-02 9:15 GMT+01:00 Morten Olav Hansen : > Hi everyone > > I'm currently in the process of re-writing our DXF2 metadata importer, and > was wondering if anyone is actually using the dryRun option?

Re: [Dhis2-devs] Hibernate Exception in scheduled task

2016-02-02 Thread Halvdan Grelland
Knut is right. This is a known issue. You will not experience any issues except for ugly logs once every 24 hours. It will get fixed and backported soon. On 2 Feb 2016 9:49 p.m., "Lorill Crees" wrote: > Thanks Knut. > > On Tue, Feb 2, 2016 at 12:46 PM, Knut Staring wrote: > >> Hi Lorill, >> >> T

Re: [Dhis2-devs] Possible issue with GML import

2015-03-24 Thread Halvdan Grelland
The gml:Point element only supports gml:pos coordinate tuples (a single one, of course). The gml:coordinates element is expected to have multiple points, which is why it is parsed in that particular way. The only real bug on our part here is that we for some reason allow gml:Point to contain a gml

Re: [Dhis2-devs] Possible issue with GML import

2015-03-24 Thread Halvdan Grelland
GMT+01:00 Halvdan Grelland : > The gml:Point element only supports gml:pos coordinate tuples (a single > one, of course). The gml:coordinates element is expected to have multiple > points, which is why it is parsed in that particular way. > > The only real bug on our part here is that

Re: [Dhis2-devs] Possible issue with GML import

2015-03-24 Thread Halvdan Grelland
inate > values being specified by the gml:pos property. Data instances compliant > with this profile shall use only the gml:pos property." > > 2015-03-24 13:57 GMT+01:00 Halvdan Grelland : > >> The gml:Point element only supports gml:pos coordinate tuples (a single >> o

Re: [Dhis2-devs] Possible issue with GML import

2015-03-24 Thread Halvdan Grelland
> Regards > Jason > On Mar 24, 2015 9:30 AM, "Halvdan Grelland" wrote: > >> Actually, small error in my example: pos elements should have lat and >> long separated by whitespace: >> >> -45.046450667490049 30.904516454945856> >> 2015-03-24 1

Re: [Dhis2-devs] Possible issue with GML import

2015-03-24 Thread Halvdan Grelland
Fixed in latest 2.17 -> trunk. 2015-03-24 16:05 GMT+01:00 Halvdan Grelland : > Yeah as discussed just now we should support output from qgis and gdal at > least. Currently working on that. > > 2015-03-24 16:03 GMT+01:00 Jason Pickering : > >> I just exported this from Q

Re: [Dhis2-devs] Possible issue with GML import

2015-03-25 Thread Halvdan Grelland
gt;>> On 24 March 2015 at 18:57, Knut Staring wrote: >>> >>>> Hi Jason (and Halvdan), >>>> >>>> Not directly related, but since GML is coming up again, it could >>>> perhaps be good to revisit Sushil's app, which is meant to

Re: [Dhis2-devs] Possible issue with GML import

2015-03-27 Thread Halvdan Grelland
support, just ADD support for importing shapefiles. >> >> Regards from Sarpsborg, Norway >> Calle >> >> On 25 March 2015 at 14:23, Halvdan Grelland wrote: >> >>> I'm not really seeing any reason to drop GML support altogether, but the >>> prosp

Re: [Dhis2-devs] Eclipse version in use by DHIS2 developers

2015-03-30 Thread Halvdan Grelland
Also, quite a few of us are using the excellent Intellij IDEA in lieu of Eclipse. Halvdan 2015-03-30 18:03 GMT+02:00 Lars Helge Øverland : > Hi Calle, > > I think it varies. I'm using Luna / Java IDE. > > regards, > > Lars > > > On Tue, Mar 24, 2015 at 8:47 AM, Calle Hedberg > wrote: > >> Hi >>

[Dhis2-devs] New module, update your IDEs

2015-05-28 Thread Halvdan Grelland
Hi all. I've split some code from dhis-support-system into a new module dhis-support-commons. You might have to update your IDE projects because of this. Also, the new module is intended to be externalizable, meaning no org.hisp.dhis dependencies. It is therefore a good place to put general utili

[Dhis2-devs] Maven dev profile

2015-05-30 Thread Halvdan Grelland
Hi devs, I've added a new profile to maven. It's called 'dev' and will disable tests and war artifact compression when invoked on a build. It will also be a natural place to put any further build optimizations which should not be used for production builds. The dev profile must be invoked explici

Re: [Dhis2-devs] logging (for server administrators)

2015-06-08 Thread Halvdan Grelland
If the log4j config is overridable at launch we could always add a property pointing to a development config in the maven dev profile. I'm not sure how that would play with this though as it's being configured programmatically at application startup. Thoughts Lars? 2015-06-08 3:45 GMT+02:00 Morte

Re: [Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 19296: WIP proper error reporting on failed GML parsing during import

2015-06-25 Thread Halvdan Grelland
Hi Calle, The commit you've replied to implements (but not fully, therefore 'WIP', there's another commit following it pretty soon after) better error reporting feedback to the user through the interface. I.e. not having to see the stacktrace on the server to determine if and why something went wr

Re: [Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 19296: WIP proper error reporting on failed GML parsing during import

2015-06-25 Thread Halvdan Grelland
) > at > com.google.common.base.MoreObjects$ToStringHelper.toString(MoreObjects.java:359) > at org.hisp.dhis.attribute.Attribute.toString(Attribute.java:397) > at sun.reflect.GeneratedMethodAccessor723.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(U

Re: [Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 19296: WIP proper error reporting on failed GML parsing during import

2015-06-26 Thread Halvdan Grelland
l runs on 2.18, >>> it imports fine. >>> >>> The fact that the same GML file imports in the Sierra Leone demo - I >>> cannot explain that, and the tomcat log only shows that >>> Attribute.toString() looping... >>> >>> Can I create a s

Re: [Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 19296: WIP proper error reporting on failed GML parsing during import

2015-06-27 Thread Halvdan Grelland
the > problem was not related to heap/stack settings. > > So I've set the thread stack size back to 4096KB (4MB) - even if I don't > know whether that's correct or not (seems high to my layman eyes, but maybe > DHIS2 require it?) > > If anybody actually KNOWS

Re: [Dhis2-devs] Sierra Leone database corrupted? Detailed meta-data export do not work?

2015-06-30 Thread Halvdan Grelland
Answering your first question: it's most likely a font/encoding issue (the language for the demo is currently set to Burmese). Did you try a different browser? 2015-06-30 18:43 GMT+02:00 Calle Hedberg : > Hi, > > I'm not sure what's going on: when opening the Sierra Leone demo, a lot of > text st

Re: [Dhis2-devs] Problem Posting to XML to Web API

2015-06-30 Thread Halvdan Grelland
Hi Dan, I was able to reproduce the issue on our demo server. It seems to be due to the empty attributevalues-element. Removing it caused the import to work as expected. Why this is, however, I do not know. We are currently looking into a separate AttributeValue-related issue with the importer, wh

Re: [Dhis2-devs] Problem Posting to XML to Web API

2015-06-30 Thread Halvdan Grelland
on the one i created on the demo. It worked). 2015-06-30 19:24 GMT+02:00 Dan Cocos : > Thank you! > I’ve also found that trying to delete OUs via the API causes a 504 Request > method 'DELETE' not supported > Are we not able to delete OUs via the API? > > > On Jun 30

Re: [Dhis2-devs] Problem Posting to XML to Web API

2015-06-30 Thread Halvdan Grelland
; I’ve also found that trying to delete OUs via the API causes a 504 Request > method 'DELETE' not supported > Are we not able to delete OUs via the API? > > > On Jun 30, 2015, at 1:15 PM, Halvdan Grelland wrote: > > Hi Dan, > > I was able to reproduce the

Re: [Dhis2-devs] Sierra Leone database corrupted? Detailed meta-data export do not work?

2015-06-30 Thread Halvdan Grelland
+02:00 Calle Hedberg : > Halvdan, > > Yes, I tried Chrome on my laptop and then Firefox on my main dev PC - same > problem. > > Are you able to for instance export data validation groups from the demo? > (with the xml file NOT being empty)? > > regards > Calle >

Re: [Dhis2-devs] Problem Posting to XML to Web API

2015-06-30 Thread Halvdan Grelland
; Thank you! > I’ve also found that trying to delete OUs via the API causes a 504 Request > method 'DELETE' not supported > Are we not able to delete OUs via the API? > > > On Jun 30, 2015, at 1:15 PM, Halvdan Grelland wrote: > > Hi Dan, > > I was able to re

Re: [Dhis2-devs] Sierra Leone database corrupted? Detailed meta-data export do not work?

2015-06-30 Thread Halvdan Grelland
;Select all" indicators (or any other resource table), then click > "Export" at the bottom - and the metadata.xml file is once again empty. > > Did you use the "front page" detailed metadata export, or did you use the > ad-hoc page? > > Regards > Calle

Re: [Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 19296: WIP proper error reporting on failed GML parsing during import

2015-07-01 Thread Halvdan Grelland
I am looking into this now. It seems I am not able to reproduce the issue consistently. In fact, I've only been able to reproduce once today (the stack overflow on Attribute.toString(). This is all very strange. I'll get back to you when I know more. The only real inconsistency I'm seeing so far

Re: [Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 19296: WIP proper error reporting on failed GML parsing during import

2015-07-01 Thread Halvdan Grelland
Ok, so I've looked further into this. The only issue I am able to consistently reproduce happens only in the GML import process. The stack trace can be found here Note that this might be unrelated to the looping/recursion issue., This does no

Re: [Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 19296: WIP proper error reporting on failed GML parsing during import

2015-07-03 Thread Halvdan Grelland
> Regards > Calle > > On 1 July 2015 at 15:01, Halvdan Grelland wrote: > >> Ok, so I've looked further into this. The only issue I am able to >> consistently reproduce happens only in the GML import process. The stack >> trace can be found here >> &l

Re: [Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 19296: WIP proper error reporting on failed GML parsing during import

2015-07-03 Thread Halvdan Grelland
Oh, and for the record: the stack overflow was caused by cirular calls to toString between AttributeValue and Attribute, respectively. 2015-07-04 0:56 GMT+02:00 Halvdan Grelland : > Yes, that is the plan, ultimately. > It's a pretty major change though, making it non-trivial to p

Re: [Dhis2-devs] Lastest version of 2.17 shows as 2.18 in in 'About'

2015-07-15 Thread Halvdan Grelland
The download link is 2.17 for sure. Your redeployment is probably still serving up some old files. Try to clean out Tomcat's working dir and cache completely, then redeploy the war file. Halvdan 2015-07-15 19:41 GMT+02:00 Timothy Harding : > Just downloaded the lastest version of 2.17 from the l

Re: [Dhis2-devs] DHIS2 Docs

2015-07-28 Thread Halvdan Grelland
We are planning on introducing files as a type for data values, as well as data elements supporting this (document, images). You would then use the datavalue model to implement these types of requirements. The implementation is in the works but is a fairly complex beast as we're juggling actual fi

Re: [Dhis2-devs] DHIS2 Docs

2015-07-28 Thread Halvdan Grelland
>>> Greg >>> >>> >>> >>> On Tue, Jul 28, 2015 at 10:49 AM, Harsh Atal >>> wrote: >>> >>>> Hello Halvdan, >>>> >>>> *We are planning on introducing files as a type for data values, as >>>>

Re: [Dhis2-devs] [Dhis2-users] FW: Problem with Tracker program after updating to 2.20 stable

2015-07-30 Thread Halvdan Grelland
In addition; please look at the startup log of dhis2 (specifically under InitTableAlterator) and see if there's any queries failing. 2015-07-30 12:59 GMT+02:00 Abyot Gizaw : > > > On Thu, Jul 30, 2015 at 11:30 AM Elmarie Claasen wrote: > >> Hi Devs, >> >> >> >> I have an urgent database issue wh

Re: [Dhis2-devs] [Dhis2-users] FW: Problem with Tracker program after updating to 2.20 stable

2015-07-30 Thread Halvdan Grelland
; Cell: 082 374 2209 > > E-mail: elma...@hisp.org > > Skype: elmarie.claasen52 > > > > > > This message and any attachments are subject to a disclaimer published at > http://www.hisp.org/policies.html#comms_disclaimer > . Please read the disclaimer before

Re: [Dhis2-devs] [Dhis2-users] FW: Problem with Tracker program after updating to 2.20 stable

2015-07-30 Thread Halvdan Grelland
ny > other action in terms of this electronic transmission. > If you cannot access the disclaimer, kindly send an email to > disclai...@hisp.org > and a copy will be provided to you. By replying to this e-mail or opening > any attachment you agree to be bound by the provisions of the disclaime

Re: [Dhis2-devs] DHIS2 Docs

2015-07-31 Thread Halvdan Grelland
t; document store as it has been discussed before... always wanted to remove > /api/documents) > > -- > Morten > > On Wed, Jul 29, 2015 at 6:16 AM, Halvdan Grelland > wrote: > >> Definitely agree! The working title at the moment is 'file resource', >> wh

[Dhis2-devs] MD5 password support dropped

2015-08-25 Thread Halvdan Grelland
Starting in release 2.21 we have completely dropped support for MD5 hashed passwords in DHIS2. This means that any user which has not logged in on a 2.17 or later instance will have to reset their password (or have the administrator deal with it). For anyone doing maintenance of DHIS2: we now stor

Re: [Dhis2-devs] stian sandvold joins as developer

2015-08-28 Thread Halvdan Grelland
Welcome! 2015-08-28 17:54 GMT+02:00 Lars Helge Øverland : > Hi all, > > Stian Sandvold has joined the team today as DHIS 2 developer on a 50 % > basis. Stian comes from a position as lead developer at Asio, a company > which develops educational tools and games. He is doing his last year of > mas

Re: [Dhis2-devs] nicolay ramm joins as developer

2015-08-28 Thread Halvdan Grelland
Welcome to the team! 2015-08-28 17:49 GMT+02:00 Lars Helge Øverland : > Hi all, > > Nicolay Ramm has joined the team today as a full-time DHIS 2 developer. > Nicolay holds a master's degree and has extensive experience as a Web > developer. He will be working on apps and front-end development. >

Re: [Dhis2-devs] Problem log-in

2015-09-01 Thread Halvdan Grelland
They should be different. Bcrypt (or any sane pw hashing scheme for that matter) uses a random salt per run (which is embedded in the resulting string). 2015-09-01 11:06 GMT+02:00 Knut Staring : > Excellent. However, why is this different from the password discussed in > Gerald's thread with Alan

Re: [Dhis2-devs] Changing admin password to default

2015-09-01 Thread Halvdan Grelland
For the record: Starting in 2.21 we only accept bcrypt password hashes. Anything else will fail. Beginning in 2.17 we started hot-swapping every user logging in with the old scheme (md5) to the new one (bcrypt) on login. Even though they work in 2.20 I strongly suggest using bcrypt hashes for this

Re: [Dhis2-devs] Weird cache issue

2015-09-01 Thread Halvdan Grelland
Calle, I'm pretty sure Jason was referring to whatever you were doing to update the records (your point #1 in original email) which was not, as far as I can understand, using the UI or the web-api. I am not familiar with "pgremote" but am assuming it's some kind of postgres connector allowing you t

Re: [Dhis2-devs] Weird cache issue

2015-09-02 Thread Halvdan Grelland
ot using any queries, I simply updated the Data >>> Set names directly in the table. >>> >>> As I've said - the weird thing is that all those new names immediately >>> showed up in the UI data set list, but the old names are still appearing >>> wherever t

Re: [Dhis2-devs] Weird cache issue

2015-09-02 Thread Halvdan Grelland
ames - and all those names are the correct/updated ones. > > I'm not sure where "displayNames" would be coming from - I am not aware > that data sets HAVE a field called "displayName" or similar. In which table > can I find that? > > Regards > > O

Re: [Dhis2-devs] Width of input/drop down in custom event capture forms

2015-09-21 Thread Halvdan Grelland
A cheap and cheerful workaround could be to append '!important' to the css statements which you need to override. It should force your style regardless of the specificity of the selector in the original stylesheet. E.g: { width: 20em !important; } 2015-09-21 15:22 GMT+02:00 Olav Poppe : > Hi,

Re: [Dhis2-devs] JS Errors in data entry

2015-09-25 Thread Halvdan Grelland
Agree with Mark. Check wether you're supposed to get two or three optionSets. 2015-09-25 13:20 GMT+02:00 Mark Polak : > Yes it should be an option set just like the others, something like the > others "Thfz8125uPk-USfPOPAeN16":{"uid":"eUZ79clX7y1","v":1}" > > However, perhaps there shouldn't be a

Re: [Dhis2-devs] Problem accessing /api/svg.png. Reason: Form too large11258748>5000000

2015-10-22 Thread Halvdan Grelland
There seems to be a hardcoded limit of 5 MB (500 bytes) in the DHIS2-live application, so I'm sorry to say it's not something you can get around by external configuration. See line 54 of the following piece of code: https://github.com/dhis2/dhis2-live/blob/master/src/main/java/org/hisp/dhis/We

Re: [Dhis2-devs] Problem accessing /api/svg.png. Reason: Form too large11258748>5000000

2015-10-23 Thread Halvdan Grelland
lvdan 2015-10-23 10:18 GMT+02:00 Mihayo Mathayo : > Hi Halvdan Grelland, > > Thank you for your response but i cant locate the file WebAppServer.Java > in the dhis2-live folders/files.Can you guide me a little bit how to change > the size and build the live package again?.Am not afrai

Re: [Dhis2-devs] Is there a way to import GML through the WebAPI?

2014-10-24 Thread Halvdan Grelland
Hi Jason. GML cannot be imported through the web api at this time. However, we have (since 2.17) switched the import backend for GML to use the metadata import so GML support for the web-api could definitely be considered in the future. I'm afraid this is not as trivial as it might sound since we

Re: [Dhis2-devs] Eivind Eriksen joins as developer

2014-11-12 Thread Halvdan Grelland
Welcome to the team! 2014-11-12 12:51 GMT+01:00 Lars Helge Øverland : > Hi all, > > I have the pleasure to announce that Eivind Eriksen has joined the team as > software developer. Eivind will work 40% this year, then full time from > January. > > Eivind has 6 years of experience as Java software

Re: [Dhis2-devs] [Dhis2-users] Upload Image on Data entry form

2014-11-18 Thread Halvdan Grelland
Hi Pamod. This is unfortunately not supported at this time. It is, however, being implemented and is expected to be introduced in version 2.18. 2014-11-17 15:22 GMT+01:00 Pamod Amarakoon : > Hi All, > > I have a instance of DHIS 2.16 tracker data entry form, where the client > needs to upload an

Re: [Dhis2-devs] [Dhis2-users] Upload Image on Data entry form

2014-11-18 Thread Halvdan Grelland
To be clear: Support is first and foremost being implemented in the system and the data entry module. I cannot speak for Tracker Capture, but I'd expect it to adopt these changes somewhere down the line. 2014-11-18 11:32 GMT+01:00 Halvdan Grelland : > Hi Pamod. > > This is unf

Re: [Dhis2-devs] DHIS2 Portal Demo Page broken

2014-12-22 Thread Halvdan Grelland
FYI this seems to be a permissions issue. Giving the superuser role the ALL permission fixes it. 2014-12-22 13:35 GMT+01:00 Jan Henrik Øverland : > Hi Farai, will look at it as soon as I have the time. > > Jan > > On Thu, Dec 18, 2014 at 7:36 AM, Farai Mutero wrote: > >> Hi Guys >> >> It seems l

Re: [Dhis2-devs] About expired password in DHIS2

2014-12-22 Thread Halvdan Grelland
errors or any other form of feedback popping up in the console? If you go to the 'network' tab (in the developer tools), are there any listings marked in red? Also, if you have access to the server logs, please check if there is any activity or errors reported when trying to log in. Thanks

Re: [Dhis2-devs] About expired password in DHIS2

2014-12-22 Thread Halvdan Grelland
up when I try to change the > password > > Germine. > > > > > > > > *De :* Halvdan Grelland [mailto:halvda...@gmail.com] > *Envoyé :* Monday, December 22, 2014 4:05 PM > *À :* Seide, Germine > *Cc :* DHIS 2 Developers list; DHIS 2 Users list > *Objet :

[Dhis2-devs] Tip: Faster dev builds

2014-06-30 Thread Halvdan Grelland
as quick as possible. Example command for quick-build: mvn install -f dhis-web/pom.xml -DskipTests -DuseWarCompression=false Halvdan Grelland halvda...@gmail.com ___ Mailing list: https://launchpad.net/~dhis2-devs Post to : dhis2-devs

[Dhis2-devs] Major changes to password handling

2014-09-30 Thread Halvdan Grelland
unk ASAP to avoid this conflict. You could also run any older branches on a different database (the provided sample data has not yet been altered to reflect the new scheme). Feel free to email me if you have any questions. Halvdan Grelland ___ Mailing

Re: [Dhis2-devs] Major changes to password handling

2014-09-30 Thread Halvdan Grelland
allenge to Jason to create a R version :-) > > Its really great to say the effort you have gone to migrating from the old > hashes. Lets hope it works - I presume you have tested well :-) > > Cheers > Bob > > On 30 September 2014 15:37, Halvdan Grelland wrote: > >>