Community
Participate
Working Groups
The addition of an artifact repository results in an error dialog that is rather scary and also lacks details. From a UI point of view, we may want to give a less scary error message From a core point of view, we may want to be more precise about the error message returned. For example, we may want to distinguish from an error contacting the host, a bug while parsing the file, the absence of a known repo file, etc.
I agree. We'll need to add a throws clause to the createRepository and loadRepository methods to be able to pass back failure details. I'll take this.
The UI issues are covered in bug #204184 and bug #209520 so marking this as a duplicate. I'm copying the specific info about kinds of errors into bug #209520. *** This bug has been marked as a duplicate of bug 204184 ***
sorry, reopening....I didn't see John's comment...
*** Bug 204186 has been marked as a duplicate of this bug. ***
retitling so this won't appear in my searches. The UI parts are covered elsewhere.
We really need a good answer for this before integrating into the SDK or we'll be annoying users with error dialogs and/or silently logging important problems. Failure to load a repo because the user is disconnected is entirely different than a bogus repo, and there's not a good way currently for the UI to figure out what to do.
Yep, this one's on my list to do in the next week.
John, when you are looking at this can you also take a look at bug #211102?
I have released the API and implementation changes on the metadata repository side. The create.. and load... methods can no longer return null. The exception provides a user-readable message describing why it failed to load. I have also changed the create... method to throw an exception in the case where a repository already exists. Previously the spec said it returned null in this case, but it actually returned the existing repository. It's more logical that create will fail if the repository already exists. Susan, there will likely be some work on your side to surface these exceptions in the UI where appropriate. Currently all exceptions are just logged so the user isn't any wiser.
Thanks...bug #204184 covers the UI side of this, I'll be looking at this during M5.
The same changes have now been made on the artifact repository side