Accessing a file resource

Dear all,

How does one access a file resource (data element: value type = file) when the data set is locked eg. Dataset has been approved?

When I click on the file from the data entry screen, I receive a dataset locked error message. When I unapproved the dataset, I can access/download it.

I am using DHIS2 version 2.22

Thanks,

Ryan

Hi Ryan, and thanks for reporting!

This is definitely a bug. That sort of validation should only apply to writing and/or deleting, not reading in case of a locked data set. I have fixed the issue in our development branch, and the fix will be released in 2.25.

https://github.com/dhis2/dhis2-core/pull/25

If working around the issue is a big hurdle in your day-to-day business we can consider backporting the fix: let us know and we’ll see what we can do. Backporting to 2.22 is probably not happening, though. Are you planning an upgrade in the future?

Looking forward to your feedback.

···

On Thu, Sep 1, 2016 at 4:02 PM, WILLIAMS, Ryan O’Neil williamsryan@who.int wrote:

Dear all,

How does one access a file resource (data element: value type = file) when the data set is locked eg. Dataset has been approved?

When I click on the file from the data entry screen, I receive a dataset locked error message. When I unapproved the dataset, I can access/download it.

I am using DHIS2 version 2.22

Thanks,

Ryan


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

Halvdan Hoem Grelland

Software developer, DHIS 2

University of Oslo

http://www.dhis2.org

Hi Halvdan,

Thanks for the feedback. We will migrate after the reporting cycle has been completed.

For the time being, I guess we will have to unapproved the dataset to access the files.

Cheers,

ryan

···

From: Halvdan Hoem Grelland [mailto:halvdan@dhis2.org]
Sent: 02 September 2016 16:22
To: WILLIAMS, Ryan O’Neil
Cc: dhis2-users@lists.launchpad.net; DHIS 2 Developers list (dhis2-devs@lists.launchpad.net)
Subject: Re: [Dhis2-devs] Accessing a file resource

Hi Ryan, and thanks for reporting!

This is definitely a bug. That sort of validation should only apply to writing and/or deleting, not reading in case of a locked data set. I have fixed the issue in our development branch, and the fix will be released in 2.25.

https://github.com/dhis2/dhis2-core/pull/25

If working around the issue is a big hurdle in your day-to-day business we can consider backporting the fix: let us know and we’ll see what we can do. Backporting to 2.22 is probably not happening, though. Are you planning an upgrade in the future?

Looking forward to your feedback.

On Thu, Sep 1, 2016 at 4:02 PM, WILLIAMS, Ryan O’Neil williamsryan@who.int wrote:

Dear all,

How does one access a file resource (data element: value type = file) when the data set is locked eg. Dataset has been approved?

When I click on the file from the data entry screen, I receive a dataset locked error message. When I unapproved the dataset, I can access/download it.

I am using DHIS2 version 2.22

Thanks,

Ryan


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

Halvdan Hoem Grelland

Software developer, DHIS 2

University of Oslo

http://www.dhis2.org

Ok that’s good. I’ll make a backport to v 2.24 (current stable).

···

On 2 Sep 2016 6:17 p.m., “WILLIAMS, Ryan O’Neil” williamsryan@who.int wrote:

Hi Halvdan,

Thanks for the feedback. We will migrate after the reporting cycle has been completed.

For the time being, I guess we will have to unapproved the dataset to access the files.

Cheers,

ryan

From: Halvdan Hoem Grelland [mailto:halvdan@dhis2.org]
Sent: 02 September 2016 16:22
To: WILLIAMS, Ryan O’Neil
Cc: dhis2-users@lists.launchpad.net; DHIS 2 Developers list (dhis2-devs@lists.launchpad.net)
Subject: Re: [Dhis2-devs] Accessing a file resource

Hi Ryan, and thanks for reporting!

This is definitely a bug. That sort of validation should only apply to writing and/or deleting, not reading in case of a locked data set. I have fixed the issue in our development branch, and the fix will be released in 2.25.

https://github.com/dhis2/dhis2-core/pull/25

If working around the issue is a big hurdle in your day-to-day business we can consider backporting the fix: let us know and we’ll see what we can do. Backporting to 2.22 is probably not happening, though. Are you planning an upgrade in the future?

Looking forward to your feedback.

On Thu, Sep 1, 2016 at 4:02 PM, WILLIAMS, Ryan O’Neil williamsryan@who.int wrote:

Dear all,

How does one access a file resource (data element: value type = file) when the data set is locked eg. Dataset has been approved?

When I click on the file from the data entry screen, I receive a dataset locked error message. When I unapproved the dataset, I can access/download it.

I am using DHIS2 version 2.22

Thanks,

Ryan


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

Halvdan Hoem Grelland

Software developer, DHIS 2

University of Oslo

http://www.dhis2.org