You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Alan Neveu (Created) (JIRA)" <ji...@apache.org> on 2012/04/16 20:44:18 UTC

[jira] [Created] (CB-517) Cannot Remove a FileEntry using PhoneGap 1.6.1

Cannot Remove a FileEntry using PhoneGap 1.6.1
----------------------------------------------

                 Key: CB-517
                 URL: https://issues.apache.org/jira/browse/CB-517
             Project: Apache Callback
          Issue Type: Bug
          Components: WP7
    Affects Versions: 1.6.1
         Environment: VS.NET 2010 with WP7.1 emulator
            Reporter: Alan Neveu
            Assignee: Jesse MacFadyen
            Priority: Critical


Using the latest 1.6.1 for WP7 from GitHub, when my app calls fileEntry.remove I see the following error in the Output window and the file is not removed:

A first chance exception of type 'System.InvalidCastException' occurred in System.ServiceModel.Web.dll

The error actually appears twice for each time the .remove method is called.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CB-517) Cannot Remove a FileEntry using PhoneGap 1.6.1

Posted by "Alan Neveu (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-517?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alan Neveu updated CB-517:
--------------------------

    Priority: Blocker  (was: Critical)

Updated to Blocker status.
                
> Cannot Remove a FileEntry using PhoneGap 1.6.1
> ----------------------------------------------
>
>                 Key: CB-517
>                 URL: https://issues.apache.org/jira/browse/CB-517
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: WP7
>    Affects Versions: 1.6.1
>         Environment: VS.NET 2010 with WP7.1 emulator
>            Reporter: Alan Neveu
>            Assignee: Jesse MacFadyen
>            Priority: Blocker
>
> Using the latest 1.6.1 for WP7 from GitHub, when my app calls fileEntry.remove I see the following error in the Output window and the file is not removed:
> A first chance exception of type 'System.InvalidCastException' occurred in System.ServiceModel.Web.dll
> The error actually appears twice for each time the .remove method is called.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CB-517) Cannot Remove a FileEntry using PhoneGap 1.6.1

Posted by "Jesse MacFadyen (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-517?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jesse MacFadyen resolved CB-517.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 1.7.0

JS fixes only. You can safely add the updated output js file in 1.6.x WP7 Cordova projects.  
Updates will be distributed with 1.7.0
                
> Cannot Remove a FileEntry using PhoneGap 1.6.1
> ----------------------------------------------
>
>                 Key: CB-517
>                 URL: https://issues.apache.org/jira/browse/CB-517
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: WP7
>    Affects Versions: 1.6.1
>         Environment: VS.NET 2010 with WP7.1 emulator
>            Reporter: Alan Neveu
>            Assignee: Jesse MacFadyen
>            Priority: Blocker
>             Fix For: 1.7.0
>
>
> Using the latest 1.6.1 for WP7 from GitHub, when my app calls fileEntry.remove I see the following error in the Output window and the file is not removed:
> A first chance exception of type 'System.InvalidCastException' occurred in System.ServiceModel.Web.dll
> The error actually appears twice for each time the .remove method is called.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (CB-517) Cannot Remove a FileEntry using PhoneGap 1.6.1

Posted by "Jesse MacFadyen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-517?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jesse MacFadyen closed CB-517.
------------------------------

    
> Cannot Remove a FileEntry using PhoneGap 1.6.1
> ----------------------------------------------
>
>                 Key: CB-517
>                 URL: https://issues.apache.org/jira/browse/CB-517
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: WP7
>    Affects Versions: 1.6.1
>         Environment: VS.NET 2010 with WP7.1 emulator
>            Reporter: Alan Neveu
>            Assignee: Jesse MacFadyen
>            Priority: Blocker
>             Fix For: 1.7.0
>
>
> Using the latest 1.6.1 for WP7 from GitHub, when my app calls fileEntry.remove I see the following error in the Output window and the file is not removed:
> A first chance exception of type 'System.InvalidCastException' occurred in System.ServiceModel.Web.dll
> The error actually appears twice for each time the .remove method is called.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (CB-517) Cannot Remove a FileEntry using PhoneGap 1.6.1

Posted by "Alan Neveu (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-517?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13255552#comment-13255552 ] 

Alan Neveu edited comment on CB-517 at 4/17/12 1:24 PM:
--------------------------------------------------------

Good news, I think I found the solution to this one for you.. I added a few lines to the "MonkeyPatch" File section of cordova-1.6.1.js and that seems to have solved it.  Here is my modified File: section of MonkeyPatch, I added the 4 lines starting at "remove"...

