Skip to content
This repository was archived by the owner on Jan 27, 2023. It is now read-only.

ExtensionDataService, unable to delete document when Id contains a semicolon #152

Open
strange-v opened this issue Mar 4, 2020 · 0 comments

Comments

@strange-v
Copy link

Steps to reproduce:

  1. Create a document that contains a semicolon in the id property
VSS.getService(VSS.ServiceIds.ExtensionData).then(function(dataService) {
	dataService.setDocument('MyCollection', {
		id: '2020-03-03T15:27:44.01Z',
		text: 'test'
	});
});
  1. Try to remove that document
VSS.getService(VSS.ServiceIds.ExtensionData).then(function(dataService) {
	dataService.deleteDocument('MyCollection', '2020-03-03T15:27:44.01Z');
});

Current result:
"Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://extmgmt.dev.azure.com/User/_apis/Extens…s/ZendeskExtensionLogs/Documents/2020-03-03T15%3A27%3A44.01Z. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing)." in the debug console.
Message: "An undefined error occurred while attempting to connect to the server. Status code 0: error."

Expected result
User should be able to delete an existing document

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant