Bug #1869
Deleting entries doesn't work on Splunk 6.6
Start date:
05/20/2017
Due date:
% Done:
100%
Description
It works, but then generates a 500 error.
Associated revisions
Fixed issue in which an error was generated when you attempted to delete rows
Reference #1869
History
#1 Updated by Luke Murphey over 7 years ago
This works:
curl -k -u admin:changeme -X DELETE https://localhost:8089/servicesNS/nobody/lookup_editor/storage/collections/data/Test/5920ddbb0ffdd530641cd538
But calling if from Splunkd doesn't.
#2 Updated by Luke Murphey over 7 years ago
Network Tools works but it is using the _raw endpoint:
http://127.0.0.1:8000/en-US/splunkd/__raw/servicesNS/nobody/network_tools/storage/collections/data/network_hosts/5920e8ed0ffdd59ac371a282
#3 Updated by Luke Murphey over 7 years ago
kvstore.js seems to do this correctly. I could use this instead.
// Destroy model with specific key var model = new MyModel({ _key: '5447fb752dbbb628d0224132' }); model.destroy() .done(function() { console.log('Model delete from server); });
#4 Updated by Luke Murphey over 7 years ago
I might want to replace the ajax call with something like this:
this.kvStoreModel = KVStore.Model.extend({ collectionName: this.lookup, namespace: { 'owner' : this.owner } }); var model = new this.kvStoreModel({ _key: _key }); model.destroy() .done(function() { console.info('KV store entry removal completed for entry ' + _key); this.hideWarningMessage(); this.updateTimeModified(); } );
#5 Updated by Luke Murphey over 7 years ago
To use the KV store model, I should:
- Have the KVStoreModel initialized on KV store load so that no one else has to reinitialize it.
- Add the fail handlers for the delete routines.
- Look for other instances of direct AJAX calls; replace them.
#6 Updated by Luke Murphey over 7 years ago
- % Done changed from 0 to 50
#7 Updated by Luke Murphey over 7 years ago
- Status changed from New to Closed
- % Done changed from 50 to 100