I've not any idea of what's going on on my CI server but maybe someone can help.
I've configured a maven project with a jacoco agent weaved surefire test:The working agent line (that is correctly handled on my laptop) includes a path:
The issue is when I launch these tests on my CI server (Fedora 19, Oracle Java 1.7, surefire 2.17, Tomcat, Maven 3.2.1 provided by Jenkins), the same line is not well interpreted by surefire or failsafe, it becomes:
Error: Could not find or load main class "-javaagent:.var.lib.jenkins..m2.repository.org.jacoco.org.jacoco.agent.0.7.0.201403182114.org.jacoco.agent-0.7.0.201403182114-runtime.jar=destfile=.var.lib.jenkins.jobs.Osgiliath enterprise.workspace.target.jacoco-it.exec,append=true,includes=net.osgiliath.messaging.*,excludes=*.itests.*:*.mock.*:*.model.*:*.coverage.*"
Notice the dots instead of slashes in the argLine path.
Do someone have an idea of where can this issue come from? It's really annoying as I can't use my CI server for this kind of project.
Thank you in advance
$url = get_url(CONFIRM,base64_encode($_POST['status']."|".$agent_id));ta_send_verification($_POST['email'],$_POST['agent_name'],$url);
I'm sending the profile confirmation mail to user profile. That mail contains activation url link. When I click that link I got this url
Second url is the correct one and it works fine too. But, In my activation link I always get the url with this
== equal to symbol. I don't know how can I remove that
== equal to symbol in my activation url link?
So the connect guys removed my urlencoder and json parser. Absolutely nothing wrong with those middlewares and I'd like to continue using them to send emails and retrieve form input data.
Note: I am not dealing with any type or form of file uploading. Also, I tried going over to the link the error message provides when I try and use the express/connect.urlencoded() and express/connect.json() and I ended up wasting two hours clicking from github to github. I don't want an over bloated file uploader. Just my simple form parser, without the file upload. Just doesn't make sense to remove the two working middleware because of one faulty middleware.
String address = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=";String query = req.getParameter("query");String charset = "UTF-8"; URL url = new URL(address + URLEncoder.encode(query, charset));`
This is code i am trying to execute in Eclipse Kepler , there is no syntax error but on runnung it shows error 500 INTERNAL SERVER ERROR, what does this mean, is there any other way of using URLencoder or how to deal with this error. Please suggest.. Thank you in advance.
I am a bit out of my comfort zone here, so I'm not even sure I'm aproaching the problem appropriately. Anyhow, here goes:
So I have a problem where I shall hash some info with sha1 that will work as that info's id.
when a client wants to signal what current info is being used, it sends a percent-encoded sha1-string.
So one example is, my server hashes some info and gets a hex representation like so:
44 c1 b1 0d 6a de ce 01 09 fd 27 bc 81 7f 0e 90 e3 b7 93 08
and the client sends me
Removing the % we get
D c1 b1 0dj de ce 01 09 fd 27 bc 81 7f 0e 90 e3 b7 93 08
which matches my hash except for the beginning D and the j after the 0d, but replacing those with their ascii hex no, we have identical hash.
So, as I have read and understood the urlencoding, the standard would allow a client to send the D as either D or %44? So different clients would be able to send different representations off the same hash, and I will not be able to just compare them for equality?
I would prefer to be able to compare the urlencoded strings as they are when they are sent, but one way to do it would be to decode them, removing all '%' and get the ascii hex value for whatever mismatch I get, much like the D and the j in my above example.
This all seems to be a very annoying way to do things, am I missing something, please tell me I am? :)
I am doing this in node.js but I suppose the solution would be language/platform agnostic.