← Back to team overview

mahara-contributors team mailing list archive

[Bug 1819508] Re: Processing hang occurs when saving content pasted from Google Docs or external source

 

We have noticed something new this morning.

A user reported that if you use Mahara's editor to change the font size,
the same issue occurs.

One of our analysts noticed that if there are span tags as well as li
tags with style attributes, this will occur.

** Summary changed:

- Processing hang occurs when saving content pasted from Google Docs or external source
+ Processing hang occurs when saving content contains certain HTML tags

** Description changed:

  version = 2017092609;
  series = '17.10';
  release = '17.10.1';
  minupgradefrom = 2015030409;
  minupgraderelease = '15.04.0 (release tag 15.04.0_RELEASE)';
  
  Processing hang occurs when saving content pasted from Google Docs or
  external source
  
  Details:
  
  Where does this happen?
- When adding content in a portfolio
+ When adding/editing content in a portfolio
  
  What happens?
  Clicking on "Save" button shows "Processing..." but hangs (403) when pre-formatted content pasted from an external source, i.e. Google Docs, Gmail, Microsoft Word (less often), etc.
+ In addition, if using Mahara's editor only, this will occur if you do things such as change the font size.
  
  Observations:
- - Noticed that this will especially happen when span tags are copied from the origin.
+ - Noticed that this will happen when span tags and li (with style attributes) are involved.
  
  Workarounds:
  - Paste as unformatted text, and make formatting changes from within Mahara.
+ - Or avoid (strip out) span or li (with style attributes) tags.
  
  Other comments:
- Previously, users have been able to do this without issues. If they are to make simple edits to content that originated from an external source like Google, they risk not being able to save their changes. Their only workaround is to copy and paste into a new content area (like mentioned in the workaround). The existing content, while can be displayed, may not be edited successfully.
+ Previously, users have been able to do this without issues. If they are to make simple edits to content that originated from an external source like Google, they risk not being able to save their changes. The quick workaround is to copy and paste into a new content area (like mentioned in the workaround). The existing content, while can be displayed, may not be edited successfully unless the offending tags are stripped.

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1819508

Title:
  Processing hang occurs when saving content contains certain HTML tags

Status in Mahara:
  New

Bug description:
  version = 2017092609;
  series = '17.10';
  release = '17.10.1';
  minupgradefrom = 2015030409;
  minupgraderelease = '15.04.0 (release tag 15.04.0_RELEASE)';

  Processing hang occurs when saving content pasted from Google Docs or
  external source

  Details:

  Where does this happen?
  When adding/editing content in a portfolio

  What happens?
  Clicking on "Save" button shows "Processing..." but hangs (403) when pre-formatted content pasted from an external source, i.e. Google Docs, Gmail, Microsoft Word (less often), etc.
  In addition, if using Mahara's editor only, this will occur if you do things such as change the font size.

  Observations:
  - Noticed that this will happen when span tags and li (with style attributes) are involved.

  Workarounds:
  - Paste as unformatted text, and make formatting changes from within Mahara.
  - Or avoid (strip out) span or li (with style attributes) tags.

  Other comments:
  Previously, users have been able to do this without issues. If they are to make simple edits to content that originated from an external source like Google, they risk not being able to save their changes. The quick workaround is to copy and paste into a new content area (like mentioned in the workaround). The existing content, while can be displayed, may not be edited successfully unless the offending tags are stripped.

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


References