On this page
- Key Takeaways
- Prepare a release inventory
- Check download URLs from a signed-out session
- Repeat the check from a terminal
- Verify publisher-provided checksums
- Example: check a SHA-256 manifest
- Inspect the files and release metadata
- Investigate stale or inconsistent copies
- Common Mistakes
- Release sign-off
- Conclusion
A dataset release is not ready just because its files exist in storage. A public download URL can return an error, redirect to a login page, or serve an older file from a cache. Use this workflow to check open data download links before release, verify the downloaded bytes against publisher-provided checksums, and record what you checked.
Key Takeaways
- Test the exact URLs that will appear in the public catalog, using a signed-out session.
- Inspect the final response and destination after redirects; a successful status alone does not prove that a dataset was downloaded.
- Compare downloaded files with trusted publisher-provided checksums. Matching checksums verify byte-for-byte agreement, not data quality or authenticity by themselves.
- Check filenames, file contents, metadata, and cached copies before approving the release.
Prepare a release inventory
For each CSV and JSON download, record the intended public URL, expected filename, format, release version, and expected content. Record the location of the publisher-provided checksum file and identify who approved it. Include any mirrors or alternate download URLs that users will see.
Agree on what constitutes a valid empty dataset: a zero-byte file, a CSV with only a header, and an empty JSON array are different cases. If the release should contain records, note the expected headers, structure, and approximate record count so a syntactically valid but incomplete file does not pass unnoticed.
This article makes no platform-specific naming or metadata recommendations. No platform documentation was available for review here. Before applying the workflow to a particular portal, consult that platform's official documentation for its file-naming, versioning, and metadata conventions.
Advertisement
Check download URLs from a signed-out session
Open a private browser window with no portal login, then visit each exact catalog URL. Private browsing is useful for avoiding existing browser cookies, but it does not eliminate network-level access controls. Where possible, repeat the check from a network without publisher-only access.
For each link:
- Download the file and confirm that no login is required.
- Inspect the final address and redirect chain in the browser's network tools. A redirect to a storage service may be intentional; a redirect to a login page or generic landing page is not a successful dataset download.
- Check the final status. For a normal full-file download, expect the status specified by the release workflow, commonly
200. Investigate unexpected statuses rather than treating every successful-looking response as equivalent. - Check the downloaded filename, response content type, and file contents. A page can return
200while containing HTML instead of CSV or JSON; content type and filename alone are not proof of the contents. - Compare the final destination with the intended release inventory, especially if a URL contains a version or filename.
Repeat the check from a terminal
The following example uses curl to follow redirects, save each response, and report the final status, URL, content type, and download size. Replace both example URLs with the actual public URLs. The commands have not been executed for this article.
set -eu
CSV_URL='https://example.org/replace-with-public-data.csv'
JSON_URL='https://example.org/replace-with-public-data.json'
mkdir -p release-check
cd release-check
curl -q --fail --location --silent --show-error \
--output data.csv \
--write-out 'status=%{http_code} url=%{url_effective} type=%{content_type} bytes=%{size_download}\n' \
"$CSV_URL"
curl -q --fail --location --silent --show-error \
--output data.json \
--write-out 'status=%{http_code} url=%{url_effective} type=%{content_type} bytes=%{size_download}\n' \
"$JSON_URL"
Here, -q prevents curl from loading its default configuration file, and no login or cookie options are supplied. The request may still be affected by your network, proxy, or environment. The --fail option makes many HTTP errors fail the command, but you must still inspect the reported final status and destination. For a redirect chain, use browser network tools or run a separate diagnostic request that shows response headers; avoid publishing sensitive headers or tokens in release logs.
The local names data.csv and data.json are deliberate: they make the checksum example below easier to follow. They do not verify the server's suggested download filename, so check that separately in the browser.
Verify publisher-provided checksums
A checksum is a digest calculated from file bytes. If a downloaded file's SHA-256 digest matches a trusted checksum for the intended release, the two byte sequences agree for practical integrity-checking purposes. This can reveal a truncated download, an altered file, or a stale copy—provided the trusted checksum belongs to the intended release.
A checksum does not establish that the data is accurate, complete, safe to open in every application, or appropriate for publication. Nor does a checksum prove publisher identity by itself: an attacker who can replace both the file and its checksum can make them agree. Obtain the checksum through an authenticated, trusted publisher process; if the publisher provides a signature, verify it using an independently trusted key and the publisher's instructions.
Example: check a SHA-256 manifest
In the release-check directory above, obtain the publisher's actual SHA-256 manifest through the approved release process and save it as SHA256SUMS. This example assumes the manifest uses the format accepted by sha256sum, lists the two downloaded files as data.csv and data.json, and contains no other entries. Inspect it first: filenames and paths in the manifest determine which local files the command reads. If the publisher uses different filenames, preserve those names locally or follow its verification instructions instead.
On a system with GNU sha256sum, run:
sha256sum -c SHA256SUMS
The command checks the named files against the supplied digests and reports whether they match. A missing file or mismatch needs investigation; do not generate a new checksum from the suspect download and treat that as independent verification. This example has not been run, and no checksum result is claimed here.
Advertisement
Inspect the files and release metadata
After the checksum check, confirm that the files are useful and correspond to the release. Checksums can faithfully verify a file that was wrong when the publisher created its manifest.
- CSV: Check that the file is not unexpectedly empty, opens as CSV, has the expected headers and encoding, and contains the expected number and shape of records. Check for an HTML error page saved with a
.csvextension. - JSON: Check that it parses and has the expected top-level structure and records. For a local syntax check with Python installed, run
python3 -m json.tool data.json > /dev/null. A valid JSON document can still be empty or contain the wrong dataset. - Metadata: Compare the title, description, release or update date, version identifier, format, license, and download URLs with the approved release information. Add other fields required by the publishing platform after consulting its documentation.
- Filenames: Compare the browser's downloaded filename and the checksum manifest's filename with the release inventory. An outdated filename can indicate an old link even when the download works.
If the dataset is sensitive until publication, perform content inspection only in an approved environment and avoid putting sample records into public logs or tickets.
Investigate stale or inconsistent copies
If the file at a public URL does not match the approved checksum, first confirm that the checksum and URL refer to the same release. Then compare the public download with an approved copy from the publishing system. A stale CDN or other cache is one possible cause; a changed filename, incorrect upload, or old manifest is another.
Use the platform's documented cache-refresh or invalidation procedure if needed, then download again and repeat the checksum and signed-out checks. When possible, repeat from another network or region. A single successful fetch does not establish that every cache location has refreshed. Ensure the data file and its checksum are published consistently so users do not see a new file paired with an old manifest, or the reverse.
Common Mistakes
- Checking only whether the link opens: A
200response can be a login or landing page rather than the dataset. - Testing while signed in: A publisher account may have access that the public does not.
- Trusting only the extension or content type: Inspect and parse the downloaded file as well.
- Using an untrusted or outdated checksum: A match is meaningful only when the checksum is for the intended file and comes through a trusted process.
- Ignoring an empty or unexpectedly small file: Decide in advance whether an empty release is valid and check its structure.
- Fixing the file but not its metadata: Update the catalog, manifest, and any public links together when a filename or version changes.
Release sign-off
Record the date of the checks, the URLs tested, final destinations and statuses, the checksum source and comparison results, and any cache locations or networks checked. Note unresolved exceptions and who approved them. After publication, repeat the checks against the actual public catalog links: a staging URL cannot establish that the final public route works.
Conclusion
Treat link availability, file integrity, and dataset correctness as separate checks. A release is ready when the intended public URLs serve the intended files without publisher-only access, their checksums match the trusted release manifest, and the files and metadata pass the release's content review.
What would your domain sell for?
A free TidyURLs account unlocks the Domain Estimator. It prices a name from 191,011 real domain sales.