{"action":"created","issue":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/7070","repository_url":"https://api.github.com/repos/spring-projects/spring-boot","labels_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/7070/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/7070/comments","events_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/7070/events","html_url":"https://github.com/spring-projects/spring-boot/issues/7070","id":180312418,"number":7070,"title":"JsonIgnore behavior change in 1.4.1","user":{"login":"seblange","id":22544977,"avatar_url":"https://avatars.githubusercontent.com/u/22544977?v=3","gravatar_id":"","url":"https://api.github.com/users/seblange","html_url":"https://github.com/seblange","followers_url":"https://api.github.com/users/seblange/followers","following_url":"https://api.github.com/users/seblange/following{/other_user}","gists_url":"https://api.github.com/users/seblange/gists{/gist_id}","starred_url":"https://api.github.com/users/seblange/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seblange/subscriptions","organizations_url":"https://api.github.com/users/seblange/orgs","repos_url":"https://api.github.com/users/seblange/repos","events_url":"https://api.github.com/users/seblange/events{/privacy}","received_events_url":"https://api.github.com/users/seblange/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/spring-projects/spring-boot/labels/waiting-for-triage","name":"waiting-for-triage","color":"ededed"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-30T14:05:51Z","updated_at":"2016-09-30T18:45:06Z","closed_at":null,"body":"In Spring boot 1.4.0, the entity hereafter, when exposed through Rest, does not expose fields marked as `@JsonIgnore` (expected behavior), but nevertheless it makes such fields reusable by sort queries.\r\nE.g.: query herafter returns items in expected order\r\nhttp://myhost/productions?sort=creationtime,desc\r\n\r\nHowever, since 1.4.1, the field is also ignored by sort queries... and ites are not returned in the expected order anymore.\r\n\r\nIs it a bug in 1.4.1? Or is it the normal behavior now in 1.4.1?\r\nIn the latter case, is there any way to achieve the same behavior than 1.4.0, including creationtime must be filled in only by backend (not through a http post).\r\n\r\n```java\r\nimport com.fasterxml.jackson.annotation.JsonIgnore\r\nimport groovy.transform.ToString\r\nimport groovy.transform.TypeChecked\r\nimport org.hibernate.annotations.GenericGenerator\r\n\r\nimport javax.persistence.Column\r\nimport javax.persistence.Entity\r\nimport javax.persistence.GeneratedValue\r\nimport javax.persistence.Id\r\nimport java.time.LocalDateTime\r\n\r\n@Entity\r\n@TypeChecked\r\n@ToString\r\nclass Production {\r\n    @Id\r\n    @GeneratedValue(generator = \"uuid\")\r\n    @GenericGenerator(name = \"uuid\", strategy = \"uuid2\")\r\n    UUID id\r\n    \r\n    @Column(name = \"production_name\", nullable = false, length = 100)\r\n    String name\r\n\r\n    @JsonIgnore // ignore this field as far as REST POST/GET is concerned. Yet, it is accessible for sorting but only until Spring Boot <= 1.4.0)\r\n    LocalDateTime creationtime = LocalDateTime.now();\r\n}`\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/comments/250822152","html_url":"https://github.com/spring-projects/spring-boot/issues/7070#issuecomment-250822152","issue_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/7070","id":250822152,"user":{"login":"philwebb","id":519772,"avatar_url":"https://avatars.githubusercontent.com/u/519772?v=3","gravatar_id":"","url":"https://api.github.com/users/philwebb","html_url":"https://github.com/philwebb","followers_url":"https://api.github.com/users/philwebb/followers","following_url":"https://api.github.com/users/philwebb/following{/other_user}","gists_url":"https://api.github.com/users/philwebb/gists{/gist_id}","starred_url":"https://api.github.com/users/philwebb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philwebb/subscriptions","organizations_url":"https://api.github.com/users/philwebb/orgs","repos_url":"https://api.github.com/users/philwebb/repos","events_url":"https://api.github.com/users/philwebb/events{/privacy}","received_events_url":"https://api.github.com/users/philwebb/received_events","type":"User","site_admin":false},"created_at":"2016-09-30T18:45:06Z","updated_at":"2016-09-30T18:45:06Z","body":"That's probably a question for the Spring Data Rest team. @olivergierke might know off the top of his head, but if you think it's a bug please raise an issue at https://jira.spring.io/browse/DATAREST"}}
{"actor":{"display_login":"philwebb"}}