Skip to content

🐛 [cloud_firestore] CollectionReferenceWeb uses implements instead of extends, makes CollectionReferencePlatform fragile #8095

@collinjackson

Description

@collinjackson
Contributor

Bug report

Describe the bug
QueryPlatform.verifyExtends does not call PlatformInterface.verifyToken if the instance being verified is an instance of CollectionReferencePlatform. Instead it could call either QueryPlatform.verifyExtends or CollectionReferencePlatform.verifyExtends depending on the type of the instance.

As a result, CollectionReferenceWeb is able to implement CollectionReferencePlatform without extending it.

Steps to reproduce

Steps to reproduce the behavior:

  1. Add a new method to CollectionReferencePlatform and release as a "minor" update.
  2. Compile error in CollectionReferenceWeb: method is not implemented.

Expected behavior

When _JsonQuery calls QueryPlatform.verifyExtends on a CollectionReferencePlatform instance, the implementation of QueryPlatform.verifyExtends should call PlatformInterface.verifyToken even if _delegate is a CollectionReferencePlatform.

Activity

changed the title [-]🐛 [cloud_firestore] QueryPlatform.verifyExtends should not skip instances of CollectionReferencePlatform[/-] [+]🐛 [cloud_firestore] CollectionReferenceWeb uses implements instead of extends, makes CollectionReferencePlatform fragile[/+] on Feb 16, 2022
darshankawar

darshankawar commented on Feb 17, 2022

@darshankawar
MichaelVerdon

MichaelVerdon commented on Feb 5, 2025

@MichaelVerdon
Contributor

Hey there, is this issue persisting on the latest version?

google-oss-bot

google-oss-bot commented on Feb 14, 2025

@google-oss-bot

Hey @collinjackson. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

google-oss-bot

google-oss-bot commented on Feb 25, 2025

@google-oss-bot

Since there haven't been any recent updates here, I am going to close this issue.

@collinjackson if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

locked and limited conversation to collaborators on Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @collinjackson@Lyokone@google-oss-bot@darshankawar@MichaelVerdon

        Issue actions

          🐛 [cloud_firestore] CollectionReferenceWeb uses implements instead of extends, makes CollectionReferencePlatform fragile · Issue #8095 · firebase/flutterfire