I'm getting an error when I try to use forward slashes inside a string:
splash:evaljs('document.querySelector("a[href=/some/link/path/]")')
If I take the splashes out it's ok, do I need to escape the forward slashes?
EDIT
I'm using it with evaljs in the DOM context the error is: "SyntaxError: Dom exception 12"
Related
I was configuring SublimeText 3, and I think I've done some pretty bad mistake.
When I try to open SublimeText I get this message:
Error trying to parse settings: unexpected character,
expected a comma or closing bracket in
packages\user\preferences.sublime-settings:8:2
I tried to open the documents, run as admin everything.
Question:
Any idea about a solution for this?
This is the code snippet at line 461 which is giving badarg error ,please help me solve this error guys.
ejabberd_odbc:escape(base64:encode(crypto:aes_cfb_128_encrypt(<<"abcdefghabcdefgh">>, <<"12345678abcdefgh">>, xml:element_to_binary(NewPacket)))),
Log:
bad argument in call to crypto:aes_cfb_128_crypt(<<"abcdefghabcdefgh">>, <<"12345678abcdefgh">>, <<">, true) in mod_offline:'-store_offline_msg/6-fun-2-'/2 line 225
One of the things I like about functional languages is that you generally have an easier time reproducing errors in a controlled environment. In your case, it seems like
base64:decode(XML)
is the call that's failing, so you should write
io:format("XML=~p~n", [XML]),
base64:decode(XML)
the first line will print out the contents of XML in Erlang syntax, and the second line will fail when you get to the bad input.
Once you see the string you're trying to decode, the problem will probably be obvious (it's not a string or it's not a base64 string). If it is a correctly-encoded base64 string, then you can post that problem as a StackOverflow question and get a more useful response.
After generating a Mapping Model for a Core Data Migration, all Value Expressions for the relationship mapping are generated correctly except 1 Value Expression, where the arguments have single quotes (') instead of double quotes ("). This results in a parsing error.
This is what I would expect:
FUNCTION($manager ,"destinationInstancesForEntityMappingNamed:sourceInstances:" , "MatchToMatch" , $source.matches)
But this is how the function expression is generated:
FUNCTION($manager ,'destinationInstancesForEntityMappingNamed:sourceInstances:' , 'MatchToMatch' , $source.matches)
A specific Value Expression is always generated with single quotes
When I change the "Source Fetch" option in the right sidebar to "Use Custom(...)" and enter the expression manually, all double quotes are turned back into single quotes.
When I change the Value Expression directly in the Mapping Editor table, I get the following error message:
Unable to parse the format string "FUNCTION($manager >,"destinationInstancesForEntityMappingNamed:sourceInstances:" , >"MatchToMatch" , $source.matches) == 1"
When I build and run a migration, I get the following error message:
2016-01-27 10:30:33.875 mapc[1431:352140] *** Terminating app due to >uncaught exception 'NSInvalidArgumentException', reason: 'Unable to parse >the format string "FUNCTION($manager >,'destinationInstancesForEntityMappingNamed:sourceInstances:' , >'MatchToMatch' , $source.matches) == 1"'
Can someone explain, what is happening and how I can come around this issue?
The problem here is that matches is a reserved keyword.
Reserved keywords:
https://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/Predicates/Articles/pSyntax.html
Check the note described here:
https://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/CoreDataVersioning/Articles/vmMappingOverview.html
You need to remove broken relationship
Add new one with empty "Value Expression"
Look here
I have a ColdFusion 9 server which serves the following error on any ColdFusion page where the URL contains the characters .. after a / e.g. http://www.example.com/..cfm or http://www.example.com/..foo/bar.cfm :
String index out of range: -1
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.AbstractStringBuilder.delete(AbstractStringBuilder.java:698)
at java.lang.StringBuffer.delete(StringBuffer.java:373)
at coldfusion.util.Utils.collapseDotDots(Utils.java:604)
at coldfusion.util.Utils.canonicalizeURI(Utils.java:558)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:39)
at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at coldfusion.CfmServlet.service(CfmServlet.java:175)
at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)
at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
at com.seefusion.Filter.doFilter(Filter.java:49)
at com.seefusion.SeeFusion.doFilter(SeeFusion.java:1500)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
at jrun.servlet.FilterChain.service(FilterChain.java:101)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
I haven't been able to reproduce this on every server I've tested, but it seems to occur on the majority. Looking at the error, it looks like it relates to part of ColdFusion rather than any ColdFusion code running on these sites. Can anyone shed any more light on this e.g. how to catch the error?
I was getting the above error and figured out that this can be handled by "Site-wide Error Handler" in ColdFusion Admin. I directed it to my 404.cfm.
Hope it helps.
http://staging.syncfusion.com/downloads/Support/DirectTrac/88838/Linq2&sql_9d7a1858.zip this is the link returns the internal server error.
Because of "Linq2&sql_9d7a1858.zip" contains & it returns the error. When tried to run it in localhost, i got the exception "A potentially dangerous Request.Path value was detected from the client (&)" in Application_Error in global.aspx, then the right action will be called and the file got download. I am using .Net 4.0 framework. I tried to put validate input false in webconfig itself and above the action, but both failed.
Can anyone give solution for this?
Thanks,
Karthik
You could exclude the & character from the list of invalid characters (<, >, *, %, :, &, \):
<httpRuntime
requestPathInvalidCharacters="<,>,*,%,:,\"
/>