tag:support.hglabhq.com,2012-10-18:/discussions/problems/312-crash-while-clicking-on-a-newly-created-repository-ver-0310-invalid-uri-the-hostname-could-not-be-parsedHgLab: Discussion 2013-08-07T10:01:13Ztag:support.hglabhq.com,2012-10-18:Comment/281454782013-08-07T07:07:06Z2013-08-07T07:07:08ZCrash while clicking on a newly created repository. (Ver 0.3.10). Invalid URI: The hostname could not be parsed.<div><p>PFA elmah.mvc dump. Maybe its because of my machine name.
WIN-O7OKEN0VPTL<br>
Will keep you posted if I figure something out.</p></div>Karthiktag:support.hglabhq.com,2012-10-18:Comment/281454782013-08-07T07:29:02Z2013-08-07T07:29:02ZCrash while clicking on a newly created repository. (Ver 0.3.10). Invalid URI: The hostname could not be parsed.<div><p>Hi!</p>
<p>Under "Administration" - "General", what is the value of "Site
URL" parameter?</p></div>Anton Gogolevtag:support.hglabhq.com,2012-10-18:Comment/281454782013-08-07T08:45:10Z2013-08-07T08:45:12ZCrash while clicking on a newly created repository. (Ver 0.3.10). Invalid URI: The hostname could not be parsed.<div><p><a href=
"http://WIN-O7OKEN0VPTL/hglab">http://WIN-O7OKEN0VPTL/hglab</a> is
the value where WIN-O7OKEN0VPTL is my server name. I tried changing
it to the machine ip address but still got the same error.</p></div>Karthiktag:support.hglabhq.com,2012-10-18:Comment/281454782013-08-07T09:01:07Z2013-08-07T09:01:07ZCrash while clicking on a newly created repository. (Ver 0.3.10). Invalid URI: The hostname could not be parsed.<div><p>Yep, these should not cause any issues.</p>
<p>What is the exact login you're using to sign in to HgLab?</p></div>Anton Gogolevtag:support.hglabhq.com,2012-10-18:Comment/281454782013-08-07T09:29:45Z2013-08-07T09:29:48ZCrash while clicking on a newly created repository. (Ver 0.3.10). Invalid URI: The hostname could not be parsed.<div><p>I have used my email id as the login name. <a href=
"mailto:karthik@attinadsoftware.com">karthik@attinadsoftware.com</a>
is the user name.</p></div>Karthiktag:support.hglabhq.com,2012-10-18:Comment/281454782013-08-07T09:39:46Z2013-08-07T09:39:46ZCrash while clicking on a newly created repository. (Ver 0.3.10). Invalid URI: The hostname could not be parsed.<div><p>Aha, so that's the problem. Actually, the problem is lack of
validation and escaping on my end, but nevertheless.</p>
<p>What's happening is HgLab tries to construct a Clone URL that
has your login as a part of it, i.e.
<code>http://username@domain.com@192.168.1.127/hglab/hg/slugfest/helloworld</code>
( see <a href=
"http://www.cs.rutgers.edu/~watrous/user-pass-url.html">http://www.cs.rutgers.edu/~watrous/user-pass-url.html</a>
), and doesn't escape the first <code>@</code> sign.</p>
<p>I'll be fixing this in an upcoming release, but for the time
being you can execute the following SQL statement against HgLab
database:</p>
<pre>
<code>update [User] set [Login] = N'karthik' where [Login] = N'karthik@attinadsoftware.com'</code>
</pre>
<p>This will change your login to <code>karthik</code> and HgLab
will be much happier with that.</p></div>Anton Gogolevtag:support.hglabhq.com,2012-10-18:Comment/281454782013-08-07T09:46:12Z2013-08-07T09:46:14ZCrash while clicking on a newly created repository. (Ver 0.3.10). Invalid URI: The hostname could not be parsed.<div><p>Got it working!! Thanks for the support.</p></div>Karthiktag:support.hglabhq.com,2012-10-18:Comment/281454782013-08-07T10:01:13Z2013-08-07T10:01:13ZCrash while clicking on a newly created repository. (Ver 0.3.10). Invalid URI: The hostname could not be parsed.<div><p>Glad I could help! Have a nice day and do contact me in case
something else goes awry.</p></div>Anton Gogolev