{"action":"created","issue":{"url":"https://api.github.com/repos/Arachni/arachni-ui-web/issues/90","labels_url":"https://api.github.com/repos/Arachni/arachni-ui-web/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/Arachni/arachni-ui-web/issues/90/comments","events_url":"https://api.github.com/repos/Arachni/arachni-ui-web/issues/90/events","html_url":"https://github.com/Arachni/arachni-ui-web/issues/90","id":70716389,"number":90,"title":"The full report for this scan could not be retrieved due to an unknown error. ","user":{"login":"nitzanm","id":345917,"avatar_url":"https://avatars.githubusercontent.com/u/345917?v=3","gravatar_id":"","url":"https://api.github.com/users/nitzanm","html_url":"https://github.com/nitzanm","followers_url":"https://api.github.com/users/nitzanm/followers","following_url":"https://api.github.com/users/nitzanm/following{/other_user}","gists_url":"https://api.github.com/users/nitzanm/gists{/gist_id}","starred_url":"https://api.github.com/users/nitzanm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nitzanm/subscriptions","organizations_url":"https://api.github.com/users/nitzanm/orgs","repos_url":"https://api.github.com/users/nitzanm/repos","events_url":"https://api.github.com/users/nitzanm/events{/privacy}","received_events_url":"https://api.github.com/users/nitzanm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-24T15:17:30Z","updated_at":"2015-04-24T21:41:34Z","closed_at":null,"body":"I am trying to run a scan, which completes successfully, but the top of the report shows \"The full report for this scan could not be retrieved due to an unknown error.\" and I cannot export the scan results.  The system/logs/webui/production.log shows the following message:\r\n\r\n```\r\nArgumentError: string contains null byte: INSERT INTO \"reports\" (\"created_at\", \"object\", \"scan_id\", \"sitemap\", \"updated_at\") VALUES ($1, $2, $3, $4, $5) RETURNING \"id\"\r\nstring contains null byte\r\n.../system/gems/gems/activerecord-4.1.7/lib/active_record/connection_adapters/postgresql_adapter.rb:832:in `send_query_prepared'\r\n.../system/gems/gems/activerecord-4.1.7/lib/active_record/connection_adapters/postgresql_adapter.rb:832:in `block in exec_cache'\r\n.../system/gems/gems/activerecord-4.1.7/lib/active_record/connection_adapters/abstract_adapter.rb:373:in `block in log'\r\n.../system/gems/gems/activesupport-4.1.7/lib/active_support/notifications/instrumenter.rb:20:in `instrument'\r\n.../system/gems/gems/activerecord-4.1.7/lib/active_record/connection_adapters/abstract_adapter.rb:367:in `log'\r\n.../system/gems/gems/activerecord-4.1.7/lib/active_record/connection_adapters/postgresql_adapter.rb:831:in `exec_cache'\r\n.../system/gems/gems/activerecord-4.1.7/lib/active_record/connection_adapters/postgresql/database_statements.rb:138:in `exec_query'\r\n.../system/gems/gems/activerecord-4.1.7/lib/active_record/connection_adapters/postgresql/database_statements.rb:177:in `exec_insert'\r\n.../system/gems/gems/activerecord-4.1.7/lib/active_record/connection_adapters/abstract/database_statements.rb:95:in `insert'\r\n.../system/gems/gems/activerecord-4.1.7/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert'\r\n.../system/gems/gems/activerecord-4.1.7/lib/active_record/relation.rb:64:in `insert'\r\n.../system/gems/gems/activerecord-4.1.7/lib/active_record/persistence.rb:503:in `_create_record'\r\n.../system/gems/gems/activerecord-4.1.7/lib/active_record/attribute_methods/dirty.rb:87:in `_create_record'\r\n.../system/gems/gems/activerecord-4.1.7/lib/active_record/callbacks.rb:306:in `block in _create_record'\r\n.../system/gems/gems/activesupport-4.1.7/lib/active_support/callbacks.rb:82:in `run_callbacks'\r\n.../system/gems/gems/activerecord-4.1.7/lib/active_record/callbacks.rb:306:in `_create_record'\r\n.../system/gems/gems/activerecord-4.1.7/lib/active_record/timestamp.rb:57:in `_create_record'\r\n.../system/gems/gems/activerecord-4.1.7/lib/active_record/persistence.rb:483:in `create_or_update'\r\n.../system/gems/gems/activerecord-4.1.7/lib/active_record/callbacks.rb:302:in `block in create_or_update'\r\n.../system/gems/gems/activesupport-4.1.7/lib/active_support/callbacks.rb:113:in `call'\r\n.../system/gems/gems/activesupport-4.1.7/lib/active_support/callbacks.rb:113:in `call'\r\n.../system/gems/gems/activesupport-4.1.7/lib/active_support/callbacks.rb:166:in `block in halting'\r\n.../system/gems/gems/activesupport-4.1.7/lib/active_support/callbacks.rb:86:in `call'\r\n.../system/gems/gems/activesupport-4.1.7/lib/active_support/callbacks.rb:86:in `run_callbacks'\r\n.../system/gems/gems/activerecord-4.1.7/lib/active_record/callbacks.rb:302:in `create_or_update'\r\n.../system/gems/gems/activerecord-4.1.7/lib/active_record/persistence.rb:103:in `save'\r\n.../system/gems/gems/activerecord-4.1.7/lib/active_record/validations.rb:51:in `save'\r\n.../system/gems/gems/activerecord-4.1.7/lib/active_record/attribute_methods/dirty.rb:21:in `save'\r\n.../system/gems/gems/activerecord-4.1.7/lib/active_record/transactions.rb:268:in `block (2 levels) in save'\r\n.../system/gems/gems/activerecord-4.1.7/lib/active_record/transactions.rb:329:in `block in with_transaction_returning_status'\r\n.../system/gems/gems/activerecord-4.1.7/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `block in transaction'\r\n.../system/gems/gems/activerecord-4.1.7/lib/active_record/connection_adapters/abstract/database_statements.rb:209:in `within_new_transaction'\r\n.../system/gems/gems/activerecord-4.1.7/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `transaction'\r\n.../system/gems/gems/activerecord-4.1.7/lib/active_record/transactions.rb:208:in `transaction'\r\n.../system/gems/gems/activerecord-4.1.7/lib/active_record/transactions.rb:326:in `with_transaction_returning_status'\r\n.../system/gems/gems/activerecord-4.1.7/lib/active_record/transactions.rb:268:in `block in save'\r\n.../system/gems/gems/activerecord-4.1.7/lib/active_record/transactions.rb:283:in `rollback_active_record_state!'\r\n.../system/gems/gems/activerecord-4.1.7/lib/active_record/transactions.rb:267:in `save'\r\n.../system/gems/gems/activerecord-4.1.7/lib/active_record/persistence.rb:34:in `create'\r\n.../system/arachni-ui-web/app/models/scan.rb:650:in `create_report'\r\n.../system/arachni-ui-web/app/models/scan.rb:759:in `block in save_report_and_shutdown'\r\n.../system/gems/gems/arachni-rpc-0.2.1.2/lib/arachni/rpc/proxy.rb:58:in `call'\r\n.../system/gems/gems/arachni-rpc-0.2.1.2/lib/arachni/rpc/proxy.rb:58:in `block (2 levels) in translate'\r\n.../system/gems/gems/arachni-rpc-0.2.1.2/lib/arachni/rpc/client/handler.rb:77:in `call'\r\n.../system/gems/gems/arachni-rpc-0.2.1.2/lib/arachni/rpc/client/handler.rb:77:in `receive_response'\r\n.../system/gems/gems/arachni-rpc-0.2.1.2/lib/arachni/rpc/client/handler.rb:137:in `receive_object'\r\n.../system/gems/gems/arachni-rpc-0.2.1.2/lib/arachni/rpc/protocol.rb:52:in `on_read'\r\n.../system/gems/gems/arachni-reactor-0.1.0/lib/arachni/reactor/connection.rb:255:in `block in _read'\r\n.../system/gems/gems/arachni-reactor-0.1.0/lib/arachni/reactor/connection/error.rb:26:in `call'\r\n.../system/gems/gems/arachni-reactor-0.1.0/lib/arachni/reactor/connection/error.rb:26:in `translate'\r\n.../system/gems/gems/arachni-reactor-0.1.0/lib/arachni/reactor/connection.rb:254:in `_read'\r\n.../system/gems/gems/arachni-reactor-0.1.0/lib/arachni/reactor/connection/tls.rb:115:in `_read'\r\n.../system/gems/gems/arachni-reactor-0.1.0/lib/arachni/reactor.rb:574:in `each'\r\n.../system/gems/gems/arachni-reactor-0.1.0/lib/arachni/reactor.rb:574:in `block in process_connections'\r\n.../system/gems/gems/arachni-reactor-0.1.0/lib/arachni/reactor.rb:574:in `each'\r\n.../system/gems/gems/arachni-reactor-0.1.0/lib/arachni/reactor.rb:574:in `process_connections'\r\n.../system/gems/gems/arachni-reactor-0.1.0/lib/arachni/reactor.rb:316:in `block in run'\r\n.../system/gems/gems/arachni-reactor-0.1.0/lib/arachni/reactor.rb:307:in `loop'\r\n.../system/gems/gems/arachni-reactor-0.1.0/lib/arachni/reactor.rb:307:in `run'\r\n.../system/gems/gems/arachni-reactor-0.1.0/lib/arachni/reactor.rb:349:in `block in run_in_thread'\r\n```"},"comment":{"url":"https://api.github.com/repos/Arachni/arachni-ui-web/issues/comments/96073759","html_url":"https://github.com/Arachni/arachni-ui-web/issues/90#issuecomment-96073759","issue_url":"https://api.github.com/repos/Arachni/arachni-ui-web/issues/90","id":96073759,"user":{"login":"Zapotek","id":375743,"avatar_url":"https://avatars.githubusercontent.com/u/375743?v=3","gravatar_id":"","url":"https://api.github.com/users/Zapotek","html_url":"https://github.com/Zapotek","followers_url":"https://api.github.com/users/Zapotek/followers","following_url":"https://api.github.com/users/Zapotek/following{/other_user}","gists_url":"https://api.github.com/users/Zapotek/gists{/gist_id}","starred_url":"https://api.github.com/users/Zapotek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zapotek/subscriptions","organizations_url":"https://api.github.com/users/Zapotek/orgs","repos_url":"https://api.github.com/users/Zapotek/repos","events_url":"https://api.github.com/users/Zapotek/events{/privacy}","received_events_url":"https://api.github.com/users/Zapotek/received_events","type":"User","site_admin":false},"created_at":"2015-04-24T21:41:34Z","updated_at":"2015-04-24T21:41:34Z","body":"Hello,\r\n\r\nCould you please retry using the [nightlies](http://downloads.arachni-scanner.com/nightlies/)?\r\nThe report serialization format has changed to fix those types of errors.\r\n\r\nCheers"}}