This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 253369

Summary: Bad credentials attempting to open a removed project
Product: connecteddeveloper Reporter: Tomas Pavek <tpavek>
Component: ODCSAssignee: Tomas Stupka <tstupka>
Status: NEW ---    
Severity: normal CC: anebuzelsky
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description Tomas Pavek 2015-07-08 15:53:11 UTC
We've got this reported on JDev. Log into a ODCS server and expand the Team window megamenu to see the list of projects. On the web delete one project, then in the IDE select it in the megamenu. An error window appears saying "Bad Credentials".

The error message is misleading for the user, the project is opened, but not working (mostly just printing errors to console when trying to expand Sources, Tasks, etc). The "Bad Credentials" error also most likely comes form accessing the Tasks.

I think we can hardly handle well all possible situations when working with the project (or its tasks) and the project is suddenly deleted on the server.

But perhaps we could try to check the project existence at least when loading it as selected project in the Team window (e.g. when selected from the megamenu and not loaded yet), and also when invoking project reload in the team window (which now simply gets stuck on the loading message).
Comment 1 Tomas Pavek 2015-07-08 15:56:40 UTC
So in the checked situation the user would get a message (maybe just directly in the project area instead of usual Build/Tasks/Sources) that the project does not exist, or the selection would be cleared. But the IDE would not try to use the project.

Anyway, this kind of problem is quite unlikely to happen.