File:
	{
		"getFileMetadata":function(arg)
		{
			return  {fullPath:arg[0]};
		},
		"readAsText":function(arg)
		{ //[this.fileName, enc]
			return {fileName:arg[0],encoding:arg[1]};
		},
		"readAsDataURL":function(arg)
		{
			return {fileName:arg[0]};
		},
		"getDirectory":function(arg)
		{
			return {fullPath:arg[0],path:arg[1],options:arg[2]};
		},
        "remove":function(arg) // added by AN, 4/17/12
		{  // added by AN, 4/17/12
			return {fullPath:arg[0]}; // added by AN, 4/17/12
		}, // added by AN, 4/17/12
		"removeRecursively":function(arg)
		{ 
			return {fullPath:arg[0]};
		},
		"getFile":function(arg)
		{
			return {fullPath:arg[0],path:arg[1],options:arg[2]};
		},
		"readEntries":function(arg)
		{
			return {fullPath:arg[0]};
		},
		"write":function(arg)
		{
			return {fileName:arg[0],data:arg[1],position:arg[2]};
		},
		"truncate":function(arg)
		{
			return {fileName:arg[0],size:arg[1]};
		}

	},

Great!
                
      was (Author: offshorewahoo):
    Good news, I think I found the solution to this one for you.. I added a few lines to the "MonkeyPatch" File section of cordova-1.6.1.js and that seems to have solved it.  Here is my modified File: section of MonkeyPatch, I added the 4 lines starting at "remove"...

File:
	{
		"getFileMetadata":function(arg)
		{
			return  {fullPath:arg[0]};
		},
		"readAsText":function(arg)
		{ //[this.fileName, enc]
			return {fileName:arg[0],encoding:arg[1]};
		},
		"readAsDataURL":function(arg)
		{
			return {fileName:arg[0]};
		},
		"getDirectory":function(arg)
		{
			return {fullPath:arg[0],path:arg[1],options:arg[2]};
		},
        "remove":function(arg)
		{ 
			return {fullPath:arg[0]};
		},
		"removeRecursively":function(arg)
		{ 
			return {fullPath:arg[0]};
		},
		"getFile":function(arg)
		{
			return {fullPath:arg[0],path:arg[1],options:arg[2]};
		},
		"readEntries":function(arg)
		{
			return {fullPath:arg[0]};
		},
		"write":function(arg)
		{
			return {fileName:arg[0],data:arg[1],position:arg[2]};
		},
		"truncate":function(arg)
		{
			return {fileName:arg[0],size:arg[1]};
		}

	},

Great!
                  
> Cannot Remove a FileEntry using PhoneGap 1.6.1
> ----------------------------------------------
>
>                 Key: CB-517
>                 URL: https://issues.apache.org/jira/browse/CB-517
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: WP7
>    Affects Versions: 1.6.1
>         Environment: VS.NET 2010 with WP7.1 emulator
>            Reporter: Alan Neveu
>            Assignee: Jesse MacFadyen
>            Priority: Blocker
>
> Using the latest 1.6.1 for WP7 from GitHub, when my app calls fileEntry.remove I see the following error in the Output window and the file is not removed:
> A first chance exception of type 'System.InvalidCastException' occurred in System.ServiceModel.Web.dll
> The error actually appears twice for each time the .remove method is called.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-517) Cannot Remove a FileEntry using PhoneGap 1.6.1

Posted by "Alan Neveu (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-517?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13255552#comment-13255552 ] 

Alan Neveu commented on CB-517:
-------------------------------

Good news, I think I found the solution to this one for you.. I added a few lines to the "MonkeyPatch" File section of cordova-1.6.1.js and that seems to have solved it.  Here is my modified File: section of MonkeyPatch, I added the 4 lines starting at "remove"...

File:
	{
		"getFileMetadata":function(arg)
		{
			return  {fullPath:arg[0]};
		},
		"readAsText":function(arg)
		{ //[this.fileName, enc]
			return {fileName:arg[0],encoding:arg[1]};
		},
		"readAsDataURL":function(arg)
		{
			return {fileName:arg[0]};
		},
		"getDirectory":function(arg)
		{
			return {fullPath:arg[0],path:arg[1],options:arg[2]};
		},
        "remove":function(arg)
		{ 
			return {fullPath:arg[0]};
		},
		"removeRecursively":function(arg)
		{ 
			return {fullPath:arg[0]};
		},
		"getFile":function(arg)
		{
			return {fullPath:arg[0],path:arg[1],options:arg[2]};
		},
		"readEntries":function(arg)
		{
			return {fullPath:arg[0]};
		},
		"write":function(arg)
		{
			return {fileName:arg[0],data:arg[1],position:arg[2]};
		},
		"truncate":function(arg)
		{
			return {fileName:arg[0],size:arg[1]};
		}

	},

Great!
                
> Cannot Remove a FileEntry using PhoneGap 1.6.1
> ----------------------------------------------
>
>                 Key: CB-517
>                 URL: https://issues.apache.org/jira/browse/CB-517
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: WP7
>    Affects Versions: 1.6.1
>         Environment: VS.NET 2010 with WP7.1 emulator
>            Reporter: Alan Neveu
>            Assignee: Jesse MacFadyen
>            Priority: Blocker
>
> Using the latest 1.6.1 for WP7 from GitHub, when my app calls fileEntry.remove I see the following error in the Output window and the file is not removed:
> A first chance exception of type 'System.InvalidCastException' occurred in System.ServiceModel.Web.dll
> The error actually appears twice for each time the .remove method is called.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira