Skip to content

RTDB exposes wrong error message when performing get on a path blocked by security rules #11835

Open
@maneesht

Description

@maneesht

Description

When calling getData on a path, say /a/b, and / is set to deny reads, the SDK responds with

Unable to get latest value for query FQuerySpec (path: /a/b, params: {
}), client offline with no active listeners and no matching disk cache entries

Instead of sending back this opaque error message, we should read the response that comes back from the server after the get

Relevant Code:
https://github.com/firebase/firebase-ios-sdk/blob/a885d5e023b04273fcce525e1ae236283845d774/FirebaseDatabase/Sources/Core/FRepo.m#L548C14-L548C14

Reproducing the issue

No response

Firebase SDK Version

10.9

Xcode Version

14.3

Installation Method

Swift Package Manager

Firebase Product(s)

Database

Targeted Platforms

All

Relevant Log Output

No response

If using Swift Package Manager, the project's Package.resolved

No response

If using CocoaPods, the project's Podfile.lock

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions