Hybris Upgrade Preview – From 6.1.x.x To 6.2.x.x

This article is briefly listing some obstacles observed while attempting to upgrade the hybris version codebase, from 6.1 to 6.2. This is not an exhaustive list of deprecated extensions, methods or classes, but rather an idea of what sort of things might occur.

getCountryForIsocode(…) is removed from the checkoutFacade, AcceleratorRememberMeServices is modified, and RequestMatcher path has changed.

1/ Removed – getCountryForIsocode(…)

getCountryForIsocode(…) is deprecated and now removed from checkoutFacade. Instead, is has to be called from the i18nFacade.

2/ Modified – AcceleratorRememberMeServices

[yjavac] ERROR in …/storefront/security/AcceleratorRememberMeServices.java (at line 38)
[yjavac] public class AcceleratorRememberMeServices extends TokenBasedRememberMeServices
[yjavac] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[yjavac] Implicit super constructor TokenBasedRememberMeServices() is undefined for default constructor. Must define an explicit constructor

Resolution: add below constructor

public AcceleratorRememberMeServices(final String key, final UserDetailsService userDetailsService)
{
super(key, userDetailsService);
}

3/ Modified – path of RequestMatcher

[yjavac] ERROR in …/storefront/security/ExcludeUrlRequestMatcher.java (at line 23)
[yjavac] import org.springframework.security.web.util.RequestMatcher;
[yjavac] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[yjavac] The import org.springframework.security.web.util.RequestMatcher cannot be resolved

The new path is import org.springframework.security.web.util.matcher.RequestMatcher;

local_offerevent_note November 4, 2016

account_box Mickael


local_offer