[
https://issues.apache.org/jira/browse/FLEX-12260?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mark Kessler closed FLEX-12260.
-------------------------------
> SQLErrorEvent error.message truncates filename
> ----------------------------------------------
>
> Key: FLEX-12260
> URL: https://issues.apache.org/jira/browse/FLEX-12260
> Project: Apache Flex
> Issue Type: Bug
> Components: mx: WindowedApplication
> Affects Versions: Adobe Flex SDK Previous
> Environment: Affected OS(s): Windows
> Affected OS(s): Windows XP
> Browser: Firefox 2.x
> Language Found: English
> Reporter: Adobe JIRA
> Assignee: Mark Kessler
>
> Steps to reproduce:
> 1. Create an AIR application with the following main MXML application:
> <?xml version="1.0" encoding="utf-8"?>
> <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml"
> layout="absolute" creationComplete="test();">
> <mx:Script>
> <![CDATA[
> import flash.filesystem.File;
> import flash.data.SQLConnection;
> private function test():void
> {
> var conn:SQLConnection = new SQLConnection();
> conn.addEventListener(SQLEvent.OPEN, openHandler);
> conn.addEventListener(SQLErrorEvent.ERROR, errorHandler);
> var dbFile:File =
> File.applicationResourceDirectory.resolve("badname.db");
> trace(dbFile.url);
> trace(dbFile.nativePath);
> conn.open(dbFile, false);
> }
>
> public function openHandler(event:SQLEvent):void
> {
> trace("the database was opened successfully");
> }
>
> public function errorHandler(event:SQLErrorEvent):void
> {
> trace("Error code:", event.error.code);
> trace("Details:", event.error.message);
> }
> ]]
> >
> </mx:Script>
> </mx:WindowedApplication>
> 2. Compile and run the application
>
> Actual Results:
> File name in error message is truncated
> Output from above program:
> [SWF] SandboxAIR.swf - 576,841 bytes after decompression
> app-resource:/badname.db
> C:\Work\eclipse-3.3\trunk\SandboxAIR\build\badname.db
> Error code: cannotOpen
> Details: Database file 'C' does not exist.
>
> Expected Results:
> Full filename displayed.
>
> Workaround (if any):
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira