#14 The app shows the wrong files when expanding a node

v0.6.1
closed-fixed
nobody
Core - Bugs (9)
4
2007-08-19
2007-08-19
No

One thing that happened a few times is that the file system tree shows the wrong files when an arbitrary node is expanded.

For example, let's say that the device have a file structure like this:

/Images
+ image1.jpg
+ image2.jpg
+ image3.jpg
/Videos
+video1.3gp
/camera
/Themes
+ theme1.thm
+ theme2.thm
/Other

It was hard to reproduce, but when I expanded the /Videos/camera folder (which is empty), the app rendered the directory structure like follows:

/Images
+ image1.jpg
+ image2.jpg
+ image3.jpg
/Videos
+video1.3gp
/camera
/Images
/Videos
/Themes
/Other
/Themes
+ theme1.thm
+ theme2.thm
/Other

Note that the /Videos/camera folder was filled with the root folders (/Images, /Videos and so forth).

Discussion

  • Daniel Fernandes Martins

    • labels: --> Core - Bugs
    • milestone: --> v0.6.1
    • priority: 5 --> 4
    • status: open --> open-accepted
     
  • Daniel Fernandes Martins

    Logged In: YES
    user_id=1563482
    Originator: YES

    The attached file contains a test that I've done running the obexftp (in the same way that obexftp front-end does). Actually, when the user expands a node in the file system tree, the application runs a command line that looks like that:

    obexftp <conn info> --chmod / --chmod parent --chmod child --chmod child2 --list

    That is, there's one 'chmod' instruction for each level in the directory tree. Well, it works, but this approach have some flaws.

    If you take a look at the attached file, you will notice that one of those 'chmod' instructions failed while the next ones succeeded. This probably confused obexftp which retrieved an invalid file listing.

    I think the solution for this problem is to express the selected folder in only one 'chmod' instruction:

    // the old way
    obexftp <conn info> --chmod / --chmod parent --chmod child --chmod child2 --list

    // the new way
    obexftp <conn info> --chmod /parent/child/child2 --list

    Doing this, if the 'chmod' instruction fails, the obexftp won't retrieve an invalid file listing to the application, which, in turn, won't display it to the user. :)
    File Added: listing.txt

     
  • Daniel Fernandes Martins

    • status: open-accepted --> closed-fixed
     
  • Daniel Fernandes Martins

    Logged In: YES
    user_id=1563482
    Originator: YES

    Fixed.

     

Log in to post a comment.