Issue raised [1].
[1]
https://code.google.com/p/zaproxy/issues/detail?id=1555
Thanks!
Best regards.
On 05/03/15 18:21, William Aldrich wrote:
> When I say "unfortunately when I copied it," above, I mean when I copied
> the error message from the console.
> I realized it was not clear after I posted it.
> Thanks,
> -Bill
>
> On Thursday, March 5, 2015 at 1:11:02 PM UTC-5, William Aldrich wrote:
>
> Thanks,
> I started a new session and ran a few tests, then I used the API to
> close the session.
> I then realized I needed the session still running to use the API to
> generate a reports so I restarted my last session.
> Using the htmlreport API page (
http://zap/UI/core/other/htmlreport/
> <
http://zap/UI/core/other/htmlreport/>), I clicked the button and
> waited, and waited...
> Going back to the console, I noticed the following error:
> *[Fatal Error] :3140:1170609: The element type "p" must be
> terminated by the matching end-tag "</p>".*
> *43465 [ZAP-ProxyThread-2] ERROR
> org.parosproxy.paros.extension.report.ReportGenerator - The element
> type "p" must be terminated by the matching end-tag "</p>".*
> *org.xml.sax.SAXParseException; lineNumber: 3140; columnNumber:
> 1170609; The element type "p" must be terminated by the matching
> end-tag "</p>".*
> * at
> com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:251)*
> * at
> com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:300)*
> * at
> org.parosproxy.paros.extension.report.ReportGenerator.stringToHtml(ReportGenerator.java:136)*
> * at
> org.zaproxy.zap.extension.api.CoreAPI.writeReportLastScanTo(CoreAPI.java:870)*
> * at
> org.zaproxy.zap.extension.api.CoreAPI.handleApiOther(CoreAPI.java:738)*
> * at
> org.zaproxy.zap.extension.api.API.handleApiRequest(API.java:350)*
> * at
> org.parosproxy.paros.core.proxy.ProxyThread.processHttp(ProxyThread.java:320)*
> * at
> org.parosproxy.paros.core.proxy.ProxyThread.run(ProxyThread.java:235)*
> * at java.lang.Thread.run(Thread.java:724)*
> Never got a report and, unfortunately when I copied it, I used ctl-c
> and killed the session.
> There was a log that I copied and attached.
>
> Again, thanks for all the help,
> -Bill
>
>
> On Thursday, March 5, 2015 at 10:34:20 AM UTC-5, William Aldrich wrote:
>
> First, I'm working on a Linux box that has no GUI so everything
> is command line :-)
> I'm setting up the box as the proxy for our test traffic to pass
> through.
> This is the command line I'm using to start the ZAP proxy on the
> Linux box:
> * sh /../home/qa-selenium/ZAProxy/zap_m1/zap.sh -daemon -port
> 8080 -dir /home/qa-selenium/ZAP -newsession
> /home/qa-selenium/ZAP/session/test3_5*
> A new session is started, and I begin to send tests through the
> proxy.
> At the end of a testing session, I stop the ZAP session with a
> ctl-C and attempt to generate a report with the following command:
> * sh /../home/qa-selenium/ZAProxy/zap_m1/zap.sh
> -last_scan_report
> /home/qa-selenium/ZAProxy/Reports/Scan3-5-2015.html -session
> /home/qa-selenium/ZAP/session/test3_5 -cmd*
> This is what I see on the console after starting with the line
> above:
> *Found Java version 1.7.0_25*
> * Available memory: 7999 MB*
> * Setting jvm heap size: -Xmx512m*
> * [Fatal Error] :3837:1170609: The element type "p" must be
> terminated by the matching end-tag "</p>".*
> * Last Scan Report generated at
> /home/qa-selenium/ZAProxy/Reports/Scan3-5-2015.html*
> ZAP lies, :-) the report is never generated.
> Am I doing something wrong by using ctl-C to end the session?
> I'm really an old windows user being transitioned to a Linux
> environment so maybe I have a bad habit in the Linux world.
> I don't have a prompt back so I was not sure if I should use
> ctl-C or ctl-Z to exit.
> If the report is complaining that a page was missing a tag, I
> could see that being a problem as I've seen many a missing tag
> of different types but still pages display so developers think
> it is OK.
> I would hope the report not being generated is not dependent on
> the pages that were passed meeting a standard of having all
> close tags.
> This looks to be a very promising tool for pen testing!
> Any help is appreciated,
> Thanks,
> -Bill