[jira] [Commented] (CB-5959) Entry.getMetadata missing size

2014-03-24 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13945910#comment-13945910
 ] 

ASF subversion and git services commented on CB-5959:
-

Commit f84a35f44eb77986b06655c45167af7c31c1d8d1 in cordova-plugin-file's branch 
refs/heads/dev from [~purplecabbage]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-file.git;h=f84a35f ]

CB-5959 size is explicitly 0 if not set, file.spec.4647 are testing the type 
of size


 Entry.getMetadata missing size
 

 Key: CB-5959
 URL: https://issues.apache.org/jira/browse/CB-5959
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugin File
Affects Versions: 3.3.0
 Environment: android all versions
Reporter: Kyle Graehl
Assignee: Ian Clelland
Priority: Trivial
  Labels: newbie
   Original Estimate: 1h
  Remaining Estimate: 1h

 According to http://www.w3.org/TR/file-system-api/#idl-def-Metadata, Metadata 
 should have a size attribute.
 When calling DirectoryEntry.getFile with the {create:true} attribute, it 
 creates a new file. When subsequently calling getMetadata on this entry, it 
 is missing the size attribute (which should be in this case, 0). The 
 lastModified is however, present.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CB-5959) Entry.getMetadata missing size

2014-02-07 Thread Ian Clelland (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13894644#comment-13894644
 ] 

Ian Clelland commented on CB-5959:
--

I've updated the JS side of the plugin, so now it will accept either an integer 
returned from getMetadata, which is taken as a timestamp, or an object with 
keys {{modificationTime}} and {{size}}.

The mobilespec tests now check that size is returned, and is correctly set to 0 
for directories.

Android and iOS are updated to pass these new spec tests.

 Entry.getMetadata missing size
 

 Key: CB-5959
 URL: https://issues.apache.org/jira/browse/CB-5959
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugin File
Affects Versions: 3.3.0
 Environment: android all versions
Reporter: Kyle Graehl
Assignee: Ian Clelland
Priority: Trivial
  Labels: newbie
   Original Estimate: 1h
  Remaining Estimate: 1h

 According to http://www.w3.org/TR/file-system-api/#idl-def-Metadata, Metadata 
 should have a size attribute.
 When calling DirectoryEntry.getFile with the {create:true} attribute, it 
 creates a new file. When subsequently calling getMetadata on this entry, it 
 is missing the size attribute (which should be in this case, 0). The 
 lastModified is however, present.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CB-5959) Entry.getMetadata missing size

2014-02-07 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13894657#comment-13894657
 ] 

ASF subversion and git services commented on CB-5959:
-

Commit 2f371d0ebb5006567450040f7e2bc3417671b828 in branch refs/heads/dev from 
[~iclelland]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-file.git;h=2f371d0 ]

CB-5959: Android: Ensure that directories return size 0


 Entry.getMetadata missing size
 

 Key: CB-5959
 URL: https://issues.apache.org/jira/browse/CB-5959
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugin File
Affects Versions: 3.3.0
 Environment: android all versions
Reporter: Kyle Graehl
Assignee: Ian Clelland
Priority: Trivial
  Labels: newbie
   Original Estimate: 1h
  Remaining Estimate: 1h

 According to http://www.w3.org/TR/file-system-api/#idl-def-Metadata, Metadata 
 should have a size attribute.
 When calling DirectoryEntry.getFile with the {create:true} attribute, it 
 creates a new file. When subsequently calling getMetadata on this entry, it 
 is missing the size attribute (which should be in this case, 0). The 
 lastModified is however, present.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)