Skip to content
This repository was archived by the owner on Jan 27, 2023. It is now read-only.
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

@strange-v

Description

@strange-v

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions