Wrong message "You used the wrong URL for this project"

Message boards : BOINC client : Wrong message "You used the wrong URL for this project"
Message board moderation

To post messages, you must log in.

AuthorMessage
Profile Ananas

Send message
Joined: 27 Jun 06
Posts: 305
Germany
Message 15099 - Posted: 24 Jan 2008, 23:04:21 UTC
Last modified: 24 Jan 2008, 23:12:51 UTC

There's a bug in the master URL comparison.

The path part of the URL is case sensitive, that is correct.

The protocol/server/domain parts are not case sensitive!

Example :

http://Boinc.Berkeley.Edu/dev and http://boinc.berkeley.edu/dev are equivalent

so BOINC should not whine about a wrong master URL.


Solution : lowercase all characters in the URLs up to the 3rd slash (or the end of the string) and then use them. That's faster and easier to handle than splitting the string and comparing the components separate.
ID: 15099 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15480
Netherlands
Message 15101 - Posted: 24 Jan 2008, 23:13:00 UTC

Forwarded to the responsible parties.
ID: 15101 · Report as offensive
Profile Ananas

Send message
Joined: 27 Jun 06
Posts: 305
Germany
Message 15102 - Posted: 24 Jan 2008, 23:23:51 UTC

Thank you :-)
ID: 15102 · Report as offensive
MikeMarsUK

Send message
Joined: 16 Apr 06
Posts: 386
United Kingdom
Message 15112 - Posted: 25 Jan 2008, 8:46:06 UTC


I still haven't figured out why Boinc allows us to attach to projects if the URL is wrong, and only subsequently complains about the URL once workunits are running. Wouldn't it be more efficient to reject it earlier in the process?

ID: 15112 · Report as offensive
Profile Ananas

Send message
Joined: 27 Jun 06
Posts: 305
Germany
Message 15124 - Posted: 26 Jan 2008, 3:48:22 UTC
Last modified: 26 Jan 2008, 4:18:11 UTC

Extreme example is Rosetta, they have a little less than a zillion URLs which all lead to a valid(!) master URL with a scheduler tag.

BOINC is just too picky with the URL, even minor changes (cosmology.org vs. www.cosmology.org) or even irrelevant changes (MindModeling.org vs. mindmodeling.org) cause complaints.

The best solution would be to allow attach to any URL that leads to a correct master page, but then ask the scheduler about the correct URL and adjust all state entries, XML file names, subdirectories etc. to this scheduler-given URL.

Same for URL changes (e.g. http://lhcathome.cern.ch/ to http://lhcathome.cern.ch/lhcathome/), the client should just adjust everything lossless(!) instead of complaining.

The major problem is that the URL is part of the file-/directory names instead of using an abstract common key (derived from the project name instead of the project master URL) for all files/directories/state entries of a project.


p.s.: I'm not happy with the concept of this "master page" anyway, it downloads lots of crap (from the CC view) just to extract one small XML tag. Having a separate "project_setup.xml" in the master path root would be much better, it would be independant from database and PHP problems on the master page, it would be much smaller (WCG has 32k master page!!!), easier to parse and it could contain some more informations (like the unique project key). It would not generate database queries either, no UOTD and stuff like that - stuff for users, useless for the core client. The master page is the best example of how function and design should not be mixed.
ID: 15124 · Report as offensive
Nicolas

Send message
Joined: 19 Jan 07
Posts: 1179
Argentina
Message 15125 - Posted: 26 Jan 2008, 5:31:21 UTC - in response to Message 15124.  

p.s.: I'm not happy with the concept of this "master page" anyway, it downloads lots of crap (from the CC view) just to extract one small XML tag. Having a separate "project_setup.xml" in the master path root would be much better, it would be independant from database and PHP problems on the master page, it would be much smaller (WCG has 32k master page!!!), easier to parse and it could contain some more informations (like the unique project key). It would not generate database queries either, no UOTD and stuff like that - stuff for users, useless for the core client. The master page is the best example of how function and design should not be mixed.

The stupid thing is that there is such thing already, it's called get_project_config.php. Yet the scheduler URLs are taken from the frontpage.
ID: 15125 · Report as offensive
David Stites

Send message
Joined: 13 Mar 06
Posts: 14
United States
Message 15169 - Posted: 31 Jan 2008, 0:23:54 UTC - in response to Message 15099.  

There's a bug in the master URL comparison.

The path part of the URL is case sensitive, that is correct.

The protocol/server/domain parts are not case sensitive!

Example :

http://Boinc.Berkeley.Edu/dev and http://boinc.berkeley.edu/dev are equivalent

so BOINC should not whine about a wrong master URL.


Solution : lowercase all characters in the URLs up to the 3rd slash (or the end of the string) and then use them. That's faster and easier to handle than splitting the string and comparing the components separate.

DNS is not case sensitive, everything between :// and / is DNS.
ID: 15169 · Report as offensive
MikeMarsUK

Send message
Joined: 16 Apr 06
Posts: 386
United Kingdom
Message 15175 - Posted: 31 Jan 2008, 8:42:02 UTC
Last modified: 31 Jan 2008, 8:44:22 UTC


I didn't realise the Boinc servers compare URLs via DNS, I thought they did a simple textual compare of two strings? (Unless you're just adding detail to Ananas's post)?
ID: 15175 · Report as offensive
Profile Ananas

Send message
Joined: 27 Jun 06
Posts: 305
Germany
Message 15210 - Posted: 2 Feb 2008, 13:59:03 UTC
Last modified: 2 Feb 2008, 14:08:26 UTC

It complains about a wrong URL when it compares (strcmp) the configured master URL (on project side) and the attached master URL (on client side) and they are not identical.

Attach to

http://mindmodeling.org/beta/

and it will tell you that it would rather want to be attached to

http://MindModeling.org/beta/

<master_url>http://MindModeling.org/beta/</master_url>

Copying the link location http://MindModeling.org/beta/ lowercases the server/domain part (at least SeaMonkey does that) even though you can see it mixed case in the HTML source.
It is correct behaviour, the browser doesn't do anything wrong, but BOINC doesn't understand that.

p.s.: I tested it with IE6, it lowercases the server part too.
ID: 15210 · Report as offensive

Message boards : BOINC client : Wrong message "You used the wrong URL for this project"

Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.