SuperKaioken / odbc2kml

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

Remote file upload does not check for empty string #165

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. On Main.aspx and ConnDetails.aspx click "Upload Icon"
2. Click "Save"

What is the expected output? What do you see instead?
 Invalid URI: The URI is empty.
Description: An unhandled exception occurred during the execution of the 
current web request. Please review the stack trace for more information 
about the error and where it originated in the code.

Exception Details: System.UriFormatException: Invalid URI: The URI is 
empty.

Source Error:

Line 107:
Line 108:            //Create a request for the URL.
Line 109:            WebRequest request = WebRequest.Create(URL);
Line 110:            request.Proxy = null;
Line 111:            try

Source File: c:\users\nindoja\desktop\odbc2kml\hci\hci\utilities.cs    
Line: 109

Stack Trace:

[UriFormatException: Invalid URI: The URI is empty.]
   System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind) 
+5427704
   System.Uri..ctor(String uriString) +20
   System.Net.WebRequest.Create(String requestUriString) +35
   HCI.Utilities.URLsubmitClick(Boolean fetch, String URL, String 
fileSaveLoc, String relativeFileSaveLoc) in 
c:\users\nindoja\desktop\odbc2kml\hci\hci\utilities.cs:109
   HCI.ConnDetails.URLsubmitClick(Object sender, EventArgs e) in 
C:\Users\nindoja\Desktop\odbc2kml\hci\HCI\ConnDetails.aspx.cs:2664
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String 
eventArgument) +110

System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaiseP
ostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler 
sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
   System.Web.UI.Page.ProcessRequestMain(Boolean 
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

Should check for empty URL string.

Original issue reported on code.google.com by nind...@gmail.com on 8 Apr 2010 at 8:58

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r545.

Original comment by mbbowser@gmail.com on 8 Apr 2010 at 10:09

GoogleCodeExporter commented 9 years ago
Verified in Main.aspx and ConnDetails.aspx

Original comment by nind...@gmail.com on 10 Apr 2010 at 4:38