snd297 / braintrust

Automatically exported from code.google.com/p/braintrust
0 stars 0 forks source link

Can not delete layer named '' (no name) #505

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Create a layer named ‘’ (no name) under a patient.  You can’t delete it 
through the web interface (using "remove selected layer') or through the 
toolbox: the web interface makes it seem like the layer is gone, but when you 
reopen the patient the layer is still there (and named 'Default'). The toolbox 
throws this error:

"K>> session.data.removeAnnLayer('')
Error using IEEGDataset/removeAnnLayer (line 742)
Java exception occurred:
edu.upenn.cis.db.mefview.services.IeegWsRemoteException: An error response with 
status 404 (Not Found) was
returned from the server

    at
   edu.upenn.cis.db.mefview.services.IeegWsErrorHandler.responseToException(IeegWsErrorHandler.java:88)

    at
   edu.upenn.cis.db.mefview.services.IeegWsErrorHandler.handleWebApplicationException(IeegWsErrorHandler.java:58)

    at
   edu.upenn.cis.db.mefview.services.TimeSeriesInterface.removeTsAnnotationsByLayer(TimeSeriesInterface.java:785) “

Upon investigation we found that the layer could be removed by deleting all the 
associated annotations. 

Suggest that the functionality should be to prevent users from creating a layer 
with '' as the name.

Original issue reported on code.google.com by jtm...@gmail.com on 30 Mar 2015 at 5:10