Community
Participate
Working Groups
Created attachment 165808 [details] stack trace An IllegalStateException was logged in the Error Log when I deleted a Web 2.5 project. See the attached stack trace.
Assigning to Chuck for initial investigation. We fixed something similar not too long ago- there needs to be a check to see if the project is being closed/deleted before we try getting the resource set.
sending back to Kaloyan... The ModelProvider class needs to check id the project is accesible (because its being deleted) and fail gracefully.
Dimitar, please change the logic in the ModelProvider as Chuck suggests.
Created attachment 168899 [details] fix This adds a check if the project is accessible during getModelObject call, and throws exception if it is not. Additionally in content providers if the project is not accessible creation of the DD node is canceled and the provider is not added to the cache.
Chuck can you review this.
approve - This is a good change - but we need to test Please test this well.. I don't see any fixes for catching these exceptions... do we handle gracefully?
* Exception is thrown on deletion of Web 2.5 project in console and error log. * no workaround * Fix was tested manually * The fix adds a check for inaccessible projects on model request operation, if the project is not accessible IllegalArgumentException is thrown with correct message. Additionally the Content providers for the model are altered to try not to acquire the model children if the project is not accessible. * low risk - since effectively the model is now throwing the same exception, but with correct message.
committed and released in HEAD.