## page was renamed from MoinMoinBugs/ProcessInlineDontSupportMetaElement
= Description =
Text copied from another application causes the GUI to fail when you try to Preview or Save Changes. The sort of text I have tried:
1. HTML table pasted from Firefox (file [[attachment:test3.html]])
1. Table pasted from Open``Office Calc spreadsheet (files [[attachment:test3.ods]] [[attachment:test3.xls]] [[attachment:test3.html]])
The error is apparently thrown by function `process_inline` in file `MoinMoin/converter/text_html_text_x_moin.py`. The full text of the error is shown at the bottom of this page (posted by a previous bug reporter) and also in [[attachment:process_inline_error.html]]. I have also received a different error while pasting from Firefox, which had to do with `Don't support colgroup element`.
The behaviour in copying from [[attachment:test3.html]] in Firefox is also different depending on whether I
1. press `CTRL-A` to select all text in a window, and then copy it and paste it into MoinMoin's GUI. In this case, I get the exception above.
1. drag my mouse over the table with the left button pressed, then copy it and paste it. In this case, MoinMoin produces a preview of a table which doesn't work, and upon pressing `Preview` again th page loads with error `Illegal HTML attribute "height" passed to formatter`.
== Steps to reproduce ==
## Describe the steps needed to reproduce the bug. If we can't reproduce it, we probably can't fix it.
1. Download one of the attachments called `test3` on this page and view it in a WYSIWYG application (Firefox or Open``Office).
1. Open this page for editing using the GUI.
1. Copy some of the table from the WYSIWYG application.
1. Paste it into the MoinMoin GUI editor.
1. Press the `Preview` button.
== Example ==
== Details ==
This wiki.
== Workaround ==
Don't paste tables from GUI applications into Moin's GUI editor.
= Discussion =
It seems to me that this is an exception which is being handled in the wrong way. If MoinMoin doesn't recognise some HTML markup, it should probably gracefully ignore it rather than barfing all over an innocent user (and considering that they're trying to use the GUI, they probably are quite inexperienced users).
Just my opinion :-) .
Hi,
I tried the test3.odt on linux with OOo 2.0.4 and copied the table by selecting with the mouse and pasting by a middle click into the gui (1.6) and it could be saved without a failure. -- ReimarBauer < vorläufiger Raumplan:
>'''||<: bgcolor="#ffff00" width="151px" style="border-top: 3px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); border-bottom: 3px solid rgb(0, 0, 0);">'''Supplier /Contractor'''||<: bgcolor="#ffff00" width="122px" style="border-top: 3px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); border-bottom: 3px solid rgb(0, 0, 0);">'''Contact Telephone No'''||<: bgcolor="#ffff00" width="127px" style="border-top: 3px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); border-bottom: 3px solid rgb(0, 0, 0);">'''Department'''||<: bgcolor="#ffff00" width="141px" style="border-style: solid; border-color: rgb(0, 0, 0); border-width: 3px 1px;">'''Administration / Communication'''||<: bgcolor="#ffff00" width="108px" style="border-style: solid; border-color: rgb(0, 0, 0); border-width: 3px 1px;">'''Time taken to quote'''||<: bgcolor="#ffff00" width="97px" style="border-style: solid; border-color: rgb(0, 0, 0); border-width: 3px 1px;">'''Availability'''||<: bgcolor="#ffff00" width="87px" style="border-style: solid; border-color: rgb(0, 0, 0); border-width: 3px 1px;">'''Flexibility'''||<: bgcolor="#ffff00" width="73px" style="border-style: solid; border-color: rgb(0, 0, 0); border-width: 3px 1px;">'''On time delivery'''||<: bgcolor="#ffff00" width="64px" style="border-style: solid; border-color: rgb(0, 0, 0); border-width: 3px 1px;">'''Quality'''||<: bgcolor="#ffff00" width="58px" style="border-style: solid; border-color: rgb(0, 0, 0); border-width: 3px 1px;">'''Price'''||<: bgcolor="#ffff00" width="68px" style="border-top: 3px solid rgb(0, 0, 0); border-left: 1px solid rgb(0, 0, 0); border-bottom: 3px solid rgb(0, 0, 0);">'''<
>'''||<: bgcolor="#ffff00" width="68px" style="border-top: 3px solid rgb(0, 0, 0); border-left: 1px solid rgb(0, 0, 0); border-bottom: 3px solid rgb(0, 0, 0);">'''<
>'''||<: bgcolor="#ffff00" width="112px" style="border-top: 3px solid rgb(0, 0, 0); border-left: 1px solid rgb(0, 0, 0); border-bottom: 3px solid rgb(0, 0, 0);">'''Overall performance'''||<: bgcolor="#ffff00" width="403px" style="border-style: solid; border-color: rgb(0, 0, 0); border-width: 3px 3px 1px;">'''Comments'''||
||<( bgcolor="#ccffff" height="16px" style="border-style: solid; border-color: rgb(0, 0, 0); border-width: 3px 3px 1px;">'''Drainage'''||<( bgcolor="#ccffff" style="border-top: 3px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); border-bottom: 1px solid rgb(0, 0, 0);">OPC||<( bgcolor="#ccffff" style="border-top: 3px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); border-bottom: 1px solid rgb(0, 0, 0);">Helpdesk||<( bgcolor="#ccffff" style="border-top: 3px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); border-bottom: 1px solid rgb(0, 0, 0);">ICL||<: bgcolor="#ccffff" style="border-style: solid; border-color: rgb(0, 0, 0); border-width: 3px 1px 1px;"><
>||<: bgcolor="#ccffff" style="border-style: solid; border-color: rgb(0, 0, 0); border-width: 3px 1px 1px;"><
>||<: bgcolor="#ccffff" style="border-style: solid; border-color: rgb(0, 0, 0); border-width: 3px 1px 1px;"><
>||<: bgcolor="#ccffff" style="border-style: solid; border-color: rgb(0, 0, 0); border-width: 3px 1px 1px;"><
>||<: bgcolor="#ccffff" style="border-style: solid; border-color: rgb(0, 0, 0); border-width: 3px 1px 1px;"><
>||<: bgcolor="#ccffff" style="border-style: solid; border-color: rgb(0, 0, 0); border-width: 3px 1px 1px;"><
>||<: bgcolor="#ccffff" style="border-style: solid; border-color: rgb(0, 0, 0); border-width: 3px 1px 1px;"><
>||<( bgcolor="#ccffff" style="border-top: 3px solid rgb(0, 0, 0); border-left: 1px solid rgb(0, 0, 0); border-bottom: 1px solid rgb(0, 0, 0);"><
>||<( bgcolor="#ccffff" style="border-top: 3px solid rgb(0, 0, 0); border-left: 1px solid rgb(0, 0, 0); border-bottom: 1px solid rgb(0, 0, 0);"><
>||<: bgcolor="#ccffff" style="border-style: solid; border-color: rgb(0, 0, 0); border-width: 3px 3px 1px;"><
>||<( bgcolor="#ccffff" style="border-top: 1px solid rgb(0, 0, 0); border-right: 3px solid rgb(0, 0, 0); border-bottom: 1px solid rgb(0, 0, 0);"><
>||
||<( bgcolor="#ccffff" height="16px" style="border-style: solid; border-color: rgb(0, 0, 0); border-width: 1px 3px;">''''''||<( bgcolor="#ccffff" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); border-bottom: 1px solid rgb(0, 0, 0);"><
>||<( bgcolor="#ccffff" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); border-bottom: 1px solid rgb(0, 0, 0);">Helpdesk||<( bgcolor="#ccffff" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); border-bottom: 1px solid rgb(0, 0, 0);">CRL||<: bgcolor="#ccffff" style="border: 1px solid rgb(0, 0, 0);">3||<: bgcolor="#ccffff" style="border: 1px solid rgb(0, 0, 0);">3||<: bgcolor="#ccffff" style="border: 1px solid rgb(0, 0, 0);">2||<: bgcolor="#ccffff" style="border: 1px solid rgb(0, 0, 0);">2||<: bgcolor="#ccffff" style="border: 1px solid rgb(0, 0, 0);">3||<: bgcolor="#ccffff" style="border: 1px solid rgb(0, 0, 0);">2||<: bgcolor="#ccffff" style="border: 1px solid rgb(0, 0, 0);">4||<( bgcolor="#ccffff" style="border-top: 1px solid rgb(0, 0, 0); border-left: 1px solid rgb(0, 0, 0); border-bottom: 1px solid rgb(0, 0, 0);"><
>||<( bgcolor="#ccffff" style="border-top: 1px solid rgb(0, 0, 0); border-left: 1px solid rgb(0, 0, 0); border-bottom: 1px solid rgb(0, 0, 0);"><
>||<: bgcolor="#ccffff" style="border-style: solid; border-color: rgb(0, 0, 0); border-width: 1px 3px;"><
>||<( bgcolor="#ccffff" style="border-top: 1px solid rgb(0, 0, 0); border-right: 3px solid rgb(0, 0, 0); border-bottom: 1px solid rgb(0, 0, 0);"><
>||
||<( bgcolor="#ccffff" height="16px" style="border-style: solid; border-color: rgb(0, 0, 0); border-width: 1px 3px;">''''''||<( bgcolor="#ccffff" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); border-bottom: 1px solid rgb(0, 0, 0);">OPC||<( bgcolor="#ccffff" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); border-bottom: 1px solid rgb(0, 0, 0);">Helpdesk||<( bgcolor="#ccffff" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); border-bottom: 1px solid rgb(0, 0, 0);">PS||<: bgcolor="#ccffff" style="border: 1px solid rgb(0, 0, 0);">3||<: bgcolor="#ccffff" style="border: 1px solid rgb(0, 0, 0);">3||<: bgcolor="#ccffff" style="border: 1px solid rgb(0, 0, 0);">3||<: bgcolor="#ccffff" style="border: 1px solid rgb(0, 0, 0);">2||<: bgcolor="#ccffff" style="border: 1px solid rgb(0, 0, 0);">3||<: bgcolor="#ccffff" style="border: 1px solid rgb(0, 0, 0);">3||<: bgcolor="#ccffff" style="border: 1px solid rgb(0, 0, 0);">5||<( bgcolor="#ccffff" style="border-top: 1px solid rgb(0, 0, 0); border-left: 1px solid rgb(0, 0, 0); border-bottom: 1px solid rgb(0, 0, 0);"><
>||<( bgcolor="#ccffff" style="border-top: 1px solid rgb(0, 0, 0); border-left: 1px solid rgb(0, 0, 0); border-bottom: 1px solid rgb(0, 0, 0);"><
>||<: bgcolor="#ccffff" style="border-style: solid; border-color: rgb(0, 0, 0); border-width: 1px 3px;">3||<( bgcolor="#ccffff" style="border-top: 1px solid rgb(0, 0, 0); border-right: 3px solid rgb(0, 0, 0); border-bottom: 1px solid rgb(0, 0, 0);"><
>||
= Plan =
## This part is for Moin``Moin developers:
* Priority:
* Assigned to: ThomasWaldmann
* Status: col/colgroup/meta support (or rather ''ignorance'') fixed in 1.5 branch, please try it now (on this wiki)
----
## If you are a moin core developer, replace the category to Category* in these cases:
## Category MoinMoinNoBug - if this is not a bug.
## Category MoinMoinBugConfirmed - if you can confirm the bug on current code.
## Category MoinMoinBugFixed - after the bug is fixed in current code.
CategoryMoinMoinBugFixed
This bug occurs whenever I copy and paste a HTML table into GUI editor. The message is like this:
{{{
--> -->
ConvertError
process_inline: Don't support meta element
If you want to report a bug, please save this page and attach it to your bug report.
* Show debugging information
* Report bug
* Visit MoinMoin wiki
Traceback
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
1.
/usr/lib/python2.3/site-packages/MoinMoin/request.py in run (self=
vorläufiger Raumpl...r />