Skip to content

Fix/mobile attachment - #57

Merged
ralflang merged 2 commits into
FRAMEWORK_6_0from
fix/mobile_attachment
May 28, 2026
Merged

ralflang merged 2 commits into
FRAMEWORK_6_0from
fix/mobile_attachment

Conversation

@TDannhauer

Copy link
Copy Markdown
Contributor

Fix smartmobile attachment links (Horde\Url\Url)

Fixes horde/imp#55

Summary

  • Stringify \Horde\Url\Url in attachment AJAX data (IMP_Contents_Message::showMessage()), not only Horde_Url.
  • In smartmobile.js, require download_url to be a string so a bad payload cannot produce /imp/[object Object].

Problem

Registry::downloadUrl() returns Horde\Url\Url. Smartmobile only coerced Horde_Url, so download_url was JSON-encoded as {}. The client then built links as /imp/[object Object].

Test plan

  • Mobile view: open a message with an attachment, expand attachments, tap download — file opens or saves (no routing error).
  • Desktop IMP message view: attachment list unchanged.

@TDannhauer
TDannhauer requested a review from ralflang May 27, 2026 17:35
@ralflang
ralflang merged commit def3afd into FRAMEWORK_6_0 May 28, 2026
0 of 6 checks passed
@TDannhauer
TDannhauer deleted the fix/mobile_attachment branch June 12, 2026 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug (imp) : mobile view: unable to view mail attachments

2 participants