cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to access instore

Former Member
0 Kudos

I'm trying to access the instore backoffice with an existing user in the OOTB 6.2 and not able to either use an existing one to access it or create one to be able to do so.

It looks there is an extension called instoresampledata that will generate this users but I do not seem to have this extension included with my current lisencing. Also trying to create a user following instructions here but they are meant for the hmc and I'm not able to actually do the same in backoffice.

Has anyone accomplished to do this and can share how? Any other tips or comments also appreciated.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Ignacio,

We found an issue with the login and to fix it you just need to change these lines in the file instore/web/webroot/WEB-INF/instore-spring-security.xml (minus = lines to be removed, plus = lines to be added)

 -        <intercept-url pattern="/**" access="isAuthenticated()" />
 -        <form-login
 -                       always-use-default-target="false"
 -                       login-page="/login.zul"
 -                       authentication-failure-url="/login.zul?login_error=1"/>
 -               <logout/>
 +        <intercept-url pattern="/**" />
 +        <form-login always-use-default-target="false"
 +                    login-page="/login.zul"
 +                    authentication-failure-url="/login.zul?login_error=1"
 +                    username-parameter="j_username"
 +                    password-parameter="j_password"
 +                    login-processing-url="/j_spring_security_check"
 +                    />
 +        <logout logout-url="/j_spring_security_logout" logout-success-url="/login.zul"/>

And to facilitate your test setup, you can import the impex below using hAC:

 INSERT_UPDATE UserGroup;uid[unique=true];locname[lang=de];locname[lang=en];groups(uid)
 ;instoreemployeesgroup;In-Store-Gruppe;In-Store Employee Group;employeegroup
 
 INSERT_UPDATE SearchRestriction;code[unique=true];name[lang=en];query;restrictedType(code);principal(uid);active[default=true];generate[default=false];
 ;inStoreProductVisibility;"In-Store Product Visibility";"{item:catalogVersion} IN (?session.catalogversions)";Product;instoreemployeesgroup;
 
 # this user rights definition relates to ws tests
 $START_USERRIGHTS;;;;;;;;;
 Type;UID;MemberOfGroups;Password;Target;read;change;create;remove;change_perm
 UserGroup;instoreemployeesgroup;;;;;;;;
 ;;;;ComposedType;+;+;+;+
 ;;;;Catalog;+;+;+;+
 ;;;;ContentCatalog;+;+;+;+
 ;;;;CatalogVersion;+;+;+;+
 ;;;;Category;+;+;+;+
 ;;;;Product;+;+;+;+
 ;;;;Unit;+;+;+;+
 ;;;;Media;+;+;+;+
 ;;;;MediaContainer;+;+;+;+
 ;;;;MediaFormat;+;+;+;+
 $END_USERRIGHTS;;;;;
 
 #=========//=========//=========
 
 $defaultPassword=1234
 
 # store employees  groups per store
 INSERT_UPDATE StoreEmployeeGroup;uid[unique=true];locname[lang=de];locname[lang=en];groups(uid);store(name)
 ;nakanoStoreEmployees;Nakano Arbeiter Gruppe;Nakano Employees Group;instoreemployeesgroup;Nakano
 ;shinbashiStoreEmployees;Shinbashi Arbeiter Gruppe;Shinbashi Employees Group;instoreemployeesgroup;Shinbashi
 ;misatoStoreEmployees;Misato Arbeiter Gruppe;Misato Employees Group;instoreemployeesgroup;Misato
 
 # employees - members of store employees groups.
 INSERT_UPDATE Employee;UID[unique=true];password[default=$defaultPassword];description;name;groups(uid)[mode=append];sessionLanguage(isocode)
 ;nakano-employee;;Nakano Employee;Nakano Employee;nakanoStoreEmployees;en;
 ;shinbashi-employee;;Shinbashi Employee;Shinbashi Employee;shinbashiStoreEmployees;en;
 ;misato-employee;;Misato Employee;Misato Employee;misatoStoreEmployees;en;
 
Former Member
0 Kudos

Brilliant, worked like a charm. Looks like spring security configuration was missing, figure this will be resolved in future releases. Thanks very much for your help.

Former Member
0 Kudos

I did a build of 6.3 with instore - the issue is still there and the fix kindly shared above is still necessary.

Former Member
0 Kudos

Followed the same approach. But still not able to login. Any help on this please.

Answers (1)

Answers (1)

former_member632755
Active Contributor
0 Kudos

Hi,

I have redirecteds the question to the responisble team.

Cheers, Wojtek

Former Member
0 Kudos

That's great. Thanks very much. However how will I be able to follow up on the status of this issue?

Former Member
0 Kudos

Hi Ignacio,

The issue is under investigation and you'll have an answer until at beginning of next week.

Cheers, Andre

Former Member
0 Kudos

That's great. Thanks very much for your help.