Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON::Syck does not properly escape/unescape JSON strings [rt.cpan.org #42390] #30

Open
toddr opened this issue May 11, 2017 · 0 comments

Comments

@toddr
Copy link
Member

toddr commented May 11, 2017

Migrated from rt.cpan.org#42390 (status was 'open')

Requestors:

Attachments:

From mmims@cpan.org on 2009-01-13 22:23:57:

JSON::Syck fails to decode JSON strings with escaped characters
correctly. For example:

JSON::Syck::load('"http:\/\/example.com\/"') should decode to
'http://example.com/'

I patched t/json-basic.t to produce failing tests.

From avar@cpan.org on 2010-05-20 11:17:40:

On Tue Jan 13 17:23:57 2009, MMIMS wrote:
> JSON::Syck fails to decode JSON strings with escaped characters
> correctly. For example:
> 
> JSON::Syck::load('"http:\/\/example.com\/"') should decode to
> 'http://example.com/'
> 
> I patched t/json-basic.t to produce failing tests.

Can you make these tests TODO so that they don't fail, unless you have a 
patch to fix them that is.

Also, see this boring form letter I'm pasting around:

(This is a form-reply that isn't specific to your particular report)

YAML::Syck has just acquired one new maintainer (me), it still doesn't
have anyone that *cares* about it. But I'm willing to help solve your
report & release a new version with the fix if it's easy for me.

It now has a Git repository at:

    http://github.com/avar/YAML-Syck

If your report is a patch that fixes a problem, great. Please remake
the patch against Git by forking that repo and sending me a pull
request on GitHub (or an update to this bug if you prefer
git-format-patch(1) or some other repo provider..). Make sure to
include a test for what you fixed.

If your report is some code that fails (and you have a testcase for
it) a patch against the test suite to demonstrate that failure would
be very useful. It's OK if the test crashes and burns, see
Test::More's docs for how to make TODO tests that fail now, but
shouldn't. Even if it segfaults perl C<system $^X => qw/ -Mblib
-MYAML::Syck .../> or something like that and checking the return
value will do.

From toddr@cpan.org on 2010-07-19 20:35:57:

TODO tests pushed to github in commit a25d69e72828c1dcc80d8f07190cb1b4d1068c2f

From toddr@cpan.org on 2010-09-23 21:39:29:

On Tue Jan 13 17:23:57 2009, MMIMS wrote:
> JSON::Syck fails to decode JSON strings with escaped characters
> correctly. For example:
> 
> JSON::Syck::load('"http:\/\/example.com\/"') should decode to
> 'http://example.com/'
> 
> I patched t/json-basic.t to produce failing tests.

Greetings, discussing with the other Syck developers, we have a question for you. JSON::XS is 5 
times faster than this module. Is there any reason you prefer JSON::Syck to JSON::XS?

From marc@questright.com on 2010-09-24 02:36:14:

* Todd Rinaldo via RT <bug-YAML-Syck@rt.cpan.org> [100923 14:39]:
> <URL: https://rt.cpan.org/Ticket/Display.html?id=42390 >
> 
> On Tue Jan 13 17:23:57 2009, MMIMS wrote:
> > JSON::Syck fails to decode JSON strings with escaped characters
> > correctly. For example:
> > 
> > JSON::Syck::load('"http:\/\/example.com\/"') should decode to
> > 'http://example.com/'
> > 
> > I patched t/json-basic.t to produce failing tests.
> 
> Greetings, discussing with the other Syck developers, we have a question for you. JSON::XS is 5 
> times faster than this module. Is there any reason you prefer JSON::Syck to JSON::XS?

No. I prefer JSON::XS. I use JSON::Any, however, in my Net::Twitter
module in oder to offer users to select their own preference.  If I'm
not mistaken, JSON::Syck has been demoted to an optional in JSON::Any if
not remove entirely.

	-Marc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant