intruxxer / zaproxy

Automatically exported from code.google.com/p/zaproxy
0 stars 0 forks source link

MissingResourceException when generating "Alerts" report #520

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Steps to reproduce the issue:
1. Run ZAP with add-on "Report alert generator" installed;
2. Access a site that generates alerts (example: "X-Content-Type-Options header 
missing");
3. Go to "Report" > "Generate Alerts Report" and save the report;
3. Check the log file, there should be some MissingResourceException exceptions:
[...]
ERROR org.zaproxy.zap.extension.alertReport.AlertReportExportPDF  - Failed to 
load message alert: Can't find resource for bundle 
java.util.PropertyResourceBundle, key alert.export.pluginid.10021.solution
java.util.MissingResourceException: Can't find resource for bundle 
java.util.PropertyResourceBundle, key alert.export.pluginid.10021.solution
    at java.util.ResourceBundle.getObject(ResourceBundle.java:393)
    at java.util.ResourceBundle.getString(ResourceBundle.java:353)
    at org.zaproxy.zap.extension.alertReport.ExtensionAlertReportExport.getMessageString(Unknown Source)
    at org.zaproxy.zap.extension.alertReport.AlertReportExportPDF.getFieldAlertProperty(Unknown Source)
    at org.zaproxy.zap.extension.alertReport.AlertReportExportPDF.addContent(Unknown Source)
    at org.zaproxy.zap.extension.alertReport.AlertReportExportPDF.exportAlert(Unknown Source)
    at org.zaproxy.zap.extension.alertReport.AlertReportExportMenuItem.generateAlertReport(Unknown Source)
    at org.zaproxy.zap.extension.alertReport.ExtensionAlertReportExport$1.actionPerformed(Unknown Source)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
[...]

Remarks:
Despite the exceptions the report is correctly generated.

Add-on version:
"Report alert generator" version 8.

Original issue reported on code.google.com by THC...@gmail.com on 15 Feb 2013 at 5:15

GoogleCodeExporter commented 9 years ago
https://code.google.com/p/zap-extensions/source/detail?r=382

Original comment by THC...@gmail.com on 15 Feb 2013 at 5:20

GoogleCodeExporter commented 9 years ago

Original comment by psii...@gmail.com on 18 Feb 2013 at 4:14

GoogleCodeExporter commented 9 years ago
Fixed in 2.1.0

Original comment by psii...@gmail.com on 18 Apr 2013 at 9:49