Commit Graph

13401 Commits

Author SHA1 Message Date
luccioman
285f0d6a39 Consistently encode snapshot image with format requested on the API.
Previously, calling /api/snapshot.png rendered JPEG encoded images.
2017-10-18 07:53:07 +02:00
luccioman
4da15db998 Fixed search result Snapshots link.
Previously rendered as a broken URL containing the absolute file path of
a snapshot on the search server.

Now rendered as a valid URL linking to the /api/snapshot API to provide
available snapshot content. Snapshot format is selected among the
available ones in the following order of preference  : JPG/PNG, PDF, and
XML.
2017-10-17 09:41:58 +02:00
luccioman
34ca73d61b Fixed a NullPointerException case on images encoding errors. 2017-10-16 19:47:18 +02:00
luccioman
7c319c841e Fixed pdf2image conversion with imagemagick on PDFs having transparency
The target image format (jpeg) doesn't support transparency, so the
Html2ImageTest produced unusable black images when ran on a linux
machine having imagemagick package installed.
2017-10-16 19:45:17 +02:00
luccioman
6e497241f7 Properly close resources (even on error) on OS and ThreadDump classes.
Also updated some JavaDoc and main() function usage message on the same
ones.
2017-10-16 17:04:22 +02:00
luccioman
fe75f326d8 Fixed ProfilingGraph calculation integer overflows and added test class.
Complementary to fix proposed in PR #128 by @otteresk.
2017-10-16 09:18:12 +02:00
luccioman
5d1ef8fdfc Merge branch 'master' of https://github.com/otteresk/yacy_search_server 2017-10-16 09:01:34 +02:00
luccioman
8303e15419 Reduced number of search navigators refresh requests in JS resort mode
The SearchEvent listen to changes on each of its navigators, and the
information about their overall state is sent with each fetched search
item (as a "data-nav-generation" attribute). Then the browser can
regularly fetch a fresh version of yacysearchtrailer.html only if
necessary (when that nav-generation value change).
2017-10-12 07:16:19 +02:00
luccioman
2ac78e2cca Addedd missing parameters to yacysearchtrailer call on JS resort mode 2017-10-11 07:13:28 +02:00
luccioman
ebe91c7075 Merge branch 'master' of https://github.com/yacy/yacy_search_server 2017-10-09 19:08:57 +02:00
luccioman
5bf76f058a Adjusted ResponseHeaderTest to succeed on slow or highly loaded CPU 2017-10-09 19:08:39 +02:00
luccioman
a545523ab9 Added a Travis build status image to Readme 2017-10-09 14:25:43 +02:00
luccioman
dbff7b14fc Add a configurable limit to tags initially displayed in search results
When the limit is reached, a button allow expanding/collapsing remaining
tags.

When this feature is activated without a limit to the number of
displayed tags, when encountering search results with a very large
number of keywords, the results page can become almost unusable (very
long vertical scrollbar)
2017-10-09 14:13:46 +02:00
Andreas
0c4db9eef0 Merge pull request #3 from yacy/master
Fork update
2017-10-07 12:29:55 +02:00
reger
f8c7d0265e Adjust tags css style in ConfigSearchPage to equal search page 2017-10-07 06:13:22 +02:00
reger
c31d94664a Update deprecated SolrInputDocument.addField() with boost value
remove unused SchemaConfiguration.getDate (as it is designed to return
only past dates which might be unexpected for general configuration schema)
2017-10-06 20:32:28 +02:00
luccioman
5a67d0f46d Fixed Travis configuration for Debian package building task 2017-10-06 08:38:31 +02:00
luccioman
1e000f72c2 Fixed Travis configuration for Debian package building task 2017-10-05 14:44:33 +02:00
luccioman
8002e5e5e8 Updated Debian optional dependencies with the ones used for snapshots 2017-10-05 14:42:05 +02:00
luccioman
e63178a619 Fixed YaCy Debian package path in Travis configuration 2017-10-05 14:26:55 +02:00
luccioman
27bd1921e4 Exclude eventual maven targets from ant dist task. 2017-10-05 14:22:35 +02:00
luccioman
9982af7f04 Updated travis config : install ghostscript, required for Html2Image 2017-10-05 13:15:08 +02:00
luccioman
7e271f9cf5 Updated travis config : install ghostscript, required for Html2Image 2017-10-05 13:09:11 +02:00
luccioman
ddb8715fd5 Merge branch 'travis' of https://github.com/krichter722/yacy_search_server into travis 2017-10-05 09:32:03 +02:00
luccioman
2fb731b5c7 Updated Travis jdk version to match current requirements (Java 1.8) 2017-10-05 09:25:02 +02:00
luccioman
32c9dfa768 Added partial bzip2 stream parsing support and bzipParser Junit test 2017-10-04 18:33:09 +02:00
luccioman
dd9cb06d25 Fixed RWI distance calculation on multi words search queries.
Distance was lost when storing/retrieving references to intermediate
result container.

