Skip to content

fix: raw file paths without a scheme couldn't be accessed - #16

Merged
OS-pedrogustavobilro merged 5 commits into
mainfrom
fix/RMET-3892/contacts-photo-no-file-scheme
Sep 1, 2026
Merged

fix: raw file paths without a scheme couldn't be accessed#16
OS-pedrogustavobilro merged 5 commits into
mainfrom
fix/RMET-3892/contacts-photo-no-file-scheme

Conversation

@OS-pedrogustavobilro

Copy link
Copy Markdown
Contributor

Description

⚠️ 🤖 AI-assisted development with Claude Code, with manual review and tests done by me

Fixes a bug where passing raw file paths (not using a specific Directory like .library) without a scheme (e.g. no file://) was causing them to be incorrectly interpreted as a scheme-less URI (which iOS's file APIs can't actually read from or write to), and fail to be accessed. The fix involves checking if the received input actually has a valid scheme, and if not interpret it as a plain file path and convert to a URI.

Change Type

  • Fix
  • Feature
  • Refactor
  • Breaking Change
  • Documentation
  • Other (CI, chores, etc.)

Rationale / Problems Fixed

Internal JIRA Ref: https://outsystemsrd.atlassian.net/browse/RMET-3892

Testing an app with Contacts and File Plugin. The contact's photo, when available, was coming without a file:// scheme, which was causing the File Plugin to not access it correctly.

Tests or Reproductions

Refer to updated unit tests that pass after doing the fix (if you remove the fix they won't pass).

If you want to test on an actual mobile app -> You may use the current "Contacts Sample App" to reproduce the current issue.

To test the fix, you'll need to build this app from source, which hardcodes an xcframework with this fix (just unzip, open in Xcode and build and run):

Screenshots / Media

Before: Check video on RMET-3892

After: https://github.com/user-attachments/assets/184b793b-4923-4085-af5b-0e7e2c6f5c31

@OS-pedrogustavobilro
OS-pedrogustavobilro requested review from a team, OS-ruimoreiramendes, alexgerardojacinto, andredestro, markemer and theproducer and removed request for a team August 17, 2026 16:47
Comment thread .github/workflows/continuous_integration.yml Outdated
@OS-pedrogustavobilro
OS-pedrogustavobilro merged commit 8456bf2 into main Sep 1, 2026
1 check passed
@OS-pedrogustavobilro
OS-pedrogustavobilro deleted the fix/RMET-3892/contacts-photo-no-file-scheme branch September 1, 2026 16:53
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