{"action":"created","issue":{"url":"https://api.github.com/repos/Kashoo/synctos/issues/300","repository_url":"https://api.github.com/repos/Kashoo/synctos","labels_url":"https://api.github.com/repos/Kashoo/synctos/issues/300/labels{/name}","comments_url":"https://api.github.com/repos/Kashoo/synctos/issues/300/comments","events_url":"https://api.github.com/repos/Kashoo/synctos/issues/300/events","html_url":"https://github.com/Kashoo/synctos/issues/300","id":312908711,"number":300,"title":"Unable to delete document through on sync gateway","user":{"login":"utekau","id":3055148,"avatar_url":"https://avatars2.githubusercontent.com/u/3055148?v=4","gravatar_id":"","url":"https://api.github.com/users/utekau","html_url":"https://github.com/utekau","followers_url":"https://api.github.com/users/utekau/followers","following_url":"https://api.github.com/users/utekau/following{/other_user}","gists_url":"https://api.github.com/users/utekau/gists{/gist_id}","starred_url":"https://api.github.com/users/utekau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/utekau/subscriptions","organizations_url":"https://api.github.com/users/utekau/orgs","repos_url":"https://api.github.com/users/utekau/repos","events_url":"https://api.github.com/users/utekau/events{/privacy}","received_events_url":"https://api.github.com/users/utekau/received_events","type":"User","site_admin":false},"labels":[{"id":387387393,"url":"https://api.github.com/repos/Kashoo/synctos/labels/invalid","name":"invalid","color":"e6e6e6","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-04-10T12:51:45Z","updated_at":"2018-04-11T14:04:51Z","closed_at":"2018-04-10T19:02:37Z","author_association":"NONE","body":"Hi,\r\n\r\nWe found a potential bug when we tried to delete an existing document from couchbase. After sending the delete request, we get an error message like that : \"_Invalid Observation document: item \\\"templateRevisionInfo.schema\\\" must not be null or missing; property \\\"templateRevisionInfo.$schema\\\" is not supported_\". Interestingly, the current document (whose revision is 13-485758e443ba6619454714dd97da51e6) doesn't include any field such that _$schema_, its totally fine in terms of model that we define in configuration. In the past, we successfully update the document field and incremented its revision. I don't understand why it is catched by the rules and the not all allow to delete.\r\n\r\nIn the below you can see the logs from sync gateway.\r\nDocument id: Observation::burakUWP\r\n\r\n`12:22:30.618019 2018-04-10T12:22:30.618Z HTTP:  #165: DELETE /test-dw-uwp/Observation::burakUWP?rev=13-485758e443ba6619454714dd97da51e6 (as ADMIN)\r\n\r\n12:22:30.619367 2018-04-10T12:22:30.619Z CRUD+: Invoking sync on doc \"Observation::burakUWP\" rev 14-25a4aaf359dca656f0416979f50925ff\r\n\r\n12:22:30.622448 2018-04-10T12:22:30.622Z CRUD+: Saving old revision \"Observation::burakUWP\" / \"13-485758e443ba6619454714dd97da51e6\" (2373 bytes)\r\n\r\n12:22:30.625538 2018-04-10T12:22:30.625Z CRUD+: Backed up obsolete rev \"Observation::burakUWP\"/\"13-485758e443ba6619454714dd97da51e6\"\r\n\r\n12:22:30.626791 2018-04-10T12:22:30.626Z CRUD+: updateDoc(\"Observation::burakUWP\"): Rev \"14-25a4aaf359dca656f0416979f50925ff\" causes \"11-80a1e32f34ba86485260926d0d7d558c6c71acf7\" to become current again\r\n\r\n12:22:30.626814 2018-04-10T12:22:30.626Z CRUD+: Invoking sync on doc \"Observation::burakUWP\" rev 11-80a1e32f34ba86485260926d0d7d558c6c71acf7\r\n\r\n12:22:30.627798 2018-04-10T12:22:30.627Z CRUD+: No old revision \"Observation::burakUWP\" / \"10-b96751505f60bea8d9d3d1b2c004a0d82b9dd1e5\"\r\n\r\n12:22:30.629170 2018-04-10T12:22:30.629Z CRUD+: No old revision \"Observation::burakUWP\" / \"9-7a40c2651fa86489ea59de2e6d489864b3d49642\"\r\n\r\n12:22:30.629491 2018-04-10T12:22:30.629Z CRUD+: No old revision \"Observation::burakUWP\" / \"8-2cfd23c5f4d481036028c3a1e0a7dbf13edf6358\"\r\n\r\n12:22:30.630251 2018-04-10T12:22:30.630Z CRUD+: No old revision \"Observation::burakUWP\" / \"7-e5b606fd8bed824fe4eae3e0e72b7a2b92c9732b\"\r\n\r\n12:22:30.630415 2018-04-10T12:22:30.630Z CRUD+: No old revision \"Observation::burakUWP\" / \"6-604e729f28976a2b7b2c5ca79bb6cc1b22c9c9e9\"\r\n\r\n12:22:30.635224 2018-04-10T12:22:30.635Z CRUD+: No old revision \"Observation::burakUWP\" / \"5-eb68b13c6931b91eee54718a3525b3dfeaa451d5\"\r\n\r\n12:22:30.635373 2018-04-10T12:22:30.635Z CRUD+: No old revision \"Observation::burakUWP\" / \"4-015ee135f2c3bdf2a106fec68a065f7cc35c48ba\"\r\n\r\n12:22:30.635509 2018-04-10T12:22:30.635Z CRUD+: No old revision \"Observation::burakUWP\" / \"3-7bf93393bf9533ba52676c58f8d19d93b09eaeb8\"\r\n\r\n12:22:30.635878 2018-04-10T12:22:30.635Z CRUD+: No old revision \"Observation::burakUWP\" / \"2-c175bd6b2f6427a2980338b55f29a3e5480090d1\"\r\n\r\n12:22:30.636013 2018-04-10T12:22:30.636Z CRUD+: No old revision \"Observation::burakUWP\" / \"1-b2d1c7e25553551cd4074a0512a4724d\"\r\n\r\n12:22:30.663009 2018-04-10T12:22:30.662Z Sync fn rejected: new=map[category:My Observations description:Burak Observation Test UWP title:Observation Test 1 _rev:11-80a1e32f34ba86485260926d0d7d558c6c71acf7 form:map[sections:[map[rows:[map[columns:[map[formItems:[map[required:false type:Image cssClass: image:assets/img/Valve.png imagePosition:bottom imageType:fixed question:Acme image:]] colspan:col-xs-4] map[colspan:col-xs-4 formItems:[map[type:Text question:Project: rows:3 cssClass:ciw-text ciw-height-192 orientation:vertical placeholder:... readonly:true required:false answer:Acme Combined-Cycle Power Plant columnWidths:<nil>]]] map[colspan:col-xs-4 formItems:[map[answer:P-ACME-CCP-09345 cssClass:ciw-text ciw-height-192 readonly:true columnWidths:<nil> orientation:vertical placeholder:... question:Number: required:false rows:2 type:Text]]]]] map[columns:[map[formItems:[map[placeholder:Enter ID... question:Database ID: type:Text answer:sddfsf columnWidths:<nil> cssClass:ciw-text orientation...\r\n\r\n12:22:30.663037 2018-04-10T12:22:30.663Z CRUD+: Did not update document \"Observation::burakUWP\" w/ xattr: 403 Invalid Observation document: item \"templateRevisionInfo.schema\" must not be null or missing; property \"templateRevisionInfo.$schema\" is not supported`\r\n\r\n* Synctos: 2.2.1\r\n* Couchbase Server: 5.0.1\r\n* Sync Gateway: 1.5.1(4;cb9522c)\r\n\r\nThanks.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Kashoo/synctos/issues/comments/380463974","html_url":"https://github.com/Kashoo/synctos/issues/300#issuecomment-380463974","issue_url":"https://api.github.com/repos/Kashoo/synctos/issues/300","id":380463974,"user":{"login":"utekau","id":3055148,"avatar_url":"https://avatars2.githubusercontent.com/u/3055148?v=4","gravatar_id":"","url":"https://api.github.com/users/utekau","html_url":"https://github.com/utekau","followers_url":"https://api.github.com/users/utekau/followers","following_url":"https://api.github.com/users/utekau/following{/other_user}","gists_url":"https://api.github.com/users/utekau/gists{/gist_id}","starred_url":"https://api.github.com/users/utekau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/utekau/subscriptions","organizations_url":"https://api.github.com/users/utekau/orgs","repos_url":"https://api.github.com/users/utekau/repos","events_url":"https://api.github.com/users/utekau/events{/privacy}","received_events_url":"https://api.github.com/users/utekau/received_events","type":"User","site_admin":false},"created_at":"2018-04-11T14:04:51Z","updated_at":"2018-04-11T14:04:51Z","author_association":"NONE","body":"Thanks @OldSneerJaw for your investigation. As you mentioned, we didn't configure any conflict resolution mechanism and it resulted as we encountered above. "}}
{"actor":{"display_login":"utekau"}}