Now all JUnit tests are again successfully passing!
2017-10-04 08:41:43 +02:00
luccioman
fcea6def72 Added textual hints to language radio buttons labels
As an help and accessible alternative to visual styling marking  whether
a language is available in browser preferred lang mode.
2017-10-02 10:05:57 +02:00
luccioman
6b11bf3a12 Fixed NullPointerException case on 'Browser' lang selection
Occurred when English was the only active language, then making the
ConfigBasic.html page unusable until manually modifying the
locale.language setting.
2017-10-02 09:36:13 +02:00
reger
ae1c675c85 fix array out of bounds in YJsonResponseWriter and OpensearchResponsWriter
on recreation of image url. 
Set parameter of indexList2protocolList to required number of images (image_stubs)
Situation e.g. image_stub(size=15) but images_protocol(size=12)
2017-10-02 02:51:10 +02:00
reger
cbaa492054 upd to Jetty-9.4.7.v20170914 2017-10-02 00:50:30 +02:00
otter
73d1d577fd prevent integer overflow in chartDot for nodes with a big index 2017-09-30 11:58:49 +02:00
otter
4e2ccdfcac prevent integer overflow in chartLine 2017-09-30 00:48:54 +02:00
Andreas
1456f57085 Merge pull request #2 from yacy/master
Merge #2
2017-09-29 23:22:39 +02:00
luccioman
27ab733685 Ensure private search features are not lost on Digest auth timeout
This is a fix for mantis 766 ( http://mantis.tokeek.de/view.php?id=766 )

Since the upgrade to Digest authentication, access to protected search
features was indeed disabled once the Digest nonce timed out.

After Digest auth timeout the browser no more sent authentication
information and as the search results page is not private, protected
features were simply be hidden without asking browser again for
authentication.

Adding a supplementary parameter when accessing the search results as
authenticated fixes this.
2017-09-29 19:18:12 +02:00
reger
ba60f65040 Adjust filetype: query modifier parameter to lower case
to prevent mismatch on user input with mixed case
Internally file extension are always compared lowercase.
2017-09-29 00:26:30 +02:00
luccioman
ff87b1c5e2 Updated master translation file for ConfigSearchPage_p.html 2017-09-28 09:55:23 +02:00
luccioman
13643d9430 Merge branch 'master' of https://github.com/yacy/yacy_search_server 2017-09-28 09:15:22 +02:00
reger
dd82f85953 Add links to the optional keyword tags of search result
If swichted on link (click) to the tag adds the keyword to the search query.
If a keyword navigator is active the selected keyword adds or replaces 
a query keyword: modifier (currently replace was choosen as multiple 
keywords are not fully supported yet)
2017-09-28 00:46:49 +02:00
Andreas
9f0e7dca91 Merge pull request #1 from yacy/master
update
2017-09-27 23:32:00 +02:00
luccioman
643967af9f Added French translation for ConfigSearchPage_p.html 2017-09-27 17:51:11 +02:00
luccioman
fc28c58731 Added missing accessible labels to ConfigSearchPage_p.html 2017-09-26 14:58:30 +02:00
luccioman
8294374c10 Fixed ConfigSearchPage_p HTML validation errors.
Validated with Nu Html Checker 17.9.0
2017-09-26 07:59:44 +02:00
luccioman
57a33aefb0 Removed unnecessary max counts init on empty search navigators. 2017-09-25 15:21:17 +02:00
luccioman
b1e7bd0dd6 Restrict Search Result Layout modification to HTTP POST only. 2017-09-25 14:54:35 +02:00
luccioman
ef8aea7f8d Made the dates navigator max elements number user configurable.
Also used object properties on QueryParams instances, rather than using
mutable class (static) properties.
2017-09-25 09:19:08 +02:00
luccioman
0b0980b364 Improved accessibility of histograms widgets.
Added keyboard navigation support and missing WAI-ARIA attributes.

Tested with NVDA 2017.3 screenreader on recent major browsers.
2017-09-22 11:00:46 +02:00
luccioman
62c7cd9a77 Upgraded JavaScript lib raphael.js from 2.1.3 to 2.2.7 2017-09-20 07:59:20 +02:00
luccioman
cbbc7b43d3 Refresh paginations buttons instead of fully rendering each time.
This prevent the already displayed pagination buttons to be unresponsive
when clicking on them while the rendering JS function is running.
2017-09-18 17:36:07 +02:00
reger
c4a7ad2865 update jars for upd solr 6.6. commit for ant 2017-09-17 08:25:14 +02:00