{
    "id": "cub172-download-response",
    "title": "Выдать выбранное вложение реальным HTTP-ответом и отказать чужому ID",
    "columns": [
        "Наблюдение",
        "Результат"
    ],
    "rows": [
        [
            "Разрешённый документ: HTTP",
            200
        ],
        [
            "Получено байт",
            14
        ],
        [
            "Другой ID: HTTP",
            403
        ],
        [
            "HTTP-worker остановлен",
            true
        ]
    ],
    "checks": {
        "allowed_200": true,
        "body_exact": true,
        "length_header_exact": true,
        "binary_content_type": true,
        "attachment_name": true,
        "nosniff": true,
        "other_id_denied": true,
        "two_http_requests": true,
        "worker_stopped": true,
        "saved_response_exact": true,
        "legacy_closed": true,
        "owned_objects_removed": true
    },
    "observations": {
        "delivery": "legacy export to file, then core PHP HTTP file delivery",
        "http": {
            "responses": [
                {
                    "schema": "aen-cubrid172-http-response-v1",
                    "request_number": 1,
                    "method": "GET",
                    "record_id": 42,
                    "status": 200,
                    "headers": {
                        "content-type": "application\/octet-stream",
                        "content-disposition": "attachment; filename=\"calibration-42.bin\"",
                        "content-length": "14",
                        "x-content-type-options": "nosniff",
                        "cache-control": "no-store"
                    },
                    "body_bytes": 14,
                    "body_sha256": "eac017dcbda37d9c6b731b78ec6c68e8ae593300191dcfff4b5b4c8b35b7175e"
                },
                {
                    "schema": "aen-cubrid172-http-response-v1",
                    "request_number": 2,
                    "method": "GET",
                    "record_id": 99,
                    "status": 403,
                    "headers": {
                        "content-type": "text\/plain; charset=UTF-8",
                        "content-length": "7",
                        "x-content-type-options": "nosniff"
                    },
                    "body_bytes": 7,
                    "body_sha256": "ad9c44baa1b750f4391d73516cd9d55019fbf44f552efde461f9965d598d7640"
                }
            ],
            "worker_stopped": true,
            "http_requests": 2
        },
        "body_sha256": "eac017dcbda37d9c6b731b78ec6c68e8ae593300191dcfff4b5b4c8b35b7175e",
        "body_hex": "434845434b31373200010203ff0a"
    },
    "runtime": {
        "php": "7.4.33",
        "extension": "11.2.0.0002",
        "php_extension_metadata": null,
        "server_version": "11.3.5.1274",
        "client_version": "11.2.0",
        "database": "phpmanual172",
        "transport": "isolated_loopback_broker",
        "charset": "utf-8",
        "autocommit": false
    },
    "owned_objects": [
        {
            "type": "TABLE",
            "name": "c172_download_6b4f5fe329"
        }
    ],
    "removed_objects": [
        {
            "type": "TABLE",
            "name": "c172_download_6b4f5fe329"
        }
    ]
}
