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

Prefix serialized JSON and MinPatternsMatch #68

Open
orangexception opened this issue Dec 1, 2011 · 3 comments
Open

Prefix serialized JSON and MinPatternsMatch #68

orangexception opened this issue Dec 1, 2011 · 3 comments
Labels

Comments

@orangexception
Copy link

If the CFIDE option to Prefix serialized JSON is set to "//", then the
JavaScript validation code throws "Uncaught SyntaxError: Unexpected
end of input."
The code looks like this...

.rules('add',{"minpatternsmatch"://{"letters":

Just a FYI, I've disabled the CFIDE setting for the moment.

@ghost ghost assigned aliaspooryorik Dec 3, 2011
@aliaspooryorik
Copy link
Contributor

I've been looking into this and basically there is no way around it. There is an open ticket for this as a ER on the Adobe bugtracker:
http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html#bugId=80423

From what I can determine there is no way to tell ColdFusion to ignore the securePrefix, or to get the securePrefix (as it may not be "//") so that it can be stripped.

Any ideas welcomed!

@orangexception
Copy link
Author

Ah, I gotcha. It doesn't look like it's worth the trouble.

In theory, you can snag the securePrefix using the admin API, but you'd need to know the CFIDE admin username and password (which I probably won't give you). http://www.cfexecute.com/admin-api-documentation/runtime-cfc/#method_getRuntimeProperty

@aliaspooryorik
Copy link
Contributor

Thanks for the feedback, the only way I can see of doing this is to replace the native JSON serialisation with cfJSON or similar. For now I think this might have to go on the "nice to have" list.

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

No branches or pull requests

2 participants