Bug #11252
New Session functionality is broken for the virtual desktop mode
100%
Related issues
History
#1 Updated by Sergey Ivanovskiy 5 months ago
Created 11252a branch for the fix, #9709-620 for the root cause of this issue
#2 Updated by Sergey Ivanovskiy 5 months ago
- Related to Support #9709: Needed: Basic example of configuring separate client and server added
#4 Updated by Sergey Ivanovskiy 5 months ago
Stanislav, SecurityManager.getInstance().getUserId() never returns null value. If an account is not detected in SecurityCache sc = ctx.getCache();, then it returns "". If an account is detected, this function can return account.getSubjectId() for the process account. Can this method of EnhancedBrowseConfigManager get a null parameter from the subjectId?
private EnhancedBrowseConfig getCachedEnhancedConfig(String userId,
BrowseKey configKey)
{
Map<EhBrowseConfigKey, EnhancedBrowseConfig> cfg = userId == null ? configs : userConfigs.get();
ReadWriteLock lock = userId == null ? configsLock : userConfigsLock.get();
lock.readLock().lock();
try
{
return cfg.get(new EhBrowseConfigKey(userId, configKey));
}
finally
{
lock.readLock().unlock();
}
}
#5 Updated by Sergey Ivanovskiy 5 months ago
This code :
// config will be saved on the client side, set the user name
case USER_DEFAULT:
config.userName = SecurityManager.getInstance().getUserId();
config.ehKeyBrowseName = null;
config.ehUniqueKey = null;
config.ehKeyProcName = null;
config.columnConfigs = null;
config.ehStartColumnKeys = null;
break;
case BROWSE_SPECIFIC_USER:
config.userName = SecurityManager.getInstance().getUserId();
break;
is using
userId/storageId for config.userName.#6 Updated by Sergey Ivanovskiy 5 months ago
- % Done changed from 0 to 90
- Status changed from WIP to Review
Please review the changes rev 16443 (11252a).
#7 Updated by Sergey Ivanovskiy 5 months ago
- % Done changed from 90 to 100
New Session functionality is working properly with these changes.
Stanislav, Constantin, please review.
#8 Updated by Sergey Ivanovskiy 5 months ago
Is there a chance for 11252a will be reviewed this week?
#9 Updated by Stanislav Lomany 5 months ago
Sorry for delay, I'm working on an immediate-priority task. I'll review today!
#10 Updated by Sergey Ivanovskiy 5 months ago
Stanislav, thank you!
#11 Updated by Stanislav Lomany 5 months ago
16443 (11252a).
Looks good! Few javadocs are missing:
private final int accountType;
private TYPE(int type)
{
accountType = type;
}
Constantin, could you also take a quick look?
#12 Updated by Sergey Ivanovskiy 5 months ago
Stanislav, I rebased and fixed java doc, cleaned the code rev 16450.(11252a). Please review.
#13 Updated by Stanislav Lomany 5 months ago
16450.(11252a).
It is good. Minor thing: I may guess that according to our coding standards enum TYPE should be called Type.
#14 Updated by Sergey Ivanovskiy 5 months ago
Stanislav, thank you for findings. Those issues fixed in rev 16451(11252a).
#15 Updated by Stanislav Lomany 5 months ago
rev 16451(11252a).
It's good.
#17 Updated by Stanislav Lomany 5 months ago
I would also like Constantin to take a quick look at the update.
#18 Updated by Constantin Asofiei 5 months ago
Stanislav Lomany wrote:
I would also like Constantin to take a quick look at the update.
I'm OK with the changes.
#19 Updated by Constantin Asofiei 5 months ago
Stanislav, can we merge this? Did you do any testing?
#20 Updated by Stanislav Lomany 5 months ago
I just executed ChUI regression testing for the case. Yes, I think we can merge.
#21 Updated by Sergey Ivanovskiy 5 months ago
Can 11252a be merged into the trunk?
#22 Updated by Stanislav Lomany 5 months ago
Yes.
#23 Updated by Stanislav Lomany 5 months ago
Sorry, I messed up the task
#24 Updated by Stanislav Lomany 5 months ago
Please disregard my messages 20 and 22.
Stanislav, can we merge this? Did you do any testing?
I checked that saving enhanced browse configurations still works. Not sure what else to check. I think we can merge.
#26 Updated by Alexandru Lungu 5 months ago
- Status changed from Review to Merge Pending
Yes. Stanislav, please merge after 11227a.
#28 Updated by Alexandru Lungu 5 months ago
Actually it is Sergey to do the merge.
Sorry about that.
#29 Updated by Sergey Ivanovskiy 5 months ago
OK. Rebasing 11252a.
#30 Updated by Sergey Ivanovskiy 5 months ago
- Status changed from Merge Pending to Internal Test
11252a merged into the trunk as rev 16459 and archived.
#31 Updated by Sergey Ivanovskiy 5 months ago
- Status changed from Internal Test to Test
#32 Updated by Sergey Ivanovskiy 4 months ago
This functionality is broken again in the trunk by rev 16477 and the fix is committed into 9709d branch.