Commit Graph

12838 Commits

Author SHA1 Message Date
reger
d3d2df7087 Translator_p handle lang "browser" like "default" 2016-08-23 03:37:32 +02:00
reger
33bf35d90f missing file for prev commint "Introduction of additional language setting browser" 2016-08-23 00:13:20 +02:00
reger
16e8ed3f01 Introduce additional language setting "browser/Browser Language" for UI internationalization.
If language is set to "browser" the client/user browser language is used to choose from
available translation.
simply: one users browser speaks English -> YaCy responds in English, other users browser speaks French -> YaCy responds in French.

! To make a translation/language available you have to activate the language once ! 
(or manually use the utility class TranslateAll)
In ConfigBasic.html availabel translations are marked green on setting language=Browser
The client language is determined by http header Accept-Language (checked in DefaultServlet)
2016-08-23 00:04:24 +02:00
reger
3b47a07dd1 change unused servletProperties entry CONNECTION_PROP_CLIENT_REQUEST_HEADER to
use directly HttpServletRequest. This is used to get the http protocol version
in HTTPDProxyHandler.fulfillRequestFromWeb() for error response to client.
- adjust YaCyProxyServlet and UrlProxyServlet accordingly
- use more http_version constants in headerframework and httpdeamon
- equalize servlets (3) use of HeaderFramework.CONNECTION_PROP_HOST to HeaderFramework.HOST
2016-08-21 19:34:44 +02:00
reger
e506479063 skip overhead to resolve "<unknown>" ip
and protect against NPE in yacy/message servlet
2016-08-21 01:22:25 +02:00
reger
036c1dc6ef fix CookieTest_p formatting (output of <br> as text),
change to dataoutput only by servlet, leave formatting to html.
+ removed link to obsolete env/grafics gif
2016-08-20 22:23:47 +02:00
Michael Peter Christen
bf6709d196 fixed missing browser activation in linux 2016-08-19 19:24:15 +02:00
Michael Peter Christen
d8504418b6 enhanced browser-caching of static content 2016-08-19 19:23:51 +02:00
Michael Peter Christen
ed8bc5f79d fix for bug in network page: the network table pages also loaded the
network images, even if they had not been showed.
2016-08-19 17:18:08 +02:00
Michael Peter Christen
079112358c Merge branch 'master' of https://github.com/yacy/yacy_search_server.git 2016-08-19 15:31:09 +02:00
Michael Peter Christen
efeb592661 don't do solr optimization, this create high IO load. We should leave
this task to solr to do that on it's own instead of forcing it.
2016-08-19 15:30:53 +02:00
Burkhard
28a608c3c4 Merge pull request #67 from luccioman/mixedcontent
Fixed HTTPS  mixed content warnings and errors
2016-08-19 02:30:09 +02:00
luccioman
f84e584d74 ConfigPortal : fixed mixed-content security issue with https
We now use the same protocol as the one used to display the config page
: so when using https, the content is not blocked by the browser
detecting mixed-content.
2016-08-17 17:05:40 +02:00
luccioman
adb5c1798b Merge branch 'mixedcontent' of
https://github.com/luccioman/yacy_search_server.git into mixedcontent

Conflicts:
	source/net/yacy/yacy.java
2016-08-17 16:17:11 +02:00
luccioman
4743ade66a Search comparison : prefer https URLs
Also disabled currently not working URLs.
2016-08-17 16:13:46 +02:00
luccioman
46b8836548 Copy image resources contained in donation iframe.
Handle eventual images loading errors.
2016-08-17 15:19:15 +02:00
luccioman
a44bcd322e Copy image resources contained in donation iframe.
Also refactored the related code :
- extracted it in a method
- catch Exception and log it, rather than Throwable which is bad
practice
2016-08-17 15:15:31 +02:00
reger
91ab8a526a add error msg to api/share.html
and skip display of url on nothing uploaded
2016-08-17 03:07:26 +02:00
reger
5bbedad091 use config for path to locales in Translator servlet 2016-08-15 04:13:06 +02:00
reger
22ebca0295 upd to Jetty 9.2.18 2016-08-14 21:25:48 +02:00
reger
4c7a77662a eleminate dependency on file-extension in storeDocument but use supported mime-type
to also support handling of urls w/o corresponding file-extension.
For this refactor use of document.getParserObject() to alway return a Parser (for clean logic)
and define/move the scraperObject as local var of AbstractParser.
Adjust related calls to getParserObject (where actually a scraperObject is wanted).
Addionally skip appending url token to parsed text for dht metadata entries 
(by default returned as result by rwi index).
2016-08-14 03:53:16 +02:00
reger
ebde21079a refactor xlsParser to include Excel file attribute (like author) in parser result doc.
Similar to ppt and doc parser, completing a TODO in xlsParser.
2016-08-13 23:46:36 +02:00
Burkhard
dd9ee1d34c Merge pull request #66 from luccioman/opensearch
Opensearch : fix for default ports and naming consistency
2016-08-13 21:46:00 +02:00
luccioman
c9868209e4 Fixed opensearch ShortName consistency with link in index.html
Fix for mantis 679 (http://mantis.tokeek.de/view.php?id=679)
2016-08-12 12:36:44 +02:00
luccioman
744c9a2615 Opensearch desc : handle https protocol url with default port (443)
This completes modifications made for mantis 669
(http://mantis.tokeek.de/view.php?id=669)
2016-08-12 12:18:26 +02:00
luccioman
b9c28893ee Merged master to 'heroku' branch. 2016-08-10 11:03:01 +02:00
luccioman
db1b0d1fc6 Fixed description small typing errors. 2016-08-10 11:02:04 +02:00
luccioman
9bb3f2f629 Merged master into 'docker' branch. 2016-08-10 08:15:41 +02:00
luccioman
c61f65fd5f Merge remote-tracking branch 'origin/master' into docker 2016-08-10 08:14:49 +02:00
Michael Peter Christen
103a8348b3 fix for NPE and small performance enhancement 2016-08-10 06:48:08 +02:00
Andreas
1f48d65b66 Merge pull request #7 from yacy/master
Get my fork synced #7
2016-08-09 21:27:57 +02:00
reger
2910fe35c1 add missing scheduler calc of next exec_date (call of calculateAPIScheduler)
- after last_exec_date is altered, next_exec_date should be recalculated
- makes the recalculation of next_exec in advance (without api call surely made) in Switchbard.schedulerJob() obsolete
Slightly modify next_exec calc. on missed event to now+schedule_time (from fix 10min)
2016-08-09 03:03:04 +02:00
reger
70d47ae38a keep scheduler selection by repeat entry from 07311020d4
to allow exec schedule on actual exec event.
Iterate on exec date (of advantage after interruption/shutdown) to schedule
older or missed events first.
2016-08-08 02:19:48 +02:00
reger
7c3f932e5d revert due to conflict with double count recording by schedulter / servlet by the commit under normal operation (no shutdown) 2016-08-08 01:57:31 +02:00
reger
07311020d4 postpone apicall exec date init until actual call
fix for http://mantis.tokeek.de/view.php?id=677
The difference is on scheduling a large number of rss feeds and loading 
is not finished before shutdown of YaCy. The change makes sure not already
loaded RSS will be loaded by the scheduler on next startup.
2016-08-07 05:08:55 +02:00
luccioman
75254ac9b6 Fixed syntax errors. 2016-08-05 12:16:11 +02:00
luccioman
403193a24c Merged changes from master. 2016-08-05 11:59:49 +02:00
luccioman
16dfc49bfd Enabled HTTPS as default, and added HTPS related documentation 2016-08-05 11:57:38 +02:00
reger
5e335b32da fix Blacklist.contains() matching path pattern to string
similar to 5e9e871192
+ add proof testcase
2016-08-04 01:12:49 +02:00
reger
5e9e871192 fix Blacklist.remove by using pattern.toString to find pattern to remove,
parameter String path did never equal Pattern.
+ delete unused removeAll, as it does not persist changes after restart
2016-08-03 02:13:26 +02:00
reger
1843ea7e69 on Blacklist.add pattern to source file also update internal entry maps
as in Blacklist.add(blacklistType) to make entry effective w/o restart
fix for http://mantis.tokeek.de/view.php?id=676
2016-08-02 02:41:03 +02:00
reger
bf6ce33da3 Correct use of _htDocsPath config in YaCyDefaultServlet to use servlet config variable
+ add some javadoc and remove a not useful static declaration
2016-07-31 23:16:24 +02:00
luccioman
6811158e1a Expose HTTPS default port on docker images 2016-07-31 19:24:52 +02:00
luccioman
480027ec98 Merge remote-tracking branch 'origin/master' into heroku_experiments 2016-07-28 02:29:40 +02:00
luc
a6bf44f4f7 Simplified Heroku variables configuration
- Having well defined variables is more readable than configuring
everything in MAVEN_CUSTOM_OPTS
- Do not provide a default admin password value : people deploying on
Heroku for testing or demonstration purpose would likely forget to
customize this password, which would be a security flaw
- reduce Heroku specific impacts on existing pom.xml
2016-07-28 02:04:51 +02:00
reger
fcad2d0744 add uses of config constant INDEX_RECEIVE_ALLOW 2016-07-27 02:16:20 +02:00
reger
07fbb737df upd to commons-compress-1.12 2016-07-23 20:34:47 +02:00
reger
226f81cfcf declare poison pill url MultiProtocolURL() as protected to make sure not
used from outside.
After double checking use of poison url revert path init from commit
f8632ad292
2016-07-23 20:03:13 +02:00
reger
f8632ad292 prevent string index out of bounds MultiProtocolURL.getPaths
as path maybe a empty string
+ init path to "" also in init for poison url (to guarantee success for 
all existing uses of path w/o check for null)
2016-07-23 19:18:23 +02:00
reger
35a7d57260 update lucenematchversion to current (5.2.0 -> 5.5.0)
there should be no need for reindex by the update
2016-07-23 18:36:43 +02:00