Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-3952

When a part of a document contains incorrect HTML and the document is saved, no error message is shown and the document is *not* saved.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • High
    • Resolution: Fixed
    • r2.06.17, r2.09.07, r2.12.06
    • r2.15.01
    • None
    • None

    Description

      See the error message below. The incorrect HTML is probably the result of migrated content.
      Note that this error could only be fixed when a user can edit the HTML directly.
      The user should be informed of the incorrect HTML and that the article will not or cannot be saved.

      16.11.2009 15:19:41 ERROR [org.hippoecm.frontend.plugins.xinha.AbstractXinhaPlugin$5.setObject():320] Exception caught during editor creation while cleaning value:

      <li>some item</li>
      <li>some other item</li>
      <li>and another item</li>

      org.xml.sax.SAXException: Element "li" is disallowed at its current location, and could not automatically fix this.
      at nl.hippo.htmlcleaner.HtmlRepairer$Cleaner.structuralCleanup(HtmlRepairer.java:482)
      at nl.hippo.htmlcleaner.HtmlRepairer$Cleaner.clean(HtmlRepairer.java:138)
      at nl.hippo.htmlcleaner.HtmlRepairer$Cleaner.access$000(HtmlRepairer.java:107)
      at nl.hippo.htmlcleaner.HtmlRepairer.clean(HtmlRepairer.java:104)
      at nl.hippo.htmlcleaner.HtmlCleaner.clean(HtmlCleaner.java:51)
      at nl.hippo.htmlcleaner.HtmlCleaner.cleanToString(HtmlCleaner.java:62)
      at org.hippoecm.frontend.plugins.xinha.htmlcleaner.HtmlCleanerPlugin.clean(HtmlCleanerPlugin.java:60)
      at org.hippoecm.frontend.plugins.xinha.AbstractXinhaPlugin.clean(AbstractXinhaPlugin.java:299)
      at org.hippoecm.frontend.plugins.xinha.AbstractXinhaPlugin$5.setObject(AbstractXinhaPlugin.java:316)
      at org.apache.wicket.Component.setModelObject(Component.java:2889)
      at org.apache.wicket.markup.html.form.FormComponent.updateModel(FormComponent.java:1069)
      at org.apache.wicket.markup.html.form.FormComponent.processInput(FormComponent.java:951)
      at org.hippoecm.frontend.plugins.xinha.AbstractXinhaPlugin$7.handleRequest(AbstractXinhaPlugin.java:381)
      at org.hippoecm.frontend.plugins.xinha.AbstractXinhaPlugin$7$1.respond(AbstractXinhaPlugin.java:368)
      at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:104)
      at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1181)
      at org.apache.wicket.RequestCycle.step(RequestCycle.java:1252)
      at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353)
      at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
      at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355)
      at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:200)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.hippoecm.frontend.plugins.login.ConcurrentLoginFilter.doFilter(ConcurrentLoginFilter.java:54)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
      at java.lang.Thread.run(Thread.java:619)

      Attachments

        Activity

          People

            Unassigned Unassigned
            wpasman Wouter Pasman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: