nekohayo / specto

Automatically exported from code.google.com/p/specto
0 stars 0 forks source link

option to follow http redirects should not save redirected URLs #58

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I start specto on boot. I use wireless connection and every time I
reboot my machine, all the URLs will be redirect to my wireless logon page
provided by the wireless provider, and then I need to input my username and
password for the internet connection. In this case, specto will change the
all the watching URLs to my wireless logon page and report a web update.
2.
3.

What is the expected output? What do you see instead?
This is annoying. Maybe you can remain the watching URL unchanged in this
case or provide some option to choose between change URL or not.

What version of the product are you using? On what operating system?
0.2, Ubuntu feisty fawn

Please provide any additional information below.

Original issue reported on code.google.com by scai1...@gmail.com on 25 May 2007 at 5:09

GoogleCodeExporter commented 9 years ago
Hmm. You have a special use case here, and I'm pretty sure I would be 
considering
this issue a "notabug, wontfix" :)

The reason it changes the URIs is to allow handling http redirects and special 
domain
names (for example, specto.sf.net becomes specto.sourceforge.net). Not sure we 
can do
without this feature...

Having to authenticate on the web through some wifi splash page before 
connecting is
a special use I think, the solution would be to not start specto on login but 
start
it manually after having activated the connection. That's what I do personally
because I want specto to be running only when I am fully online.

Providing an option to change the URL could be an idea, but then you would have 
30
dialogs show up on your desktop on login asking you if you want to change the 
URL?
Not sure that would be better o_o.

Thoughts, anyone?

Original comment by nekoh...@gmail.com on 25 May 2007 at 3:38

GoogleCodeExporter commented 9 years ago
Thanks! Understood. 

"Providing an option to change the URL could be an idea, but then you would 
have 30
dialogs show up on your desktop on login asking you if you want to change the 
URL?
Not sure that would be better o_o."

Maybe provide just one option in preference so that one can disable this for all
watches instead of using options for each watch, then there will be no pop up 
showing?

Original comment by scai1...@gmail.com on 25 May 2007 at 9:23

GoogleCodeExporter commented 9 years ago
well I guess it makes sense, but I don't really have the time to do much hacking
these days, so if you (or somebody else) can provide a patch, it would be 
welcome ;)

also, this depends on issue #41, kind of.

Original comment by nekoh...@gmail.com on 2 Jun 2007 at 10:04

GoogleCodeExporter commented 9 years ago
Nevermind. I fixed issue 41, so this was easy to add now. Your problem will be 
fixed
in Specto SVN revision 112 :)

The key is not shown in the preferences window (because I don't want to clutter 
it).
It is a hidden gconf key that you can access using "gconf-editor", and change in
"/apps/specto/follow_website_redirects".

Please test SVN 112 and come back to tell me if it resolved your problem (I 
will then
mark this issue as "verified").

Original comment by nekoh...@gmail.com on 2 Jun 2007 at 11:56

GoogleCodeExporter commented 9 years ago

Original comment by nekoh...@gmail.com on 8 Mar 2008 at 11:19

GoogleCodeExporter commented 9 years ago

Original comment by nekoh...@gmail.com on 18 Mar 2008 at 2:14

GoogleCodeExporter commented 9 years ago
It has often been reported that because of wireless auth splash pages, Specto 
mangles
watch URLs because it rewrites them according to the redirect.

Until now, I thought the solution to the problem was to add a gconf key
"/apps/specto/follow_website_redirects", but I was wrong. Adding an option here 
was
just hiding the dirt under a rug. 

Now, instead there is a much more elegant solution:
- keep this option (with "follow redirects" as the default behavior
- in the code, make it so that the redirected URL does not overwrite the one in 
the
watch list, AND add a comment so that we don't repeat this mistake

Original comment by nekoh...@gmail.com on 17 Sep 2008 at 10:07

GoogleCodeExporter commented 9 years ago
Fixed in rev 109

Original comment by woutclym...@gmail.com on 3 Oct 2008 at 7:25

GoogleCodeExporter commented 9 years ago
The fix has been merged in specto's main branch, could you give it a shot, 
scai1976?

Original comment by nekoh...@gmail.com on 4 Oct 2008 at 12:43