Skip to content

fix(contact-card): remove cache prefix from VCard filename - #862

Merged
FabianDevel merged 1 commit into
mainfrom
fabiandevel-fix-contactcard-vcard-filename
Sep 21, 2026
Merged

FabianDevel merged 1 commit into
mainfrom
fabiandevel-fix-contactcard-vcard-filename

Conversation

@FabianDevel

@FabianDevel FabianDevel commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Fix ContactCard shared VCard filenames so they no longer expose the attachments_cache directory prefix.
  • Keep the existing illegal-character sanitization and storage under cacheDir/attachments_cache.

A targeted unit test covers both the visible filename and sanitization behavior.

Validation

  • ./gradlew :Ui:Compose:ContactCard:testFdroidDebugUnitTest :Ui:Compose:ContactCard:testStandardDebugUnitTest --stacktrace
  • ./gradlew ktlintCheck --stacktrace
  • git diff --check

Copilot AI balanced review requested due to automatic review settings September 21, 2026 14:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The focused implementation matches the stated behavior and includes appropriate regression coverage.

Review effort: Balanced
Findings: None

What changed in this PR

Fixes shared VCard filenames while preserving their cache location and sanitization.

Changes:

  • Generates filenames from sanitized contact names only.
  • Adds targeted filename tests and test dependency.
File Description
ContactCardShareExt.kt Separates cache directory from filename generation.
ContactCardShareExtTest.kt Tests prefix removal and sanitization.
build.gradle.kts Adds Kotlin/JUnit test support.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@FabianDevel
FabianDevel force-pushed the fabiandevel-fix-contactcard-vcard-filename branch from 3d944d9 to 7947404 Compare September 21, 2026 14:03
@FabianDevel FabianDevel changed the title Fix ContactCard VCard filename fix(contact-card): remove cache prefix from VCard filename Sep 21, 2026
@FabianDevel
FabianDevel force-pushed the fabiandevel-fix-contactcard-vcard-filename branch from 7947404 to 4793685 Compare September 21, 2026 14:03
@FabianDevel
FabianDevel force-pushed the fabiandevel-fix-contactcard-vcard-filename branch from 50c047e to d64d6c2 Compare September 21, 2026 14:34
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@FabianDevel
FabianDevel force-pushed the fabiandevel-fix-contactcard-vcard-filename branch from d64d6c2 to f8056d2 Compare September 21, 2026 14:39
@sonarqubecloud

Copy link
Copy Markdown

@FabianDevel
FabianDevel merged commit 8f9dc9d into main Sep 21, 2026
9 checks passed
@FabianDevel
FabianDevel deleted the fabiandevel-fix-contactcard-vcard-filename branch September 21, 2026 14:42
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.

3 participants