Request URL and Query params are incorrectly parsed inside functions emulator when the slash / is missing at the end of the URL.
firebase-tools: 6.10.0
Platform: macOS 10.14.4
import * as functions from 'firebase-functions';
export const helloWorld = functions.https.onRequest((request, response) => {
response.send({
url: request.url,
query: request.query
});
});
$ firebase emulators:startThis worked before correctly and it also works when deployed.
Thanks, will take a look on Monday, we've definitely seen some data getting dropped in the request proxy.
I second the request, and it's urgent for me. This was working fine until the last update to firebase tools.
If it's urgent @thomaswb then please downgrade to [email protected] so you can continue your work.
I'm having this issue too on WSL/Ubuntu 18.04. Doesn't happen with [email protected] so downgrading to that was fine as a workaround. While the req.query was empty, req.body seems unaffected.
Issue also confirmed here.
This may be a regression when we began dropping segments off of paths for 6.10.0.
@samtstern could you take a look, probably around removePathSegments call.
Most helpful comment
I second the request, and it's urgent for me. This was working fine until the last update to firebase tools.