| Summary: | Exception on running ChangeArtifactType BLAM - unique to one installation | ||
|---|---|---|---|
| Product: | [Technology] OSEE | Reporter: | Mark D-B <mark.db> |
| Component: | BLAM | Assignee: | Ryan Brooks <ryan.d.brooks> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | ryan.d.brooks, ryan.schmitt |
| Version: | 0.9.1 | ||
| Target Milestone: | 0.9.4 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Mark D-B
Are there any custom internationalization/regional/locale settings? They could be in the OS settings, the JVM settings, the command-line arguments to OSEE, etc. (I assume you've double-checked the validity of the inputs to the BLAM.) This issue is caused by an invalid branch id being stored on this particular user's user artifact. BranchManager.initializeLastBranchValue attempts to resolve the last branch used by the user. This information is stored in the attribute "User Settings" on the "User" artifact. A work around would be to edit the "User Settings" for the portion "<item value="123" key="LastDefaultBranch"/>". You may have to use Ctrl-A to select and then copy the value of the "User Settings" attribute so you can edit it in a text editor and then paste the result back in. I will improve the code so it will automatically recover from this case. Thanks Ryan. Kevin is not in now so I'll try the workaround on Monday. Is the problem likely to have been caused by committing a branch that was open in Artifact Explorer (just want to avoid it happening to another user until updated code is available)? The problem is that the "LastDefaultBranch" setting is set to the empty string "". The case of a non-existent branch is handled gracefully. I don't know how "" ever did get stored there, but committing branches should not do it. Changed BranchManager.initializeLastBranchValue() to gracefully recover from invalid last branch preferences. Also it now uses the branch guid instead of the branch id. This change was committed to trunk in revision 27780 and was also committed to the 0.9.4 branch. Hi Ryan, I am trying to paste the edited setting back into the "User Settings" attribute but it is only accepting the first line. Any ideas? If you're interested, my previous settings were: <?xml version="1.0" encoding="UTF-8"?> <store id="ABAKw6f_nmWkZlUCV8QA"> <item value="AZMdgZtzuUzWtSej7KQA" key="Favorite Branch"/></store> Regards, Kevin (In reply to comment #2) > This issue is caused by an invalid branch id being stored on this particular > user's user artifact. BranchManager.initializeLastBranchValue attempts to > resolve the last branch used by the user. This information is stored in the > attribute "User Settings" on the "User" artifact. > > A work around would be to edit the "User Settings" for the portion "<item > value="123" key="LastDefaultBranch"/>". You may have to use Ctrl-A to select > and then copy the value of the "User Settings" attribute so you can edit it in > a text editor and then paste the result back in. > > I will improve the code so it will automatically recover from this case. Just realised I needed to CtrlA the "User Settings" atribute before I pasted the new settings in. ChangeArtifactType BLAM appears to work now. Thanks, Kevin (In reply to comment #6) > Hi Ryan, > > I am trying to paste the edited setting back into the "User Settings" attribute > but it is only accepting the first line. Any ideas? > > If you're interested, my previous settings were: > <?xml version="1.0" encoding="UTF-8"?> > <store id="ABAKw6f_nmWkZlUCV8QA"> > <item value="AZMdgZtzuUzWtSej7KQA" key="Favorite Branch"/></store> > > Regards, > Kevin > > > > (In reply to comment #2) > > This issue is caused by an invalid branch id being stored on this particular > > user's user artifact. BranchManager.initializeLastBranchValue attempts to > > resolve the last branch used by the user. This information is stored in the > > attribute "User Settings" on the "User" artifact. > > > > A work around would be to edit the "User Settings" for the portion "<item > > value="123" key="LastDefaultBranch"/>". You may have to use Ctrl-A to select > > and then copy the value of the "User Settings" attribute so you can edit it in > > a text editor and then paste the result back in. > > > > I will improve the code so it will automatically recover from this case. OSEE 0.9.4 has been released OSEE 0.9.4 has been released. |