SuperKaioken / odbc2kml

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

Description Validation at fault #174

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Click Edit Connection
2.Click Save and Edit
3.In the description copy this 

[FIELD][TBL]msustudentdatalocks[/TBL][COL]                                

INSTALLATION_NAME[/COL][/FIELD]

4.Click Save
5.Click Connections
6.Click generate KML
7.Breakage

What is the expected output? What do you see instead?
Shouldn't break.

Please use labels and text to provide additional information.

Server Error in '/' Application.
Column '                                                                  

                                     INSTALLATION_NAME' does not belong to
table .
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.ArgumentException: Column '                     

       INSTALLATION_NAME' does not belong to table .

Source Error:

Line 274:                        colString = colString.Replace("[COL]", "");
Line 275:                        colString = colString.Replace("[/COL]", "");
Line 276:                        fieldString = (String)row[colString];
Line 277:                        descString = descString1 + fieldString +
descString2;
Line 278:                    }

Source File: C:\Documents and Settings\David\My
Documents\ODBC2KML\hci\HCI\Description.cs    Line: 276

Stack Trace:

[ArgumentException: Column '                                              

                                                         INSTALLATION_NAME'
does not belong to table .]
   System.Data.DataRow.GetDataColumn(String columnName) +1775301
   System.Data.DataRow.get_Item(String columnName) +13
   HCI.Description.parseDesc(DataTable inTable, String descString, String
tableName) in C:\Documents and Settings\David\My
Documents\ODBC2KML\hci\HCI\Description.cs:276
   HCI.KMLGenerator.generateKMLFromConnection(Connection connection) in
C:\Documents and Settings\David\My
Documents\ODBC2KML\hci\HCI\KMLGenerator.cs:127
   HCI.KMLGenerator.generateKML(Int32 connID) in C:\Documents and
Settings\David\My Documents\ODBC2KML\hci\HCI\KMLGenerator.cs:51
   HCI.Main.genKMLFunction(Object sender, EventArgs e) in C:\Documents and
Settings\David\My Documents\ODBC2KML\hci\HCI\Main.aspx.cs:495
   System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +108
   System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String
eventArgument) +118

System.Web.UI.WebControls.ImageButton.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

Version Information: Microsoft .NET Framework Version:2.0.50727.3603;
ASP.NET Version:2.0.50727.3082 

Original issue reported on code.google.com by Spoofed...@gmail.com on 10 Apr 2010 at 5:27

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

Original comment by sweenr...@gmail.com on 10 Apr 2010 at 5:32

GoogleCodeExporter commented 9 years ago
Can't save it now. Good.

Original comment by mbbowser@gmail.com on 10 Apr 2010 at 9:29