[Bug 1514511] [NEW] Event locally-stored longText won't upload

Public bug reported:

When doing Event entry, enter large amount of text (>2K characters) in a
longText field while offline. Then go back online and click "Upload" to
upload the locally-stored data to the server. The message "Uploading
locally stored data to the server" appears, but stays forever.

To reproduce, you can define a simple "Test program" without
registration in apps.dhis2.org/demo by importing the metadata in the
attached testProgram.xml file (unless it has been defined since the last
refresh). Then:

Apps -> Event Capture -> (leave Sierra Leone selected) -> select "Test
Program" -> Register Event

Disconnect your computer from the network. Status shows "You are
offline, data will be stored locally"

Enter a report date -> enter more than 2K chars into "Visit comment" ->
Click "Save and go back"

Reconnect your computer. Status shows "There is data stored locally,
please upload to server [ Upload ]"

Click [ Upload ]

** Affects: dhis2
     Importance: Undecided
     Assignee: Abyot Asalefew Gizaw (abyot)
         Status: New

** Attachment added: "testProgram.xml"
   https://bugs.launchpad.net/bugs/1514511/+attachment/4515630/+files/testProgram.xml

** Changed in: dhis2
     Assignee: (unassigned) => Abyot Asalefew Gizaw (abyot)

···

--
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1514511

Title:
  Event locally-stored longText won't upload

Status in DHIS:
  New

Bug description:
  When doing Event entry, enter large amount of text (>2K characters) in
  a longText field while offline. Then go back online and click "Upload"
  to upload the locally-stored data to the server. The message
  "Uploading locally stored data to the server" appears, but stays
  forever.

  To reproduce, you can define a simple "Test program" without
  registration in apps.dhis2.org/demo by importing the metadata in the
  attached testProgram.xml file (unless it has been defined since the
  last refresh). Then:

  Apps -> Event Capture -> (leave Sierra Leone selected) -> select "Test
  Program" -> Register Event

  Disconnect your computer from the network. Status shows "You are
  offline, data will be stored locally"

  Enter a report date -> enter more than 2K chars into "Visit comment"
  -> Click "Save and go back"

  Reconnect your computer. Status shows "There is data stored locally,
  please upload to server [ Upload ]"

  Click [ Upload ]

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1514511/+subscriptions