View Issue Details

IDProjectCategoryView StatusLast Update
0002616OXID eShop (all versions)4.07. Source code, Testpublic2012-12-10 13:44
Reportertjungcl 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version4.4.7 revision 33396 
Target VersionFixed in Version4.5.3 revision 39087 
Summary0002616: oxuser: addToGroup and inGroup inconsistent
DescriptionThe function addToGroup does not check if the given group exists,
so calling addToGroup('nonsense') is successfull and a new entry is written to oxobject2group.

But: If you call inGroup('nonsense') after adding, the function returns false.

Either inGroup should return true whenever the object2group entry exists, even if the group does not exist, or addToGroup should fail if the group does not exist.
TagsNo tags attached.
Theme
BrowserAll
PHP Versionany
Database Versionany

Activities

tjungcl

2011-03-15 16:00

reporter   ~0004227

Last edited: 2011-03-15 16:01

View 2 revisions

oh, and worse:

if you call removeFromGroup('nonsense') now, inGroup returns false, so removeFromGroup does nothing.

birute_meilutyte

2011-05-06 14:59

reporter   ~0004502

@developers: check from source code side if such issue still exist

arvydas_vapsva

2011-09-09 15:15

reporter   ~0005196

improved oxUser::addToGroup()