Bug New Firebase Realtime Database component splits URLs at //

Hi Kodular team,

I found a bug in the new Firebase Realtime Database component (the one that uses “google-services.json”).

Issue

When a value containing “https://” is stored in Firebase and retrieved using the Get Value block, the returned value is splitted at “https”.

Example

Stored value:

Tag: “ABC”

Value:

https://www.dropbox.com/scl/fi/tbdvh4zxhdcfsfyw042yg/A_one-2.apk?rlkey=0abw8mgoyvkunbpq0kxvot1fk&st=wn6w9yz0&dl=1

Returned by Kodular:

https

What I tested

  • Normal text paragraphs are retrieved correctly.
  • Other strings work correctly.
  • The issue occurs with URLs.
  • The string appears to be cut at “//” after “https:”.
  • I am using the new Firebase Realtime Database component with “google-services.json”.

Steps to reproduce

  1. Create a Firebase Realtime Database project.
  2. Connect it to Kodular using “google-services.json”.
  3. Store the following value:

https://www.dropbox.com/test.apk?dl=1

  1. Retrieve it using the Get Value block.
  2. The returned value is only:

https

Expected result

The complete URL should be returned exactly as it is stored.

Actual result

Only “https” is returned.

This appears to be a parsing bug in the new Firebase Realtime Database component.

Thank you.

Its splitting urls at every /

Set the value inside quotes, remove these extra quotes when value returned.

2 Likes

I fully agree with you Joe,
I think URLEncode/Decode could also be used.

1 Like

Still same

Show us how you’re handling the blocks

I stored a tag Abc Value “https://example.com/link” and called the tag as Get value for tag"Abc" or if not Found “not found” it returns only https

How about

Huh?

Try single quotes around your url

1 Like

Hold on everyone!

I just ran a test

ProjectPath: “test”
Tag: “link”
Value: “https://www.community.kodular.io

immagine

Then I did a get on “link” and I received…

@Mr_Fida_Plays is there something you’re not telling us correctly? :grin:

With your url


Edit:
Here is what is happening:
immagine
On Firebase, you are saving the string as link1, while the string Kodular expects is link2.


At this point, I’m not sure whether to consider it a bug.
The component was designed to read data written by itself, so a different string format can understandably break its parser.
We can definitely report this behavior to @Diego.

This issue is as old as the hills…:wink:

Yep, this is the current behaviour in the old FirebaseDB component as well

3 Likes