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
Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
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
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.
Quix0r (updater)
2014-07-14 11:05

Your proposed change is working. Thank you.
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.
Quix0r (updater)
2014-09-18 15:11

The bug is back with recent changes.

One of these:

- 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