Open link in a new tab

Content

Expand project menu

Strange behaviour of work package description

Hello all,

i admin a openproject server, which is used for most of our project. Nearly all works very well and i only have a very astonishing problem with work packages description. (Yes: Project description and other editable fields work fine!)

It happens when a work package includes a short text and then directly a list in its description and the editor hits the save icon of the description. The db is updated, but in the webinterface of the editor the description box hangs (e. g. textfield is not editable any more, but reacts to some editor buttons) AND all other user can’t see the description-textfield and editor of the work package any more.

description
* one
* two 

The code as work package description above will lock the browsereditor as described above (tested with firefox & chrome).

But adding an empty line before the list works fine (see below):

description

* one
* two 

My debian jessie server uses unfiltered textile to be able to change color and other things. I can’t find any error-message thus i am not able to track down, what exactly happens.

It there anything that might help me be the color-adding admin i am now and fix this problem?

Greeting, Patrick Veith.

Message actions

Hi Patrick,

we noticed this issue this morning on our SaaS environment and are about to release 7.2.2 because of this issue. It happens because the text content of the description is being extracted for the accessibility attribute aria-label that describes the description’s content.

Work package for tracking: OP-4099

In the exact case you describe, that extraction fails with a JS error and in consequence, fails to render the field.

You can verify the fix by applying the following patch:

# Download the patch file
⟩ curl -o 5868.patch https://patch-diff.githubusercontent.com/raw/opf/openproject/pull/5868.patch

# Check whether the patch applies cleanly
⟩ git apply --check 5868.patch

# If the above resulted in no output, you can apply the patch with:
⟩ git apply 5868.patch

Best,
Oliver

Message actions

Thanks for the very fast reply. As i use the deb-package not the git to install openproject i manually edited the patch in. Unfortunately it did not change the behaviour. I did the usual ‘openproject configure’ after editing the files.
Regards,
Patrick Veith.

Message actions

Hey Patrick,

you’re right, I forgot the last step:

please also run openproject run bundle exec rake assets:precompile to re-compile all assets. This will update the javascript bundles that contain the bugfix.

Best,
Oliver

Message actions

Perfect, runs like a charm now! Thanks a lot.
Best regards,
Patrick Veith.