<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to bugs</title><link>https://sourceforge.net/p/shorturl-dotnet/bugs/</link><description>Recent changes to bugs</description><atom:link href="https://sourceforge.net/p/shorturl-dotnet/bugs/feed.rss" rel="self"/><language>en</language><lastBuildDate>Mon, 18 Aug 2014 07:10:51 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/shorturl-dotnet/bugs/feed.rss" rel="self" type="application/rss+xml"/><item><title>404 Redirect fixes</title><link>https://sourceforge.net/p/shorturl-dotnet/bugs/4/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;thanks&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;URL&lt;/span&gt; &lt;span class="n"&gt;Shortener&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;I&lt;/span&gt; &lt;span class="n"&gt;have&lt;/span&gt; &lt;span class="n"&gt;made&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="n"&gt;few&lt;/span&gt; &lt;span class="n"&gt;changes&lt;/span&gt; &lt;span class="n"&gt;to&lt;/span&gt; &lt;span class="n"&gt;get&lt;/span&gt; &lt;span class="n"&gt;it&lt;/span&gt; &lt;span class="n"&gt;working&lt;/span&gt; &lt;span class="n"&gt;using&lt;/span&gt; &lt;span class="mi"&gt;404&lt;/span&gt; &lt;span class="n"&gt;redirect&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;1.) ShortURL.Utils&lt;/p&gt;
&lt;p&gt;InternalShortURL, replacing domain does not actually clean up the string enough. this just gets the last part of the string after the last "/"&lt;/p&gt;
&lt;p&gt;public static string InternalShortUrl(string short_url)&lt;br /&gt;
        {&lt;br /&gt;
            int position = short_url.LastIndexOf('/');&lt;br /&gt;
        if (position != -1) &lt;br /&gt;
        {&lt;br /&gt;
            return short_url.Substring(position + 1);&lt;br /&gt;
        } else&lt;br /&gt;
        {&lt;br /&gt;
            return String.Empty;&lt;br /&gt;
        }&lt;br /&gt;
        }&lt;/p&gt;
&lt;p&gt;2.) Redirection.ASPX.cs&lt;/p&gt;
&lt;p&gt;I removed code in regards to "(ShortUrl.Utils.HasValue(Request.QueryString&lt;span&gt;["page"]&lt;/span&gt;.ToString())) // checks in case ISAPIRewrite is being used" because it contains an error.&lt;/p&gt;
&lt;p&gt;protected void Page_Load(object sender, EventArgs e)&lt;br /&gt;
    {&lt;br /&gt;
        ShortUrl.Container oShortUrl;&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;    &lt;span class="n"&gt;oShortUrl&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ShortUrl&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Utils&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;RetrieveUrlFromDatabase&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ShortUrl&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Utils&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;InternalShortUrl&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;Request&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Url&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ToString&lt;/span&gt;&lt;span class="p"&gt;()));&lt;/span&gt;

    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;oShortUrl&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;RealUrl&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="n"&gt;null&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;Response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Redirect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;oShortUrl&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;RealUrl&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="k"&gt;else&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;Response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Redirect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"MissingUrl.aspx"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tristan Marlow</dc:creator><pubDate>Mon, 18 Aug 2014 07:10:51 -0000</pubDate><guid>https://sourceforge.netbae77fc590482a56042d34be1ea5f7f32562c6b5</guid></item><item><title>Redirection Parsing does not work</title><link>https://sourceforge.net/p/shorturl-dotnet/bugs/3/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I set up my DefaultAppPool to redirect to /shorturl/Redirection.aspx.   The redirection page could not parse the URL.  There were several bugs with the parsing.  Here they are, in order:&lt;/p&gt;
&lt;p&gt;1.   Request.QueryString["page"].ToString() is bad code.  It does not properly check for NULL before calling .ToString().   This is crucial.   I commented out that line of code.&lt;br /&gt;
2.  oShortUrl = "http://gmlucid.localhost.com/shorturl/Redirection.aspx?404;http://gmlucid.localhost.com:80/Li4t5 &lt;br /&gt;
This is not parsed properly by Utils.Clean() method or the RetrieveUrlFromDatabase() method.&lt;br /&gt;
3.   The Utils.Clean code works for "AddUrlToDatabase(Container)" but NOT for "RetrieveUrlFromDatabase(oShortUrl)".  The key here is oShortUrl.&lt;br /&gt;
LOOK at the CLEAN method!!! IT is not even doing anything!!!!   Just creating a Regex, but not applying it to the URL at all.&lt;br /&gt;
public static string Clean(string url)&lt;br /&gt;
{&lt;br /&gt;
string filter = @"((https?):((//)|(\\\\))+[\w\d:#@%/;$()~_?\+-=\\\.&amp;amp;]*)";&lt;br /&gt;
Regex rx = new Regex(filter);&lt;br /&gt;
return url;&lt;br /&gt;
}&lt;br /&gt;
LOOK at the CLEAN method!!! IT is not even doing anything!!!!   Just creating a Regex, but not applying it to the URL at all.&lt;/p&gt;
&lt;p&gt;Please Fix.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">GM Lucid</dc:creator><pubDate>Wed, 21 Mar 2012 22:25:46 -0000</pubDate><guid>https://sourceforge.net409bafef0433a9a5b0b250f2094ae603739c1ed3</guid></item><item><title>Please urgent !</title><link>https://sourceforge.net/p/shorturl-dotnet/bugs/2/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I want to use this project with own web site using  (IIS7) can you help me.&lt;/p&gt;
&lt;p&gt;Please send me step by step&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">savita singh</dc:creator><pubDate>Mon, 29 Nov 2010 08:23:58 -0000</pubDate><guid>https://sourceforge.net733864216343023105f4c6eca281f080de834700</guid></item><item><title>File Not Found</title><link>https://sourceforge.net/p/shorturl-dotnet/bugs/1/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi. I uploaded this script on &lt;a href="http://smartlabsolution.com" rel="nofollow"&gt;http://smartlabsolution.com&lt;/a&gt; .. everything works fine, but when I get ShortURL and click on it, it leads to 404 error. Please tell me what to do...&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sachin Agrawal</dc:creator><pubDate>Thu, 11 Feb 2010 03:42:52 -0000</pubDate><guid>https://sourceforge.net567b89118a20e7343595127e3da24eca8b4c10d7</guid></item></channel></rss>