bypass icon indicating copy to clipboard operation
bypass copied to clipboard

bypass does not support paths containing ":"

Open zoten opened this issue 3 years ago • 2 comments

Hi everyone, and thanks for the great work! I'm having some troubles with bypass, since I have to work with paths in the form

/a/strange/path/dotted:strange.string.that.may:happen

The problem is that both the expectation definition (hackable by using :any) and the call handling analyze the path directly using Plug's build_path_match function here, that finds the :strange.string.that.may and complain thinking it is a match's definition.

I opened a branch showing the issue with a test case here ( test )

Has anyone got any workaround for this particular case? I'd gladly try to provide a patch, if you have some indication if you already have an idea of how it could work.

Thank you!

zoten avatar Feb 25 '22 09:02 zoten

I'm running into the same issue when upgrading Bypass from 1.0.0 to 2.1.0. This wasn't a problem in older versions of Bypass.

notslang avatar Feb 03 '23 22:02 notslang

same issue here. Trying to tests Google Business Api, which has lots of ":requestLaunch" things in api endpoints, but looks like after this pull merged (https://github.com/PSPDFKit-labs/bypass/pull/93) it is no longer possible.

guys you should either put some flag so that people can skip build_path_match or find out other way. it is no sense adding features which break others' .

artemk avatar Feb 07 '23 08:02 artemk