Bug 44077 - [MediaWiki] bug in Mac OSX (10.4) needs workaround (javax.swing.text.html.HTMLEditorKit parses HTML wrong)
Summary: [MediaWiki] bug in Mac OSX (10.4) needs workaround (javax.swing.text.html.HTM...
Status: RESOLVED WONTFIX
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Extensions (show other bugs)
Version:
(earliest affected)
Master old -3.6
Hardware: PowerPC macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 34250
  Show dependency treegraph
 
Reported: 2011-12-22 14:04 UTC by Christian Lohmaier
Modified: 2013-07-28 08:31 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
part one of the testcase (1.14 KB, text/x-java)
2011-12-22 14:04 UTC, Christian Lohmaier
Details
second part of the testcase (1.34 KB, text/x-java)
2011-12-22 14:08 UTC, Christian Lohmaier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Lohmaier 2011-12-22 14:04:01 UTC
Created attachment 54716 [details]
part one of the testcase

On Mac 10.4/PPC with java version "1.5.0_19"

The Mediawiki extension uses HTMLEditorKit to parse HTML - but this fails as the attached files demonstrate. 

The parser messes up the document structure, seeing a closing </head> tag where there is none. This causes the wiki's "search for the wiki's base-path" to fail.
Comment 1 Christian Lohmaier 2011-12-22 14:08:28 UTC
Created attachment 54717 [details]
second part of the testcase

Running these on Linux (x86) with Java version "1.6.0_22" gives the expected output:

Real positions - starttag: 6 enddtag: 118
found head start tag at position 6
handle simple tag: meta
handle simple tag: link
got link-tag in head with href /index.php?title=foobar
found head end tag at position 118
result is »/«

Running on Mac/PPC with java 1.5.0_19 results in:

Real positions - starttag: 6 enddtag: 118
found head start tag at position 6
handle simple tag: meta
found head end tag at position 36
handle simple tag: link
result is »«

(position 36 is directly after the meta-tag)
Comment 2 Thorsten Behrens (allotropia) 2011-12-26 02:16:37 UTC
On 10.5 PPC, java version "1.5.0_30", result is

Real positions - starttag: 6 enddtag: 118
found head start tag at position 6
handle simple tag: meta
found head end tag at position 36
handle simple tag: link
result is »«

as well.
Comment 3 Urmas 2013-07-28 08:31:56 UTC
Closing a PowerPC-specific bug. Please reopen if it can be reproduced on Intel hardware too.