{"action":"created","issue":{"url":"https://api.github.com/repos/DANS-KNAW/dans-dbf-lib/issues/1","repository_url":"https://api.github.com/repos/DANS-KNAW/dans-dbf-lib","labels_url":"https://api.github.com/repos/DANS-KNAW/dans-dbf-lib/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/DANS-KNAW/dans-dbf-lib/issues/1/comments","events_url":"https://api.github.com/repos/DANS-KNAW/dans-dbf-lib/issues/1/events","html_url":"https://github.com/DANS-KNAW/dans-dbf-lib/issues/1","id":136796474,"number":1,"title":"Opening read only DBF file throws java.io.FileNotFoundException","user":{"login":"simoc","id":1910647,"avatar_url":"https://avatars.githubusercontent.com/u/1910647?v=3","gravatar_id":"","url":"https://api.github.com/users/simoc","html_url":"https://github.com/simoc","followers_url":"https://api.github.com/users/simoc/followers","following_url":"https://api.github.com/users/simoc/following{/other_user}","gists_url":"https://api.github.com/users/simoc/gists{/gist_id}","starred_url":"https://api.github.com/users/simoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simoc/subscriptions","organizations_url":"https://api.github.com/users/simoc/orgs","repos_url":"https://api.github.com/users/simoc/repos","events_url":"https://api.github.com/users/simoc/events{/privacy}","received_events_url":"https://api.github.com/users/simoc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-02-26T19:51:52Z","updated_at":"2016-03-03T10:26:35Z","closed_at":"2016-03-03T10:26:35Z","body":"If my DBF file has write permission then it is opened successfully. However, if my DBF file is read-only, then the method Table.open() throws an java.io.FileNotFoundException. For example,\r\n\r\n    $ ls -l /tmp/sample.dbf \r\n    -r--r--r-- 1 simoc simoc 225 Feb 26 20:23 /tmp/sample.dbf\r\n\r\nthe following Java code:\r\n\r\n    Table t = new Table(new File(\"/tmp/sample.dbf\"));\r\n    t.open();\r\n\r\nresults in:\r\n\r\n    java.io.FileNotFoundException: /tmp/sample.dbf (Permission denied)\r\n\tat java.io.RandomAccessFile.open0(Native Method)\r\n\tat java.io.RandomAccessFile.open(RandomAccessFile.java:316)\r\n\tat java.io.RandomAccessFile.<init>(RandomAccessFile.java:243)\r\n\tat nl.knaw.dans.common.dbflib.Table.open(Table.java:273)\r\n\tat nl.knaw.dans.common.dbflib.Table.open(Table.java:257)\r\n\tat nl.knaw.dans.common.dbflib.Runner4.main(Runner4.java:12)\r\n"},"comment":{"url":"https://api.github.com/repos/DANS-KNAW/dans-dbf-lib/issues/comments/191696264","html_url":"https://github.com/DANS-KNAW/dans-dbf-lib/issues/1#issuecomment-191696264","issue_url":"https://api.github.com/repos/DANS-KNAW/dans-dbf-lib/issues/1","id":191696264,"user":{"login":"janvanmansum","id":3862694,"avatar_url":"https://avatars.githubusercontent.com/u/3862694?v=3","gravatar_id":"","url":"https://api.github.com/users/janvanmansum","html_url":"https://github.com/janvanmansum","followers_url":"https://api.github.com/users/janvanmansum/followers","following_url":"https://api.github.com/users/janvanmansum/following{/other_user}","gists_url":"https://api.github.com/users/janvanmansum/gists{/gist_id}","starred_url":"https://api.github.com/users/janvanmansum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janvanmansum/subscriptions","organizations_url":"https://api.github.com/users/janvanmansum/orgs","repos_url":"https://api.github.com/users/janvanmansum/repos","events_url":"https://api.github.com/users/janvanmansum/events{/privacy}","received_events_url":"https://api.github.com/users/janvanmansum/received_events","type":"User","site_admin":false},"created_at":"2016-03-03T10:26:35Z","updated_at":"2016-03-03T10:26:35Z","body":"Thanks for contributing your patch :+1: "}}