Commons VFS
  1. Commons VFS
  2. VFS-315

NullPointerExceptions in WebdavFileObject when fetching properties

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Labels:
      None
    • Environment:

      windows with IIS as webdav host.

      Description

      The WebdavFileObject sometimes throws a NullPointerException in doGetAttributes in the body of the second loop. For some reason, when it goes out to resolve the property, it sometimes is returned as a null DavProperty. When the DavProperty's getName method is called, there's a NPE.

      1. NPE.patch
        1 kB
        David Hausladen

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        54d 18h 10m 1 Ralph Goers 02/Nov/10 14:06
        Resolved Resolved Closed Closed
        9h 16m 1 David Hausladen 02/Nov/10 23:22
        David Hausladen made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Hide
        David Hausladen added a comment -

        Thanks. Sorry I never got around to the test case.

        Show
        David Hausladen added a comment - Thanks. Sorry I never got around to the test case.
        Ralph Goers made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Ralph Goers added a comment - - edited

        I applied the patch and verified that the Webdav functional test still works properly. I reviewed the patch and it looks good to me. Please verify and close.

        Show
        Ralph Goers added a comment - - edited I applied the patch and verified that the Webdav functional test still works properly. I reviewed the patch and it looks good to me. Please verify and close.
        Hide
        James Carman added a comment -

        Please provide a test case that exhibits the issue.

        Show
        James Carman added a comment - Please provide a test case that exhibits the issue.
        David Hausladen made changes -
        Field Original Value New Value
        Attachment NPE.patch [ 12454148 ]
        Hide
        David Hausladen added a comment -

        This patch may be overkill in terms of addressing the specific problem I observed. I didn't feel like dealing with any other NPEs, so I checked all the possible ones for that line.

        Show
        David Hausladen added a comment - This patch may be overkill in terms of addressing the specific problem I observed. I didn't feel like dealing with any other NPEs, so I checked all the possible ones for that line.
        David Hausladen created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            David Hausladen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development