-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect Usage of SQLITE_OPEN_FILEPROTECTION_NONE in FIRMessagingRmqManager.m #12900
Labels
Comments
@morganchen12 @paulb777 Can you help us with this issue? Let us know if we can contribute to fix it. |
Yes, the proposed solution looks reasonable to me and you're welcome to open a PR for this if you'd like. |
doganaltinbas
added a commit
to doganaltinbas/firebase-ios-sdk
that referenced
this issue
May 7, 2024
firebase#12900 Testing I ran test locally
doganaltinbas
added a commit
to doganaltinbas/firebase-ios-sdk
that referenced
this issue
May 7, 2024
Done via #12909. Thanks again, @doganaltinbas! This will go out in Firebase 10.27.0 |
ncooke3
added a commit
that referenced
this issue
May 8, 2024
ncooke3
added a commit
that referenced
this issue
May 8, 2024
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
Description:
In the method
- (void)openDatabase
within the fileFIRMessagingRmqManager.m
, the constantSQLITE_OPEN_FILEPROTECTION_NONE
is erroneously passed to the functionsqlite3_open_v2(...)
. This issue is akin to the problem reported for Remote Config in issue #10884 and has now surfaced in the Messaging module. Notably,SQLITE_OPEN_FILEPROTECTION_NONE
is not a standard flag provided by SQLite; rather, it's specific to Apple's version of SQLite and has not been merged into the main repository.Current Implementation:
The following line in the
FIRMessagingRmqManager.m
,Proposed Solution:
To address this issue, the following modifications can be made to the
FIRMessagingRmqManager.m
file:Replace the existing line with the following lines:
This solution mirrors the approach(#12548) implemented for issue #10884 and ensures compatibility with both Apple's SQLite version and the main repository.
Reproducing the issue
No response
Firebase SDK Version
10.25.0
Xcode Version
15.3
Installation Method
Swift Package Manager
Firebase Product(s)
Messaging
Targeted Platforms
iOS
Relevant Log Output
No response
If using Swift Package Manager, the project's Package.resolved
Expand
Package.resolved
snippetReplace this line with the contents of your Package.resolved.
If using CocoaPods, the project's Podfile.lock
Expand
Podfile.lock
snippetReplace this line with the contents of your Podfile.lock!
The text was updated successfully, but these errors were encountered: