hyperfiddle-2020 icon indicating copy to clipboard operation
hyperfiddle-2020 copied to clipboard

ednish needs escape character

Open dustingetz opened this issue 7 years ago • 7 comments

  • http://tank.hyperfiddle.site/:seattle!neighborhood-edit/~entity('$',(:neighborhood!name,'Admiral,(West,Seattle)')) – broken

dustingetz avatar May 04 '18 22:05 dustingetz

Seems like we need an escape char in ednish?

khardenstine avatar May 30 '18 19:05 khardenstine

It should just fail fiddle/ident validation because this is always an accident. when the day comes that someone actually wants a ! in their keyword we can talk to them about it

dustingetz avatar May 30 '18 19:05 dustingetz

Sure in fiddle/ident that seems unlikely, but all datomic args have this problem too:

image

Magn/olia! encodes to Magn!olia! in the url, and then decodes back to Magn/olia/

khardenstine avatar May 30 '18 20:05 khardenstine

@dustingetz, if you pick an escape character, I can punch the rest through.

khardenstine avatar Apr 29 '19 15:04 khardenstine

Instead of escaping can we fallback to percent encodings?

dustingetz avatar Apr 29 '19 15:04 dustingetz

That would probably cause more harm than good.

URIs that differ in the replacement of an unreserved character with its corresponding percent-encoded US-ASCII octet are equivalent: they identify the same resource. However, URI comparison implementations do not always perform normalization prior to comparison (see Section 6). For consistency, percent-encoded octets in the ranges of ALPHA (%41-%5A and %61-%7A), DIGIT (%30-%39), hyphen (%2D), period (%2E), underscore (%5F), or tilde (%7E) should not be created by URI producers and, when found in a URI, should be decoded to their corresponding unreserved characters by URI normalizers.

https://tools.ietf.org/html/rfc3986#section-2.3

khardenstine avatar Apr 29 '19 16:04 khardenstine

I see, I think & would work

dustingetz avatar Apr 29 '19 16:04 dustingetz