diff --git a/.classpath b/.classpath
index 92c8c8468..ed310fa86 100644
--- a/.classpath
+++ b/.classpath
@@ -45,9 +45,9 @@
-
+
-
+
diff --git a/addon/YaCy.app/Contents/Info.plist b/addon/YaCy.app/Contents/Info.plist
index 5f97481a9..203b0b538 100644
--- a/addon/YaCy.app/Contents/Info.plist
+++ b/addon/YaCy.app/Contents/Info.plist
@@ -62,9 +62,9 @@
$JAVAROOT/lib/geronimo-stax-api_1.0_spec-1.0.1.jar
$JAVAROOT/lib/guava-13.0.1.jar
$JAVAROOT/lib/htmllexer.jar
- $JAVAROOT/lib/httpclient-4.3.jar
+ $JAVAROOT/lib/httpclient-4.3.1.jar
$JAVAROOT/lib/httpcore-4.3.jar
- $JAVAROOT/lib/httpmime-4.3.jar
+ $JAVAROOT/lib/httpmime-4.3.1.jar
$JAVAROOT/lib/icu4j-core.jar
$JAVAROOT/lib/iri-0.8.jar
$JAVAROOT/lib/J7Zip-modified.jar
diff --git a/build.xml b/build.xml
index 8ed311960..78a41e8b5 100644
--- a/build.xml
+++ b/build.xml
@@ -187,9 +187,9 @@
-
+
-
+
diff --git a/htroot/Blacklist_p.java b/htroot/Blacklist_p.java
index 163225971..0f1fb8f56 100644
--- a/htroot/Blacklist_p.java
+++ b/htroot/Blacklist_p.java
@@ -124,7 +124,7 @@ public class Blacklist_p {
blacklistToUse = post.get("newListName", "").trim();
if (blacklistToUse.isEmpty()) {
- prop.put("LOCATION","");
+ prop.put(serverObjects.ACTION_LOCATION,"");
return prop;
}
@@ -171,7 +171,7 @@ public class Blacklist_p {
blacklistToUse = post.get("selectedListName");
if (blacklistToUse == null || blacklistToUse.isEmpty()) {
- prop.put("LOCATION","");
+ prop.put(serverObjects.ACTION_LOCATION,"");
return prop;
}
@@ -199,7 +199,7 @@ public class Blacklist_p {
blacklistToUse = post.get("selectedListName", "").trim();
if (blacklistToUse == null || blacklistToUse.isEmpty()) {
- prop.put("LOCATION", "");
+ prop.put(serverObjects.ACTION_LOCATION, "");
return prop;
}
@@ -222,7 +222,7 @@ public class Blacklist_p {
blacklistToUse = post.get("selectedListName", "").trim();
if (blacklistToUse == null || blacklistToUse.isEmpty()) {
- prop.put("LOCATION", "");
+ prop.put(serverObjects.ACTION_LOCATION, "");
return prop;
}
@@ -246,7 +246,7 @@ public class Blacklist_p {
String temp = null;
for (final String selectedBlacklistEntry : selectedBlacklistEntries) {
if ((temp = deleteBlacklistEntry(blacklistToUse, selectedBlacklistEntry, header)) != null) {
- prop.put("LOCATION", temp);
+ prop.put(serverObjects.ACTION_LOCATION, temp);
return prop;
}
}
@@ -269,7 +269,7 @@ public class Blacklist_p {
final String temp = addBlacklistEntry(blacklistToUse, blentry, header);
if (temp != null) {
- prop.put("LOCATION", temp);
+ prop.put(serverObjects.ACTION_LOCATION, temp);
return prop;
}
@@ -295,12 +295,12 @@ public class Blacklist_p {
String temp;
for (final String selectedBlacklistEntry : selectedBlacklistEntries) {
if ((temp = addBlacklistEntry(targetBlacklist, selectedBlacklistEntry, header)) != null) {
- prop.put("LOCATION", temp);
+ prop.put(serverObjects.ACTION_LOCATION, temp);
return prop;
}
if ((temp = deleteBlacklistEntry(blacklistToUse, selectedBlacklistEntry, header)) != null) {
- prop.put("LOCATION", temp);
+ prop.put(serverObjects.ACTION_LOCATION, temp);
return prop;
}
@@ -326,7 +326,7 @@ public class Blacklist_p {
final String[] selectedBlacklistEntries = post.getAll("selectedBlacklistEntry.*");
if (selectedBlacklistEntries.length != editedBlacklistEntries.length) {
- prop.put("LOCATION", "");
+ prop.put(serverObjects.ACTION_LOCATION, "");
return prop;
}
@@ -337,12 +337,12 @@ public class Blacklist_p {
if (!selectedBlacklistEntries[i].equals(editedBlacklistEntries[i])) {
if ((temp = deleteBlacklistEntry(blacklistToUse, selectedBlacklistEntries[i], header)) != null) {
- prop.put("LOCATION", temp);
+ prop.put(serverObjects.ACTION_LOCATION, temp);
return prop;
}
if ((temp = addBlacklistEntry(blacklistToUse, editedBlacklistEntries[i], header)) != null) {
- prop.put("LOCATION", temp);
+ prop.put(serverObjects.ACTION_LOCATION, temp);
return prop;
}
}
diff --git a/htroot/BlogComments.java b/htroot/BlogComments.java
index 26406cffc..d51bb6ff0 100644
--- a/htroot/BlogComments.java
+++ b/htroot/BlogComments.java
@@ -129,7 +129,7 @@ public class BlogComments {
blogEntry.addComment(commentID);
sb.blogDB.writeBlogEntry(blogEntry);
sb.blogCommentDB.write(sb.blogCommentDB.newEntry(commentID, subject, author, ip, date, content));
- prop.putHTML("LOCATION","BlogComments.html?page=" + pagename);
+ prop.putHTML(serverObjects.ACTION_LOCATION,"BlogComments.html?page=" + pagename);
MessageBoard.entry msgEntry = sb.messageDB.newEntry(
"blogComment",
@@ -179,7 +179,7 @@ public class BlogComments {
// show blog-entry/entries
prop.put("mode", "0"); //viewing
if("blog_default".equals(pagename)) {
- prop.put("LOCATION","Blog.html");
+ prop.put(serverObjects.ACTION_LOCATION,"Blog.html");
} else {
//show 1 blog entry
prop.put("mode_pageid", page.getKey());
diff --git a/htroot/Connections_p.java b/htroot/Connections_p.java
index 13c1353c9..6de5b625a 100644
--- a/htroot/Connections_p.java
+++ b/htroot/Connections_p.java
@@ -65,7 +65,7 @@ public final class Connections_p {
if (post.containsKey("closeServerSession")) {
final String sessionName = post.get("closeServerSession", null);
sb.closeSessions(sessionName);
- prop.put("LOCATION","");
+ prop.put(serverObjects.ACTION_LOCATION,"");
return prop;
}
} else {
diff --git a/htroot/Status.java b/htroot/Status.java
index 3caa37dfc..6b16c4c91 100644
--- a/htroot/Status.java
+++ b/htroot/Status.java
@@ -81,7 +81,7 @@ public class Status
}
boolean redirect = false;
if ( post.containsKey("login") ) {
- prop.put("LOCATION", "");
+ prop.put(serverObjects.ACTION_LOCATION, "");
return prop;
} else if ( post.containsKey("pauseCrawlJob") ) {
final String jobType = post.get("jobType");
@@ -113,7 +113,7 @@ public class Status
}
if ( redirect ) {
- prop.put("LOCATION", "");
+ prop.put(serverObjects.ACTION_LOCATION, "");
return prop;
}
}
diff --git a/htroot/User.java b/htroot/User.java
index ecc898361..6d2ae091d 100644
--- a/htroot/User.java
+++ b/htroot/User.java
@@ -120,7 +120,7 @@ public class User{
prop.put("logged-in_identified-by", "1");
prop.putHTML("logged-in_username", username);
if(post.containsKey("returnto")){
- prop.put("LOCATION", post.get("returnto"));
+ prop.put(serverObjects.ACTION_LOCATION, post.get("returnto"));
}
}
}
@@ -160,7 +160,7 @@ public class User{
prop.authenticationRequired();
}
if(post.containsKey("returnto")){
- prop.put("LOCATION", post.get("returnto"));
+ prop.put(serverObjects.ACTION_LOCATION, post.get("returnto"));
}
}
// return rewrite properties
diff --git a/htroot/Wiki.java b/htroot/Wiki.java
index a3aa6b1f2..25a6ea225 100644
--- a/htroot/Wiki.java
+++ b/htroot/Wiki.java
@@ -123,8 +123,8 @@ public class Wiki {
sb.peers.newsPool.publishMyNews(sb.peers.mySeed(), NewsPool.CATEGORY_WIKI_UPDATE, map);
}
page = newEntry;
- prop.putHTML("LOCATION", "/Wiki.html?page=" + pagename);
- prop.put("LOCATION", prop.get("LOCATION"));
+ prop.putHTML(serverObjects.ACTION_LOCATION, "/Wiki.html?page=" + pagename);
+ prop.put(serverObjects.ACTION_LOCATION, prop.get(serverObjects.ACTION_LOCATION));
}
if (post != null && post.containsKey("edit")) {
diff --git a/htroot/sharedBlacklist_p.java b/htroot/sharedBlacklist_p.java
index 43c56b6b0..0bbea85fb 100644
--- a/htroot/sharedBlacklist_p.java
+++ b/htroot/sharedBlacklist_p.java
@@ -242,7 +242,7 @@ public class sharedBlacklist_p {
* turn the ampersand into & which renders the parameters
* useless (at least when using Opera 9.53, haven't tested other browsers)
*/
- prop.put("LOCATION","Blacklist_p.html?selectedListName=" + CharacterCoding.unicode2html(selectedBlacklistName, true) + "&selectList=select");
+ prop.put(serverObjects.ACTION_LOCATION,"Blacklist_p.html?selectedListName=" + CharacterCoding.unicode2html(selectedBlacklistName, true) + "&selectList=select");
return prop;
}
diff --git a/lib/dependencies.txt b/lib/dependencies.txt
index 25ea9a53d..656e145d4 100644
--- a/lib/dependencies.txt
+++ b/lib/dependencies.txt
@@ -22,7 +22,7 @@ commons-io-2.1.jar
commons-lang-2.6.jar
geronimo-stax-api_1.0_spec-1.0.1.jar
guava-r05.jar
-httpclient-4.3.jar
+httpclient-4.3.1.jar
httpcore-4.3.jar
jcl-over-slf4j-1.6.1.jar
log4j-over-slf4j-1.6.1.jar
diff --git a/lib/httpclient-4.3.License b/lib/httpclient-4.3.1.License
similarity index 100%
rename from lib/httpclient-4.3.License
rename to lib/httpclient-4.3.1.License
diff --git a/lib/httpclient-4.3.jar b/lib/httpclient-4.3.1.jar
similarity index 84%
rename from lib/httpclient-4.3.jar
rename to lib/httpclient-4.3.1.jar
index 5c446f04d..9b47364a5 100644
Binary files a/lib/httpclient-4.3.jar and b/lib/httpclient-4.3.1.jar differ
diff --git a/lib/httpmime-4.3.License b/lib/httpmime-4.3.1.License
similarity index 100%
rename from lib/httpmime-4.3.License
rename to lib/httpmime-4.3.1.License
diff --git a/lib/httpmime-4.3.jar b/lib/httpmime-4.3.1.jar
similarity index 80%
rename from lib/httpmime-4.3.jar
rename to lib/httpmime-4.3.1.jar
index 55dd8aecf..f6ee60e26 100644
Binary files a/lib/httpmime-4.3.jar and b/lib/httpmime-4.3.1.jar differ
diff --git a/nbproject/project.xml b/nbproject/project.xml
index ca5a5d3bb..40724c29e 100644
--- a/nbproject/project.xml
+++ b/nbproject/project.xml
@@ -73,7 +73,7 @@
source
htroot
- lib/activation.jar;lib/apache-mime4j-0.6.jar;lib/arq-2.8.7.jar;lib/bcmail-jdk15-145.jar;lib/bcprov-jdk15-145.jar;lib/commons-codec-1.7.jar;lib/commons-compress-1.4.1.jar;lib/commons-fileupload-1.2.2.jar;lib/commons-httpclient-3.1.jar;lib/commons-io-2.1.jar;lib/commons-jxpath-1.3.jar;lib/commons-lang-2.6.jar;lib/commons-logging-1.1.3.jar;lib/fontbox-1.7.1.jar;lib/geronimo-stax-api_1.0_spec-1.0.1.jar;lib/guava-13.0.1.jar;lib/htmllexer.jar;lib/httpclient-4.3.jar;lib/httpcore-4.3.jar;lib/httpmime-4.3.jar;lib/icu4j-core.jar;lib/iri-0.8.jar;lib/J7Zip-modified.jar;lib/jakarta-oro-2.0.8.jar;lib/jaudiotagger-2.0.4-20111207.115108-15.jar;lib/jcifs-1.3.15.jar;lib/jcl-over-slf4j-1.7.2.jar;lib/jempbox-1.7.1.jar;lib/jena-2.6.4.jar;lib/jsch-0.1.42.jar;lib/json-simple-1.1.jar;lib/jsoup-1.6.3.jar;lib/log4j-1.2.17.jar;lib/log4j-over-slf4j-1.7.2.jar;lib/lucene-analyzers-common-4.2.1.jar;lib/lucene-analyzers-phonetic-4.2.1.jar;lib/lucene-core-4.2.1.jar;lib/lucene-misc-4.2.1.jar;lib/lucene-spatial-4.2.1.jar;lib/metadata-extractor-2.4.0-beta-1.jar;lib/mysql-connector-java-5.1.12-bin.jar;lib/pdfbox-1.7.1.jar;lib/poi-3.6-20091214.jar;lib/poi-scratchpad-3.6-20091214.jar;lib/sax-2.0.1.jar;lib/servlet-api-2.5-20081211.jar;lib/slf4j-api-1.7.2.jar;lib/slf4j-jdk14-1.7.2.jar;lib/solr-core-4.2.1.jar;lib/solr-solrj-4.2.1.jar;lib/spatial4j-0.3.jar;lib/webcat-0.1-swf.jar;lib/wstx-asl-3.2.7.jar;lib/xercesImpl.jar;lib/xml-apis.jar;lib/zookeeper-3.4.5.jar
+ lib/activation.jar;lib/apache-mime4j-0.6.jar;lib/arq-2.8.7.jar;lib/bcmail-jdk15-145.jar;lib/bcprov-jdk15-145.jar;lib/commons-codec-1.7.jar;lib/commons-compress-1.4.1.jar;lib/commons-fileupload-1.2.2.jar;lib/commons-httpclient-3.1.jar;lib/commons-io-2.1.jar;lib/commons-jxpath-1.3.jar;lib/commons-lang-2.6.jar;lib/commons-logging-1.1.3.jar;lib/fontbox-1.7.1.jar;lib/geronimo-stax-api_1.0_spec-1.0.1.jar;lib/guava-13.0.1.jar;lib/htmllexer.jar;lib/httpclient-4.3.1.jar;lib/httpcore-4.3.jar;lib/httpmime-4.3.1.jar;lib/icu4j-core.jar;lib/iri-0.8.jar;lib/J7Zip-modified.jar;lib/jakarta-oro-2.0.8.jar;lib/jaudiotagger-2.0.4-20111207.115108-15.jar;lib/jcifs-1.3.15.jar;lib/jcl-over-slf4j-1.7.2.jar;lib/jempbox-1.7.1.jar;lib/jena-2.6.4.jar;lib/jsch-0.1.42.jar;lib/json-simple-1.1.jar;lib/jsoup-1.6.3.jar;lib/log4j-1.2.17.jar;lib/log4j-over-slf4j-1.7.2.jar;lib/lucene-analyzers-common-4.2.1.jar;lib/lucene-analyzers-phonetic-4.2.1.jar;lib/lucene-core-4.2.1.jar;lib/lucene-misc-4.2.1.jar;lib/lucene-spatial-4.2.1.jar;lib/metadata-extractor-2.4.0-beta-1.jar;lib/mysql-connector-java-5.1.12-bin.jar;lib/pdfbox-1.7.1.jar;lib/poi-3.6-20091214.jar;lib/poi-scratchpad-3.6-20091214.jar;lib/sax-2.0.1.jar;lib/servlet-api-2.5-20081211.jar;lib/slf4j-api-1.7.2.jar;lib/slf4j-jdk14-1.7.2.jar;lib/solr-core-4.2.1.jar;lib/solr-solrj-4.2.1.jar;lib/spatial4j-0.3.jar;lib/webcat-0.1-swf.jar;lib/wstx-asl-3.2.7.jar;lib/xercesImpl.jar;lib/xml-apis.jar;lib/zookeeper-3.4.5.jar
1.6
diff --git a/source/net/yacy/server/http/HTTPDProxyHandler.java b/source/net/yacy/server/http/HTTPDProxyHandler.java
index 7efe755ca..b1166527d 100644
--- a/source/net/yacy/server/http/HTTPDProxyHandler.java
+++ b/source/net/yacy/server/http/HTTPDProxyHandler.java
@@ -88,6 +88,7 @@ import net.yacy.document.parser.html.ContentTransformer;
import net.yacy.document.parser.html.Transformer;
import net.yacy.kelondro.io.ByteCountOutputStream;
import net.yacy.kelondro.util.FileUtils;
+import net.yacy.peers.operation.yacyBuildProperties;
import net.yacy.repository.Blacklist.BlacklistType;
import net.yacy.search.Switchboard;
import net.yacy.search.SwitchboardConstants;
@@ -1208,7 +1209,7 @@ public final class HTTPDProxyHandler {
viaValue
.append(httpVer).append(" ")
.append(myAddress).append(" ")
- .append("(YaCy ").append(sb.getConfig("vString", "0.0")).append(")");
+ .append("(YaCy ").append(yacyBuildProperties.getVersion()).append(")");
// storing header back
header.put(HeaderFramework.VIA, viaValue.toString());
@@ -1572,7 +1573,7 @@ public final class HTTPDProxyHandler {
userAgentStr
.append(browserUserAgent.substring(0,pos))
.append("; YaCy ")
- .append(sb.getConfig("vString","0.1"))
+ .append(yacyBuildProperties.getVersion())
.append("; yacy.net")
.append(browserUserAgent.substring(pos));
} else {
@@ -1680,4 +1681,4 @@ public final class HTTPDProxyHandler {
http://xlists.aza.org/moderator/cookietest/cookietest1.php
http://vancouver-webpages.com/proxy/cache-test.html
- */
+ */