[GH-ISSUE #529] Attachment shows "link expired" for external attachments #404

Closed
opened 2026-05-07 00:23:52 +02:00 by BreizhHardware · 3 comments

Originally created by @binwiederhier on GitHub (Dec 5, 2022).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/529

In the case below, the attachment can only be downloaded from the notification action button, but not from the ntfy detail view.

curl -d "Here's a notification with an .apk attachment" -H "Attach: https://f-droid.org/repo/com.calcitem.sanmill_3178.apk" -H p:4 ntfy.sh/demogoogle

Here's a video+screenshot showing the issue. The first attempt in the video works, the following attempts do not: https://photos.app.goo.gl/mKAEyh7VYyWBmtaW6

image

Originally created by @binwiederhier on GitHub (Dec 5, 2022). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/529 In the case below, the attachment can only be downloaded from the notification action button, but not from the ntfy detail view. ``` curl -d "Here's a notification with an .apk attachment" -H "Attach: https://f-droid.org/repo/com.calcitem.sanmill_3178.apk" -H p:4 ntfy.sh/demogoogle ``` Here's a video+screenshot showing the issue. The first attempt in the video works, the following attempts do not: https://photos.app.goo.gl/mKAEyh7VYyWBmtaW6 ![image](https://user-images.githubusercontent.com/664597/205536948-6f78e860-9a5c-4b08-86f2-69ada4771f5a.png)
BreizhHardware 2026-05-07 00:23:52 +02:00
Author
Owner

@binwiederhier commented on GitHub (Dec 5, 2022):

I think this is a Firebase-only bug. Top one received via instant delivery, bottom via Firebase:

image

<!-- gh-comment-id:1336726078 --> @binwiederhier commented on GitHub (Dec 5, 2022): I think this is a Firebase-only bug. Top one received via instant delivery, bottom via Firebase: ![image](https://user-images.githubusercontent.com/664597/205547987-276ab70c-6c3a-480a-8234-147e8192def2.png)
Author
Owner

@binwiederhier commented on GitHub (Dec 5, 2022):

It's because attachment_expires=0:

2022-12-04 23:11:45.920 2619-5880/io.heckel.ntfy D/NtfyFirebase: Received message: from=/topics/demogoogle, fcmprio=1, fcmprio_orig=1, data={priority=4, attachment_name=com.calcitem.sanmill_3178.apk, attachment_size=0, attachment_type=, attachment_expires=0, id=lpClKDAT6eJz, icon=, tags=, time=1670213505, click=, event=message, title=, topic=demogoogle, attachment_url=https://f-droid.org/repo/com.calcitem.sanmill_3178.apk, message=Here's a notification with an .apk attachment, encoding=}
<!-- gh-comment-id:1336727401 --> @binwiederhier commented on GitHub (Dec 5, 2022): It's because `attachment_expires=0`: ``` 2022-12-04 23:11:45.920 2619-5880/io.heckel.ntfy D/NtfyFirebase: Received message: from=/topics/demogoogle, fcmprio=1, fcmprio_orig=1, data={priority=4, attachment_name=com.calcitem.sanmill_3178.apk, attachment_size=0, attachment_type=, attachment_expires=0, id=lpClKDAT6eJz, icon=, tags=, time=1670213505, click=, event=message, title=, topic=demogoogle, attachment_url=https://f-droid.org/repo/com.calcitem.sanmill_3178.apk, message=Here's a notification with an .apk attachment, encoding=} ```
Author
Owner

@binwiederhier commented on GitHub (Dec 5, 2022):

Fixed in github.com/binwiederhier/ntfy-android@b91778ad7d

<!-- gh-comment-id:1336735202 --> @binwiederhier commented on GitHub (Dec 5, 2022): Fixed in https://github.com/binwiederhier/ntfy-android/commit/b91778ad7d13402edb675d1482d43d959820ab0e
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#404
No description provided.