Details

    • 11 status:
      Merge

      Description

      We've found some errors in our logs like this:

      ERROR:  ''
      2016-12-30 13:43:48,555 ERROR ajp-nio-8014-exec-3 org.sakaiproject.util.impl.FormattedTextImpl - processFormattedText: Failure during scan of input html: org.owasp.validator.html.ScanException: javax.xml.transform.TransformerException: java.lang.IllegalStateException
      org.owasp.validator.html.ScanException: javax.xml.transform.TransformerException: java.lang.IllegalStateException
      	at org.owasp.validator.html.scan.AntiSamySAXScanner.scan(AntiSamySAXScanner.java:135)
      	at org.owasp.validator.html.AntiSamy.scan(AntiSamy.java:101)
      	at org.owasp.validator.html.AntiSamy.scan(AntiSamy.java:78)
      	at org.sakaiproject.util.impl.FormattedTextImpl.processFormattedText(FormattedTextImpl.java:355)
      	at org.sakaiproject.util.impl.FormattedTextImpl.processFormattedText(FormattedTextImpl.java:276)
      	at org.sakaiproject.util.FormattedText.processFormattedText(FormattedText.java:67)
      	at org.sakaiproject.announcement.tool.AnnouncementAction.processFormattedTextFromBrowser(AnnouncementAction.java:5038)
      	at org.sakaiproject.announcement.tool.AnnouncementAction.readAnnouncementForm(AnnouncementAction.java:2806)
      	at org.sakaiproject.announcement.tool.AnnouncementAction.doAnnouncement_form(AnnouncementAction.java:2767)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.sakaiproject.cheftool.VelocityPortletPaneledAction.actionDispatch(VelocityPortletPaneledAction.java:785)
      	at org.sakaiproject.cheftool.VelocityPortletPaneledAction.processAction(VelocityPortletPaneledAction.java:619)
      	at org.sakaiproject.cheftool.ToolServlet.doGet(ToolServlet.java:230)
      	at org.sakaiproject.cheftool.VelocityPortletPaneledAction.doGet(VelocityPortletPaneledAction.java:1215)
      	at org.sakaiproject.cheftool.ToolServlet.doPost(ToolServlet.java:154)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
      	at org.sakaiproject.vm.ComponentServlet.service(ComponentServlet.java:56)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
      	at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:406)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
      	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:720)
      	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:466)
      	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:358)
      	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:318)
      	at org.sakaiproject.tool.impl.ActiveToolComponent$MyActiveTool.forward(ActiveToolComponent.java:513)
      	at org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1458)
      	at org.sakaiproject.portal.charon.handlers.SiteHandler.doToolBuffer(SiteHandler.java:1154)
      	at org.sakaiproject.portal.charon.handlers.SiteHandler.bufferContent(SiteHandler.java:1010)
      	at org.sakaiproject.portal.charon.handlers.SiteHandler.doSite(SiteHandler.java:484)
      	at org.sakaiproject.portal.charon.handlers.SiteHandler.doGet(SiteHandler.java:263)
      	at org.sakaiproject.portal.charon.handlers.SiteHandler.doGet(SiteHandler.java:151)
      	at org.sakaiproject.portal.charon.handlers.WorksiteHandler.doPost(WorksiteHandler.java:71)
      	at org.sakaiproject.portal.charon.SkinnableCharonPortal.doPost(SkinnableCharonPortal.java:1136)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
      	at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:467)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
      	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
      	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
      	at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:676)
      	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
      	at org.apache.coyote.ajp.AbstractAjpProcessor.process(AbstractAjpProcessor.java:868)
      	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
      	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
      	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: javax.xml.transform.TransformerException: java.lang.IllegalStateException
      	at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:746)
      	at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:351)
      	at org.owasp.validator.html.scan.AntiSamySAXScanner.scan(AntiSamySAXScanner.java:125)
      	... 65 more
      Caused by: java.lang.IllegalStateException
      	at org.apache.batik.css.parser.CSSLexicalUnit.getIntegerValue(CSSLexicalUnit.java:119)
      	at org.owasp.validator.css.CssValidator.lexicalValueToString(CssValidator.java:379)
      	at org.owasp.validator.css.CssValidator.isValidProperty(CssValidator.java:98)
      	at org.owasp.validator.css.CssHandler.property(CssHandler.java:484)
      	at org.apache.batik.css.parser.Parser.parseStyleDeclaration(Parser.java:885)
      	at org.apache.batik.css.parser.Parser.parseStyleDeclarationInternal(Parser.java:269)
      	at org.apache.batik.css.parser.Parser.parseStyleDeclaration(Parser.java:1694)
      	at org.owasp.validator.css.CssScanner.scanInlineStyle(CssScanner.java:202)
      	at org.owasp.validator.html.scan.MagicSAXFilter.startElement(MagicSAXFilter.java:296)
      	at org.cyberneko.html.HTMLTagBalancer.callStartElement(HTMLTagBalancer.java:1141)
      	at org.cyberneko.html.HTMLTagBalancer.startElement(HTMLTagBalancer.java:746)
      	at org.cyberneko.html.HTMLScanner$ContentScanner.scanStartElement(HTMLScanner.java:2701)
      	at org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:2057)
      	at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:917)
      	at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499)
      	at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452)
      	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
      	at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(TransformerImpl.java:668)
      	at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:737)
      	... 67 more
      

      It seems that this is a bug in antisamy library fixed in the last version.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                k1team KERNEL TEAM
                Reporter:
                jjmerono@um.es Juan José Meroño Sánchez
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code