YaCy-Bugtracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000416YaCy[All Projects] Generalpublic2014-06-17 10:022014-09-18 15:12
ReporterQuix0r 
Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusnewResolutionopen 
ETAnone 
PlatformDebian Wheezy/JessieOSLinuxOS Version3.9.7
Product Version 
Target VersionFixed in Version 
Summary0000416: Proxy leitet auf YaCy-Seite um
DescriptionStelle ich den Proxy im Browser ein und rufe z.B. www.yacy.net auf, gelange ich auf die Startseite des YaCy-Peers und nicht www.yacy.net. Dies geschieht mit neuster GIT-Version.
Tagsfix, proxy, regression
Attached Files

- Relationships

-  Notes
(0000845)
Sora (reporter)
2014-07-13 20:30

I have exactly the same problem.
I'm running Linux Mint 16 Petra 64bit with openjdk-7-jre. I've installed the newest YaCy version from the YaCy Debian repository: YaCy version 1.73/9172
When I configure YaCy as a proxy in my browser (Firefox 30.0) and visit a website then I get YaCy's start page or a 404 HTTP error from YaCy if the URL contains a path.
I could reproduce this with wget using the http_proxy environment variable.
It seems that either the YaCy webserver is used instead of the proxy or the proxy itself connects to the YaCy webserver instead of the real website.

I've cloned the git repository and started with a clean DATA-directory. Here's what I've figured out:
1. The network "defaults/yacy.network.allip.unit" must be selected. With all other (default) networks the proxy works for me.
2. I run git bisect on the repository and the problem was introduced in this commit: https://gitorious.org/yacy/rc1/commit/6f9ed439d3c34cc61dd4b7b2b46015018e353acf [^]
3. The newly added line 86 in the file "source/net/yacy/http/AbstractRemoteHandler.java" (at the time of commit 6f9ed43) results in the problem:
86: if (Domains.isLocal(hostOnly, null)) return; // no proxy, continue processing by handlers
When I remove the line the proxy works fine again.

As I've never worked with YaCy's source code I couldn't provide a patch here but I hope these information help to reproduce and solve this issue.
(0000846)
Quix0r (updater)
2014-07-14 11:05

Your proposed change is working. Thank you.
(0000847)
BuBu (developer)
2014-07-14 22:04

Trying to reproduce it, this happens only with network.allip.unit
were isLocal URL check is allways true (so every URL is counted as a local URL).

P.S. At the time of the implementation of the Proxy local checks there was a Major security issue with Default freeworld.unit to fix. So we've to be careful not to open a hole as side effect for other then allip.unit.
(0000923)
Quix0r (updater)
2014-09-18 15:11

The bug is back with recent changes.

One of these:
a11bc106298b33b6d94902291e5c7bcc16ca4fd9
8284ea751a6f4107595ba1a42cb67e759a85b7a1
dc1482481477cdab13c0e6de7acad36747656ac0
ffa7c7116f9fc7c5fc020cced7aaadd12fa52b18
f03dd0df246995517f18ffa3799a9631efc2f4c9
bf18a39d0e2e163a57712c01c6535df4ad46fc6b
f1032fb8fe78d2e5a2305db656eeb6c371c8c59f
19c6b97572546591ef9e75efb319a1ded980426a

- Issue History
Date Modified Username Field Change
2014-06-17 10:02 Quix0r New Issue
2014-07-13 20:30 Sora Note Added: 0000845
2014-07-14 11:05 Quix0r Note Added: 0000846
2014-07-14 11:06 Quix0r Tag Attached: fix
2014-07-14 22:04 BuBu Note Added: 0000847
2014-09-18 15:11 Quix0r Note Added: 0000923
2014-09-18 15:12 Quix0r Tag Attached: proxy regression
2014-09-18 15:12 Quix0r Tag Detached: proxy regression
2014-09-18 15:12 Quix0r Tag Attached: proxy
2014-09-18 15:12 Quix0r Tag Attached: regression


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker