Skip to content

Fix SQLiteBlobTooBigException in note sync#3149

Open
utafrali wants to merge 1 commit intonextcloud:mainfrom
utafrali:fix/issue-3148-synchronization-fail-with-sqliteblobtoob
Open

Fix SQLiteBlobTooBigException in note sync#3149
utafrali wants to merge 1 commit intonextcloud:mainfrom
utafrali:fix/issue-3148-synchronization-fail-with-sqliteblobtoob

Conversation

@utafrali
Copy link
Copy Markdown

Fixes #3148

The addNote() method was inserting notes and then immediately calling getNoteById() to fetch them back. With large content, this redundant fetch was triggering SQLiteBlobTooBigException.

Just set the ID on the note object directly and return it. No need for the extra database call.

Screenshots

N/A - backend fix only

Testing

  • Tested with notes of various sizes, including ones that would have triggered the exception
  • Verified notes insert correctly with proper ID
  • Sync operations work normally

The addNote() method was inserting notes and then immediately calling
getNoteById() to fetch them back. With large content, this redundant
fetch triggers SQLiteBlobTooBigException.

Just set the ID directly on the note object and return it.
@codacy-production
Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity

Metric Results
Complexity 0

View in Codacy

TIP This summary will be updated as you push new changes. Give us feedback

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.

Synchronization Fail with SQLiteBlobTooBigException

1 participant