{"action":"created","comment":{"url":"https://api.github.com/repos/fcrepo4/fcrepo4/pulls/comments/63088830","id":63088830,"diff_hunk":"@@ -432,15 +448,31 @@ public Date getLastModifiedDate() {\n         }\n         LOGGER.debug(\"Could not get last modified date property for node {}\", node);\n \n-        final Date createdDate = getCreatedDate();\n         if (createdDate != null) {\n             LOGGER.trace(\"Using created date for last modified date for node {}\", node);\n             return createdDate;\n         }\n \n         return null;\n     }\n+    private long getTimestamp(final String property, final long created) throws RepositoryException {\n+        LOGGER.trace(\"Using {} date\", property);\n+        final long timestamp = getProperty(property).getDate().getTimeInMillis();\n+        if (timestamp < created && created > 0L && !isFrozenResource()) {\n+            LOGGER.trace(\"Updating {} with later created date\", property);\n+            getNode().setProperty(property, created);\n+            return created;\n+        }\n+        return timestamp;\n+    }\n \n+    /**\n+     * Set the last-modified date to the current date.\n+     * @throws RepositoryException\n+     */\n+    public void touch() throws RepositoryException {","path":"fcrepo-kernel-modeshape/src/main/java/org/fcrepo/kernel/modeshape/FedoraResourceImpl.java","position":89,"original_position":89,"commit_id":"b456ebc624ce73dd358abc2acd7d1c783c71e16d","original_commit_id":"b456ebc624ce73dd358abc2acd7d1c783c71e16d","user":{"login":"acoburn","id":1265883,"avatar_url":"https://avatars.githubusercontent.com/u/1265883?v=3","gravatar_id":"","url":"https://api.github.com/users/acoburn","html_url":"https://github.com/acoburn","followers_url":"https://api.github.com/users/acoburn/followers","following_url":"https://api.github.com/users/acoburn/following{/other_user}","gists_url":"https://api.github.com/users/acoburn/gists{/gist_id}","starred_url":"https://api.github.com/users/acoburn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acoburn/subscriptions","organizations_url":"https://api.github.com/users/acoburn/orgs","repos_url":"https://api.github.com/users/acoburn/repos","events_url":"https://api.github.com/users/acoburn/events{/privacy}","received_events_url":"https://api.github.com/users/acoburn/received_events","type":"User","site_admin":false},"body":"I'm not actually sure I understand this suggestion. The `RepositoryException` is an important part of this method because there may be an access denied exception, which is handled further up the stack.","created_at":"2016-05-12T20:13:54Z","updated_at":"2016-05-12T20:13:54Z","html_url":"https://github.com/fcrepo4/fcrepo4/pull/1033#discussion_r63088830","pull_request_url":"https://api.github.com/repos/fcrepo4/fcrepo4/pulls/1033","_links":{"self":{"href":"https://api.github.com/repos/fcrepo4/fcrepo4/pulls/comments/63088830"},"html":{"href":"https://github.com/fcrepo4/fcrepo4/pull/1033#discussion_r63088830"},"pull_request":{"href":"https://api.github.com/repos/fcrepo4/fcrepo4/pulls/1033"}}},"pull_request":{"url":"https://api.github.com/repos/fcrepo4/fcrepo4/pulls/1033","id":68715787,"html_url":"https://github.com/fcrepo4/fcrepo4/pull/1033","diff_url":"https://github.com/fcrepo4/fcrepo4/pull/1033.diff","patch_url":"https://github.com/fcrepo4/fcrepo4/pull/1033.patch","issue_url":"https://api.github.com/repos/fcrepo4/fcrepo4/issues/1033","number":1033,"state":"open","locked":false,"title":"Use a userspace lastmodified property instead of jcr:lastModified","user":{"login":"acoburn","id":1265883,"avatar_url":"https://avatars.githubusercontent.com/u/1265883?v=3","gravatar_id":"","url":"https://api.github.com/users/acoburn","html_url":"https://github.com/acoburn","followers_url":"https://api.github.com/users/acoburn/followers","following_url":"https://api.github.com/users/acoburn/following{/other_user}","gists_url":"https://api.github.com/users/acoburn/gists{/gist_id}","starred_url":"https://api.github.com/users/acoburn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acoburn/subscriptions","organizations_url":"https://api.github.com/users/acoburn/orgs","repos_url":"https://api.github.com/users/acoburn/repos","events_url":"https://api.github.com/users/acoburn/events{/privacy}","received_events_url":"https://api.github.com/users/acoburn/received_events","type":"User","site_admin":false},"body":"Resolves: https://jira.duraspace.org/browse/FCREPO-1742\r\nResolves: https://jira.duraspace.org/browse/FCREPO-1498\r\n\r\nSupersedes #917 ","created_at":"2016-05-03T14:36:03Z","updated_at":"2016-05-12T20:13:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7caed510c651d342a4b6572fdb75cf3605e56dbc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fcrepo4/fcrepo4/pulls/1033/commits","review_comments_url":"https://api.github.com/repos/fcrepo4/fcrepo4/pulls/1033/comments","review_comment_url":"https://api.github.com/repos/fcrepo4/fcrepo4/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fcrepo4/fcrepo4/issues/1033/comments","statuses_url":"https://api.github.com/repos/fcrepo4/fcrepo4/statuses/b456ebc624ce73dd358abc2acd7d1c783c71e16d","head":{"label":"acoburn:fcrepo-1742","ref":"fcrepo-1742","sha":"b456ebc624ce73dd358abc2acd7d1c783c71e16d","user":{"login":"acoburn","id":1265883,"avatar_url":"https://avatars.githubusercontent.com/u/1265883?v=3","gravatar_id":"","url":"https://api.github.com/users/acoburn","html_url":"https://github.com/acoburn","followers_url":"https://api.github.com/users/acoburn/followers","following_url":"https://api.github.com/users/acoburn/following{/other_user}","gists_url":"https://api.github.com/users/acoburn/gists{/gist_id}","starred_url":"https://api.github.com/users/acoburn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acoburn/subscriptions","organizations_url":"https://api.github.com/users/acoburn/orgs","repos_url":"https://api.github.com/users/acoburn/repos","events_url":"https://api.github.com/users/acoburn/events{/privacy}","received_events_url":"https://api.github.com/users/acoburn/received_events","type":"User","site_admin":false},"repo":{"id":25535833,"name":"fcrepo4","full_name":"acoburn/fcrepo4","owner":{"login":"acoburn","id":1265883,"avatar_url":"https://avatars.githubusercontent.com/u/1265883?v=3","gravatar_id":"","url":"https://api.github.com/users/acoburn","html_url":"https://github.com/acoburn","followers_url":"https://api.github.com/users/acoburn/followers","following_url":"https://api.github.com/users/acoburn/following{/other_user}","gists_url":"https://api.github.com/users/acoburn/gists{/gist_id}","starred_url":"https://api.github.com/users/acoburn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acoburn/subscriptions","organizations_url":"https://api.github.com/users/acoburn/orgs","repos_url":"https://api.github.com/users/acoburn/repos","events_url":"https://api.github.com/users/acoburn/events{/privacy}","received_events_url":"https://api.github.com/users/acoburn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/acoburn/fcrepo4","description":"Fedora 4","fork":true,"url":"https://api.github.com/repos/acoburn/fcrepo4","forks_url":"https://api.github.com/repos/acoburn/fcrepo4/forks","keys_url":"https://api.github.com/repos/acoburn/fcrepo4/keys{/key_id}","collaborators_url":"https://api.github.com/repos/acoburn/fcrepo4/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/acoburn/fcrepo4/teams","hooks_url":"https://api.github.com/repos/acoburn/fcrepo4/hooks","issue_events_url":"https://api.github.com/repos/acoburn/fcrepo4/issues/events{/number}","events_url":"https://api.github.com/repos/acoburn/fcrepo4/events","assignees_url":"https://api.github.com/repos/acoburn/fcrepo4/assignees{/user}","branches_url":"https://api.github.com/repos/acoburn/fcrepo4/branches{/branch}","tags_url":"https://api.github.com/repos/acoburn/fcrepo4/tags","blobs_url":"https://api.github.com/repos/acoburn/fcrepo4/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/acoburn/fcrepo4/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/acoburn/fcrepo4/git/refs{/sha}","trees_url":"https://api.github.com/repos/acoburn/fcrepo4/git/trees{/sha}","statuses_url":"https://api.github.com/repos/acoburn/fcrepo4/statuses/{sha}","languages_url":"https://api.github.com/repos/acoburn/fcrepo4/languages","stargazers_url":"https://api.github.com/repos/acoburn/fcrepo4/stargazers","contributors_url":"https://api.github.com/repos/acoburn/fcrepo4/contributors","subscribers_url":"https://api.github.com/repos/acoburn/fcrepo4/subscribers","subscription_url":"https://api.github.com/repos/acoburn/fcrepo4/subscription","commits_url":"https://api.github.com/repos/acoburn/fcrepo4/commits{/sha}","git_commits_url":"https://api.github.com/repos/acoburn/fcrepo4/git/commits{/sha}","comments_url":"https://api.github.com/repos/acoburn/fcrepo4/comments{/number}","issue_comment_url":"https://api.github.com/repos/acoburn/fcrepo4/issues/comments{/number}","contents_url":"https://api.github.com/repos/acoburn/fcrepo4/contents/{+path}","compare_url":"https://api.github.com/repos/acoburn/fcrepo4/compare/{base}...{head}","merges_url":"https://api.github.com/repos/acoburn/fcrepo4/merges","archive_url":"https://api.github.com/repos/acoburn/fcrepo4/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/acoburn/fcrepo4/downloads","issues_url":"https://api.github.com/repos/acoburn/fcrepo4/issues{/number}","pulls_url":"https://api.github.com/repos/acoburn/fcrepo4/pulls{/number}","milestones_url":"https://api.github.com/repos/acoburn/fcrepo4/milestones{/number}","notifications_url":"https://api.github.com/repos/acoburn/fcrepo4/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/acoburn/fcrepo4/labels{/name}","releases_url":"https://api.github.com/repos/acoburn/fcrepo4/releases{/id}","deployments_url":"https://api.github.com/repos/acoburn/fcrepo4/deployments","created_at":"2014-10-21T17:27:47Z","updated_at":"2016-03-14T20:05:55Z","pushed_at":"2016-05-12T18:38:51Z","git_url":"git://github.com/acoburn/fcrepo4.git","ssh_url":"git@github.com:acoburn/fcrepo4.git","clone_url":"https://github.com/acoburn/fcrepo4.git","svn_url":"https://github.com/acoburn/fcrepo4","homepage":"http://github.com/fcrepo4/fcrepo4","size":14266,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"fcrepo4:master","ref":"master","sha":"718fc980fe79653031dd7f2788714112a0cee4b5","user":{"login":"fcrepo4","id":3057565,"avatar_url":"https://avatars.githubusercontent.com/u/3057565?v=3","gravatar_id":"","url":"https://api.github.com/users/fcrepo4","html_url":"https://github.com/fcrepo4","followers_url":"https://api.github.com/users/fcrepo4/followers","following_url":"https://api.github.com/users/fcrepo4/following{/other_user}","gists_url":"https://api.github.com/users/fcrepo4/gists{/gist_id}","starred_url":"https://api.github.com/users/fcrepo4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fcrepo4/subscriptions","organizations_url":"https://api.github.com/users/fcrepo4/orgs","repos_url":"https://api.github.com/users/fcrepo4/repos","events_url":"https://api.github.com/users/fcrepo4/events{/privacy}","received_events_url":"https://api.github.com/users/fcrepo4/received_events","type":"Organization","site_admin":false},"repo":{"id":7992797,"name":"fcrepo4","full_name":"fcrepo4/fcrepo4","owner":{"login":"fcrepo4","id":3057565,"avatar_url":"https://avatars.githubusercontent.com/u/3057565?v=3","gravatar_id":"","url":"https://api.github.com/users/fcrepo4","html_url":"https://github.com/fcrepo4","followers_url":"https://api.github.com/users/fcrepo4/followers","following_url":"https://api.github.com/users/fcrepo4/following{/other_user}","gists_url":"https://api.github.com/users/fcrepo4/gists{/gist_id}","starred_url":"https://api.github.com/users/fcrepo4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fcrepo4/subscriptions","organizations_url":"https://api.github.com/users/fcrepo4/orgs","repos_url":"https://api.github.com/users/fcrepo4/repos","events_url":"https://api.github.com/users/fcrepo4/events{/privacy}","received_events_url":"https://api.github.com/users/fcrepo4/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fcrepo4/fcrepo4","description":"Fedora 4","fork":false,"url":"https://api.github.com/repos/fcrepo4/fcrepo4","forks_url":"https://api.github.com/repos/fcrepo4/fcrepo4/forks","keys_url":"https://api.github.com/repos/fcrepo4/fcrepo4/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fcrepo4/fcrepo4/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fcrepo4/fcrepo4/teams","hooks_url":"https://api.github.com/repos/fcrepo4/fcrepo4/hooks","issue_events_url":"https://api.github.com/repos/fcrepo4/fcrepo4/issues/events{/number}","events_url":"https://api.github.com/repos/fcrepo4/fcrepo4/events","assignees_url":"https://api.github.com/repos/fcrepo4/fcrepo4/assignees{/user}","branches_url":"https://api.github.com/repos/fcrepo4/fcrepo4/branches{/branch}","tags_url":"https://api.github.com/repos/fcrepo4/fcrepo4/tags","blobs_url":"https://api.github.com/repos/fcrepo4/fcrepo4/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fcrepo4/fcrepo4/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fcrepo4/fcrepo4/git/refs{/sha}","trees_url":"https://api.github.com/repos/fcrepo4/fcrepo4/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fcrepo4/fcrepo4/statuses/{sha}","languages_url":"https://api.github.com/repos/fcrepo4/fcrepo4/languages","stargazers_url":"https://api.github.com/repos/fcrepo4/fcrepo4/stargazers","contributors_url":"https://api.github.com/repos/fcrepo4/fcrepo4/contributors","subscribers_url":"https://api.github.com/repos/fcrepo4/fcrepo4/subscribers","subscription_url":"https://api.github.com/repos/fcrepo4/fcrepo4/subscription","commits_url":"https://api.github.com/repos/fcrepo4/fcrepo4/commits{/sha}","git_commits_url":"https://api.github.com/repos/fcrepo4/fcrepo4/git/commits{/sha}","comments_url":"https://api.github.com/repos/fcrepo4/fcrepo4/comments{/number}","issue_comment_url":"https://api.github.com/repos/fcrepo4/fcrepo4/issues/comments{/number}","contents_url":"https://api.github.com/repos/fcrepo4/fcrepo4/contents/{+path}","compare_url":"https://api.github.com/repos/fcrepo4/fcrepo4/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fcrepo4/fcrepo4/merges","archive_url":"https://api.github.com/repos/fcrepo4/fcrepo4/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fcrepo4/fcrepo4/downloads","issues_url":"https://api.github.com/repos/fcrepo4/fcrepo4/issues{/number}","pulls_url":"https://api.github.com/repos/fcrepo4/fcrepo4/pulls{/number}","milestones_url":"https://api.github.com/repos/fcrepo4/fcrepo4/milestones{/number}","notifications_url":"https://api.github.com/repos/fcrepo4/fcrepo4/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fcrepo4/fcrepo4/labels{/name}","releases_url":"https://api.github.com/repos/fcrepo4/fcrepo4/releases{/id}","deployments_url":"https://api.github.com/repos/fcrepo4/fcrepo4/deployments","created_at":"2013-02-03T16:18:55Z","updated_at":"2016-04-19T23:02:38Z","pushed_at":"2016-05-12T19:48:15Z","git_url":"git://github.com/fcrepo4/fcrepo4.git","ssh_url":"git@github.com:fcrepo4/fcrepo4.git","clone_url":"https://github.com/fcrepo4/fcrepo4.git","svn_url":"https://github.com/fcrepo4/fcrepo4","homepage":"http://github.com/fcrepo4/fcrepo4","size":137575,"stargazers_count":63,"watchers_count":63,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":81,"mirror_url":null,"open_issues_count":26,"forks":81,"open_issues":26,"watchers":63,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fcrepo4/fcrepo4/pulls/1033"},"html":{"href":"https://github.com/fcrepo4/fcrepo4/pull/1033"},"issue":{"href":"https://api.github.com/repos/fcrepo4/fcrepo4/issues/1033"},"comments":{"href":"https://api.github.com/repos/fcrepo4/fcrepo4/issues/1033/comments"},"review_comments":{"href":"https://api.github.com/repos/fcrepo4/fcrepo4/pulls/1033/comments"},"review_comment":{"href":"https://api.github.com/repos/fcrepo4/fcrepo4/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fcrepo4/fcrepo4/pulls/1033/commits"},"statuses":{"href":"https://api.github.com/repos/fcrepo4/fcrepo4/statuses/b456ebc624ce73dd358abc2acd7d1c783c71e16d"}}}}