duckduckgo / duckduckgo/Android

[Bug] PDF downloads are corrupt/not accessible

Open
#3,028 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug needs triage
Dominant language
Kotlin
Stars
4.8k
Forks
1.4k
Avg merge
2d 17h
Merged PRs (30d)
170

Description

Describe the bug

https://www.nationalphotonic.com/product/datasheet-asys-dbell-110/
When you download from this website through duckduckgo on android the pdf will not open, if you add them to dropbox it says they are corrupt/unsupported.
The downloads work on other browsers on android (chrome) and work on desktop on duckduckgo/chrome/firefox any ideas how to fix this?
many thanks

How to Reproduce

Go to '...'
Click on 'Download Now'
Open file
See error

Expected behavior

file should open as normal pdf

Environment
- DDG App Version: 5.154.0
- Device: Samsung Galaxy Tab A
- OS: Android

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the download from the reported National Photonic URL in DuckDuckGo Android 5.154.0 on an Android device, then compare the downloaded PDF with the result from Chrome. Done means the Download Now file opens normally and can be added to Dropbox without being reported as corrupt.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.