Skip to content

Pages with special-character titles cause errors in Android #10827

@diegodlh

Description

@diegodlh

Search first

  • I searched and no similar issues were found

What Happened?

When creating a new page on Logseq for Android that includes a special character (that would be percent encoded in the filename), briefly after starting to add content to it I get a "Page already exists with another file" error.
Any content added to the page is lost after closing and reopening the app.

Reproduce the Bug

  1. On Logseq for Android create a new page including a special character, such as "Test:1".
  2. Add some text to the page you have just created.
  3. A "Page already exists with another file" error should appear.
  4. Close and open the app.
  5. Open the page you created in step 1.

Expected Behavior

No error message should appear and the content added to the page should still be there after closing and opening the app.

Screenshots

WhatsApp Image 2024-01-09 at 20 52 34
For some reason I still haven't figured out, the interface shows in Italian even though the rest of my OS is in English. It must be some locale thing I touched somewhere some day, I just can't remember.
But it reads:

Page already exists with another file:
pages/Test%3A1.md,
current file:
pages/Test:1.md. Please keep only one of them and re-index your graph

Desktop or Mobile Platform Information

Logseq v0.10.3 on Android 12. Same behavior using Logseq 0.9.13.

Additional Context

The percent-encoded file (Test%3A1.md in the example) is indeed created, but content added to the page after the error message appears is not saved to the file anymore. No Test:1.md file is created.

I found a few bugs that may be related: #5114, #4972, #8915. However, two of them are closed and all of them refer to a more complex scenario where files are being synced between two devices. This bug should be reproduced without needing to sync files with another device.

Are you willing to submit a PR? If you know how to fix the bug.

  • I'm willing to submit a PR (Thank you!)

Metadata

Metadata

Assignees

Labels

:type/bugSomething isn't working. Affects daily use.fsFile systempriority-A

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions