100 Commits
Author SHA1 Message Date
luccioman 6b45cd5799 New optional crawl filter on the URL a doc must match to crawl its links
For finer control over which parsed documents can trigger an addition of
their links to the crawl stack, complementary to the existing crawl
depth parameter.
2019-05-01 08:54:19 +02:00
luccioman 8d3e029247 Upgraded Lucene/Solr dependencies from 6.6.5 to 6.6.6 2019-04-27 21:27:11 +02:00
luccioman 385c6a079d Upgraded Jetty dependencies from 9.4.15.v20190215 to 9.4.17.v20190418 2019-04-24 09:50:56 +02:00
luccioman f8b94f9891 Upgraded PDFBox dependency from 2.0.14 to 2.0.15 2019-04-19 10:33:58 +02:00
luccioman d16bc99835 Added "Show Metadata" links to the ViewFile.html links mode
To conveniently follow parsed links in the file viewer
2019-04-18 15:31:38 +02:00
luccioman 8c068a9c99 Better HTML text semantics for technical descriptions 2019-04-18 14:23:00 +02:00
luccioman 5a3d5cb92c Upgraded Solr config files with the ones provided by Solr release
Fixes #292
2019-04-16 10:25:48 +02:00
luccioman a5771b1f14 Made SNI extension user configurable without the need for server restart
TLS Server Name Indication (SNI) extension activation can now be
configured with the new Settings_p.html?page=httpClient administration
page.
SNI extension is also now enabled by default, as in 2019 the
unrecognized_name(112) alert is more properly handled by major web
servers TLS implementations, following the RFC 6066 standard.

Related YaCy issues : #153 #189 and #272
JDK 1.7 bug :
https://bugs.java.com/bugdatabase/view_bug.do?bug_id=7127374
Apache httpd issue :
https://bz.apache.org/bugzilla/show_bug.cgi?id=56241
RFC 6066 : https://tools.ietf.org/html/rfc6066#section-3
2019-04-14 15:41:13 +02:00
luccioman e90405b6f0 Support parsing audio URLs without file extension
Added also a Junit for the audio tag parser
2019-04-09 11:40:21 +02:00
luccioman 42c8a251c8 Render a relevant message and status on blocked search requests
When unauthenticated (or with insufficient rights) client is blocked
either because blacklisted or excessive request rate, render an error
message and a relevant HTTP status for API requests, instead of an empty
response that appears broken.
2019-04-05 11:06:09 +02:00
luccioman a8316c79da Allow JS resorting of search results by unauthenticated users
Acces rate limitations to this search mode by unauthenticated users are
set low by default to prevent unwanted server overload but can be
customized through the SearchAccessRate_p.html configuration page

Fixes #291
2019-04-03 14:21:53 +02:00
luccioman 0ab2b49c31 Made /yacysearch access rate limitations user configurable
With a new admin page at /SearchAccessRate_p.html in menu Network Access
> Local Search > Access Rate Limitations
2019-04-02 17:42:50 +02:00
luccioman 5b7e41202a Added Solr GSA writer support for responses from remote instances 2019-03-27 18:23:41 +01:00
luccioman fc83d35f3f Upgraded PDFBox dependency from 2.0.11 to 2.0.14 2019-03-22 09:52:57 +01:00
luccioman 4d8a948455 Properly close PDF snapshots loaded with pdfbox library 2019-03-22 09:50:30 +01:00
luccioman 74e6d6e984 Added Solr GrepHTML writer support for responses from remote instances 2019-03-20 18:24:16 +01:00
luccioman 5e6501974d Added Solr snapshots writer support for responses from remote instances 2019-03-19 11:25:44 +01:00
luccioman 4c1428bd63 Upgraded Jetty dependencies from 9.4.14.v20181114 to 9.4.15.v20190215 2019-03-18 14:13:10 +01:00
luccioman 656892a8eb Merge pull request #283 from tangdou1/patch-1
Update zh.lng
2019-03-16 10:19:47 +01:00
luccioman 630fa0015a P2P/Privacy switch buttons support with JavaScript disabled 2019-03-15 17:46:23 +01:00
luccioman 74fd2f30fa Support for search result switch buttons with JavaScript disabled 2019-03-09 10:21:48 +01:00
luccioman ebc583cdb2 Properly render the href attribute of the active page button 2019-03-09 08:28:39 +01:00
luccioman 093ea9586c Properly fill current page number to new server side pagination template
When current page is automatically reset to zero because of a new search
request.
2019-03-05 08:18:18 +01:00
luccioman 384c37102c Improve accuracy of total results count on latest pages in Stealth mode
Previously, when mixing results from local RWI and local Solr (Stealth
mode), total local Solr count could be ignored on last result pages,
when the page offset was higher than local Solr count but lower than
total RWI count.
2019-03-04 10:05:47 +01:00
luccioman 6e9d5f60ad Server side initial pagination links rendering
For better support of the search page usage with JavaScript disabled.
Reduces also the number of initial refreshes of the paginations links.

When JavaScript is enabled, pagination links are still regularly
refreshed until all the search feeds are terminated on server side.
2019-02-28 22:56:49 +01:00
luccioman 4b9cc4746d Upgraded Bootstrap dependency from v3.3.7 to v3.4.1
Non regressions tested on the following platforms :
Linux Debian Stretch :
 - Firefox 60.5.1esr
 - Chromium 72.0.3626.96

Windows 10 :
 - Firefox 65.0.1
 - Chrome 72.0.3626.109
 - Edge 25.10586.672.0
 - IE 11.1540.10586.0

Mac OS  :
 - Safari 11.0
2019-02-21 10:12:39 +01:00
luccioman 0a809deb86 Minor technical fixes on latest Chinese translation update 2019-02-13 22:18:59 +01:00
luccioman 55aa671879 Merge pull request #278 from tangdou1/master
Update the chinese translation
2019-02-13 22:13:58 +01:00
luccioman 6d3def5347 Fixed Alpine flavour Docker image build on already existing /opt folder 2019-02-09 15:43:15 +01:00
luccioman c617ea58a0 Render additional embedded audios from links on extended audio search 2019-02-08 12:23:20 +01:00
luccioman d167b14ab6 Relevant message when using the stop script while YaCy is not running 2019-02-05 09:43:28 +01:00
luccioman 7a30bce217 Added a stop command using the existing stop script to the snap package 2019-02-04 14:34:37 +01:00
luccioman 5e9a08355a Improved logging for federated search
- Do not use spaces in logger identifier name so the log level can be
configured in yacy.logging
- Hold the logger instance to avoid the logging system to look for it
from its name at each appended log message
2019-02-02 09:59:24 +01:00
luccioman 36c4083f54 Removed no more available OpenSearch URL example 2019-02-02 00:42:37 +01:00
luccioman 0dc5cfe58c Updated federated search html results mapping example 2019-02-02 00:41:49 +01:00
luccioman b342fdfe79 Set Snap source type to git for easier rebuild from main master sources
Also changed grade to allow promoting YaCy snap to a channel with higher
level than beta.
2019-01-31 10:18:41 +01:00
luccioman e830c2945d Added Readme links to Gitter and Matrix rooms
Fixes issue #268
2019-01-30 19:09:21 +01:00
luccioman 69f1971052 Added basic controls to play all audio results.
Not displayed when JavaScript is disabled.
2019-01-30 18:43:13 +01:00
luccioman 965c752ed5 Fixed shell start script failure on missing memory settings in conf file
Before that fix, the startYACY.sh failed when the javastart_Xmx or
javastart_Xms configuration keys were missing for some reason from
yacy.conf file, with the error "Unrecognized option: - Error: Could not
create the Java Virtual Machine."
2019-01-26 10:28:44 +01:00
luccioman 9782a98a9c Added the possibility to customize facets sort type and direction
Previously search navigators/facets elements were sorted only by counts.
Now from the ConfigSearchPage_p.html admin page, sort direction
(ascending/descending) and type (on counts or labels) can be customized
independently for each navigator.
2019-01-24 18:43:06 +01:00
luccioman d3a114c7a9 Upgraded icu4j dependency from 62.1 to 63.1 2019-01-19 11:29:17 +01:00
luccioman c00cd70a38 Properly read configured memory settings when using a custom data path
Fixes issue #269
2019-01-14 11:08:11 +01:00
luccioman 915080e8d4 Added Snap package configuration to choose to version data or not
By default when the Snap package is installed, YaCy data is stored in a
versioned user folder, allowing to revert to previous data after a
package refresh for example. But it can consumes much disk space, so it
is now possible to tell YaCy snap not to version its data, with the Snap
configuration setting "data.versioned=false".
2019-01-05 19:30:52 +01:00
luccioman 7223a2fdb1 Removed usage of now deprecated Jetty function 2018-12-22 14:42:22 +01:00
luccioman 1b71c6bf87 Upgraded Jetty dependencies from 9.4.12.v20180830 to 9.4.14.v20181114 2018-12-21 15:03:37 +01:00
luccioman 60b520fb13 Cleaned up Spanish translation after merge of PR #238
* Fixed some indentation
* Removed untranslated entries
2018-12-20 15:02:07 +01:00
luccioman cd72515188 Merge pull request #238 from ivanhercaz/esLang
[WIP] Spanish translation
2018-12-20 14:57:14 +01:00
luccioman 440d9f2fa0 Exclude peers with empty or disabled RWI from remote RWI search 2018-12-20 14:53:01 +01:00
luccioman 2f75e2d9c8 Fixed a case of NullPointerException on disconnected RWI data structure 2018-12-17 14:12:21 +01:00
luccioman 55b059bfb5 Fixed wkhtmltopdf integration in Alpine flavor Docker image
Building now wkhtmltopdf (used for snapshots generation) from sources,
as its package is only available on the Alpine edge branch and is not
compatible with the current Alpine (3.8) stable base image used for
YaCy.
2018-12-17 10:34:51 +01:00
luccioman 0cf96031ac Fixed Alpine flavor Docker image (wkhtmltopdf moved to community repo)
See also https://github.com/alpinelinux/aports/commit/10a2b3a8cd75ab13660bef4a97f351e031fba917
2018-12-14 21:07:06 +01:00
luccioman 7728de4ba6 Added support for pdf snapshots rendering to Snap package 2018-12-12 08:43:26 +01:00
luccioman 08ea0b0397 Added a configurable timeout to wkhtmltopdf calls for pdf snapshots
Necessary to prevent blocking the indexing workflow when some
wkhtmltopdf renderings fail without terminating
2018-12-11 22:31:31 +01:00
luccioman 7c7b38cb5a Updated the down.sh script, fixing the same kind of issue as in PR #260 2018-12-10 18:23:46 +01:00
luccioman b3d8407462 Updated up.sh to support passing the target peer address as a parameter 2018-12-10 17:53:12 +01:00
luccioman 1b3cb3820e Fixed broken searchall shell scripts 2018-12-10 17:51:15 +01:00
luccioman 8be829ca6b Merge pull request #261 from agnelvishal/patch-3
Update searchall1.sh

This should have been done ealrier after removal of up1.sh script in commit 3d9ce9cd04.
2018-12-08 15:49:55 +01:00
luccioman d38c6565e1 Merge pull request #260 from agnelvishal/patch-2
Update up.sh

It looks like this is a missing impact for earlier commit 65e6ae52fb.
2018-12-08 15:33:56 +01:00
luccioman 3fb449b3b6 Properly resolve relative URLs against document URL in html base tags
Fixes issue #256
2018-12-06 20:18:00 +01:00
luccioman 73a6e45524 Extended detection of external tools used for Snapshots generation
This enable detecting wkhtmltopdf and Imagemagick convert executables
when they are at system Path in addition to common installation paths.
2018-12-06 09:53:08 +01:00
luccioman dbacff2044 Added a command to set the admin password from the Snap package
Fixes issue #254
2018-12-01 11:04:09 +01:00
luccioman 3b383bff63 Removed shell temporary debug echo message 2018-12-01 10:55:15 +01:00
luccioman 3061b58c8c Let setting admin password with script when YaCy server is not running
Still using the ConfigAccounts_p API when the server is running.
2018-11-28 21:44:49 +01:00
luccioman ede5cc0a2b Improvements to passwd.sh script
- Use the configured administrator user name instead of always
defaulting to "admin"
 - Do not echo the password in clear text
 - Check the password minimum size as will be applied in
ConfigAccounts_p
 - Let user type a password when not provided as a parameter
2018-11-27 11:41:00 +01:00
luccioman 106bfd0e5f Also check yacy.conf file existence in shell scripts where relevant 2018-11-27 11:36:40 +01:00
luccioman 17ad1f7e65 Added support for custom DATA path in shell scripts
When the YACY_DATA_PATH environment variable is set, shell scripts will
now use the given path instead of relative ../DATA which remains the
default when the variable is not set.

Necessary in the context of Snap package (see issue #254) as YaCy is
started with startYACY.sh and an absolute DATA parent path in parameter.
2018-11-26 18:26:52 +01:00
luccioman 07730fe040 Updated the JRE URL from 8u181 to 8u191 for the MS Windows installer 2018-11-21 17:59:43 +01:00
luccioman 4196101379 Enable soft autocommit in default Solr config
Since upgrade from Solr 5.5 to Solr 6.6 (commit 6fe7359), hard
autocommits were still enabled to regularly persist the Solr index to
the file system, but new index entries were no more automatically made
available for use by the application (soft autocommit).
Therefore, YaCy features such as index statistics, that do not perform
an explicit commit (as recommended by Solr documentation) were no more
accurate.
Soft autocommit is now restored as a default, with a time period
expected to be sufficient for accuracy while adding only a reasonable
system load overhead.

Fixes issue #251
2018-11-19 08:49:13 +01:00
luccioman 8f1722b755 Updated mirror repository source url used in alpine flavor Docker image
Switching to a mirror providing a valid certificate
2018-11-19 08:40:17 +01:00
luccioman 7dc1f60619 Fixed detection of absolute data folder path on MS Windows 2018-11-18 10:08:20 +01:00
luccioman 595e144797 Trace a message on incomplete proper server finish when killing process 2018-11-15 17:32:22 +01:00
luccioman 43d86be37b Added a link to YaCy Gitter chat room in Readme
As suggested by PR #159 and reminded by @ivanhercaz in issue #247
2018-11-13 17:50:29 +01:00
luccioman 4129d712a7 Added details to the keystore configuration properties documentation 2018-11-13 07:50:27 +01:00
luccioman 9daeea823b Fixed concurrency issue on cache used for circles rendering
Without synchronization lock, concurrent rendering of images including
circles could lead to glitches as reported in issue #248
2018-11-10 22:00:49 +01:00
luccioman 8e72863a7f Merge pull request #250 from theel0ja/patch-1
Improved formatting of markdown
2018-11-08 08:39:32 +01:00
luccioman a997133260 Fixed gzip decompression regression on index transfer APIs
Processing of gzip encoded incoming requests (on /yacy/transferRWI.html
and /yacy/transferURL.html) was no more working since upgrade to Jetty
9.4.12 (see commit 51f4be1).

To prevent any conflicting behavior with Jetty internals, use now the
GzipHandler provided by Jetty to decompress incoming gzip encoded
requests rather than the previously used custom GZIPRequestWrapper.

Fixes issue #249
2018-11-07 14:52:42 +01:00
luccioman e85f231bdf Fixed termination of Host browser and link structure Solr query threads
On some conditions (especially when reaching timeout), concurrent Solr
query tasks used by the /HostBrowser.html and /api/linkstructure.json
never terminated, thus leaking resources, as reported by @Vort in issue
#246
2018-11-06 10:10:09 +01:00
luccioman 260ac11c65 Limit length of initially visible text in link structure graph nodes
To improve a bit readability of graphs having a large number of nodes.
2018-10-31 07:43:42 +01:00
luccioman 5a8d9abd8a Upgraded d3js dependency from 3.4.4 to 5.7.0 2018-10-28 10:07:46 +01:00
luccioman 9f8e1994a4 Added missing CSS width units to some HostBrowser.html styling 2018-10-26 09:11:23 +02:00
luccioman 0b1d2cb0dd Fixed "TypeError: table.tBodies[0] is undefined" host browser JS error
Traced in browser console when a host details table is empty.
2018-10-26 08:55:25 +02:00
luccioman fcf6b16db4 Added new crawler attribute for finer control over Media Type detection
New "Media Type detection" section in the advanced crawl start page
allow to choose between :
- not loading URLs with unknown or unsupported file extension without
checking the actual Media Type (relying Content-Type header for now).
This was the old default behavior, faster, but not really accurate.
- always cross check URL file extension against the actual Media Type.
This lets properly parse URLs ending with an apparently odd file
extension, but which have actually a supported Media Type such as
text/html.

Sample URLs with misleading file extensions added as documentation in
the crawl start page.

fixes issue #244
2018-10-25 10:42:12 +02:00
luccioman 88d0ed676c Render http status instead of null responses on snapshot api errors 2018-10-19 10:12:10 +02:00
luccioman a83a56473e Added suport for PDF snapshots generation when running on MS Windows 2018-10-18 12:41:57 +02:00
luccioman 18d07538ad Upgraded Apache Ant from 1.10.1 to 1.10.5 in Docker alpine image flavor 2018-10-17 10:04:48 +02:00
luccioman 053df1f312 Added support for snapshots generation to Docker images 2018-10-17 08:42:31 +02:00
luccioman 92e10d7d1c Added a crawl start hint message on availability or not of wkhtmltopdf
As this tool is required to produce pdf snapshots
2018-10-16 08:02:43 +02:00
luccioman 8852c97cee Added basic styling for cleaner rendering of missing image snapshots
For the output of the Solr snapshots writer
2018-10-15 18:19:57 +02:00
luccioman 746e0e788d Render a relevant HTTP status code on snapshot image rendering error
Instead of a null response body which is not very helpful.
2018-10-14 10:30:30 +02:00
luccioman 50b6edfcf5 Updated Solr snapshots writer for a cleaner html head 2018-10-13 10:36:39 +02:00
luccioman f366f43d6b Made snapshots size customizable in Solr snapshots response writer 2018-10-13 10:22:47 +02:00
luccioman 7a62fc0e66 Fixed concurrency issue in custom classloader used for template classes
As reported in issue #241, the problem is only critical (random but
complete crash of the JVM) when upgrading to JDK11.
2018-10-11 18:34:39 +02:00
luccioman 0eb52f8c72 Added documentation hint about JVM option useful to debug JVM crashes 2018-10-11 18:28:08 +02:00
luccioman 753bda1409 Fixed remaining blacklist entries improper decoding of '+' character
In the blacklist cleaner and import/export administration pages.
2018-10-08 16:50:02 +02:00
luccioman 61c337f29a Decode blacklist entries for easier edition of non ascii chars
Not using the JDK URLDecoder.decode() function, as it strips '+'
characters when they occur after '?' (both characters having regular
expression semantics when used in blacklist path patterns)
2018-10-04 09:33:58 +02:00
luccioman ed93221fa1 Improved normalization of blacklist path patterns having non ascii chars
Normalize blacklist path patterns using percent-encoding, at pattern
edition in web interface and at loading from configuration files.

Fixes issue #237
2018-10-02 14:36:13 +02:00
luccioman d42f079c2d Additional modifications for typo fix in Bookmarks.html from PR #240 2018-10-02 07:32:36 +02:00
luccioman d23578efc3 Merge pull request #240 from ivanhercaz/fixEnglishBookmarksPage
Fix English Bookmarks.html
2018-10-02 07:27:47 +02:00
luccioman 3d14fb51c5 Removed now unused Java import in addition to modification from PR #239 2018-09-26 08:47:13 +02:00
luccioman d5ec706604 Merge pull request #239 from otteresk/master
Display correct time in Rejected URLs overview
2018-09-26 08:43:48 +02:00