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 - Bad credentials attempting to open a removed project
Summary: Bad credentials attempting to open a removed project
Status: NEW
Alias: None
Product: connecteddeveloper
Classification: Unclassified
Component: ODCS (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-08 15:53 UTC by Tomas Pavek
Modified: 2016-11-03 13:59 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.