Crash with mime type application/xml on recent distros

Bug #1732485 reported by Jason Stephenson
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
NCIPServer
Confirmed
High
Unassigned
libdancer-perl (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

NCIPServer will crash on Ubuntu 16.04 if data is posted with mime type of application/xml. This is because of changes made to Dancer that do not work with certain modules from HTTP::Body which Daner requires.

I believe that this will also happen on Debian 8 Jessie and Debian 9 Stretch, but I have not thoroughly tested it on those distributions.

A long term fix for this issue would be to implement bug 1673974 and remove the dependency on Dancer 1. Another possible long term fix would be to move to Dancer 2.

In the meantime, you can apply the attached patch to /usr/share/perl5/HTTP/Body/XForms.pm.

This is not an actual bug in NCIPServer, but a bug in a dependency that shows up as a bug in NCIPServer. :)

Tags: patch
Revision history for this message
Jason Stephenson (jstephenson) wrote :
summary: - Crash with mime type text/xml on recent distros
+ Crash with mime type application/xml on recent distros
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Patch for HTTP::Body::XForms" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
description: updated
Revision history for this message
Jason Stephenson (jstephenson) wrote :

Just adding a comment to confirm that the patch is required on Ubuntu 18.04.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in libdancer-perl (Ubuntu):
status: New → Confirmed
Revision history for this message
Jason Stephenson (jstephenson) wrote :

I have tested NCIPServer on Ubuntu 20.04 and 22.04, and the patch is apparently not needed on either.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.