<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Posts on Igor Zarvanskyi Blog</title>
        <link>https://clutcher.dev/post/</link>
        <description>Recent content in Posts on Igor Zarvanskyi Blog</description>
        <generator>Hugo -- gohugo.io</generator>
        <language>en</language>
        <copyright>Igor Zarvanskyi</copyright>
        <lastBuildDate>Sun, 22 Nov 2026 14:20:39 +0100</lastBuildDate><atom:link href="https://clutcher.dev/post/rss.xml" rel="self" type="application/rss+xml" /><item>
            <title>How I wrote the &#34;Laminar Software Design&#34; book</title>
            <link>https://clutcher.dev/post/tools/how_i_wrote_a_book_with_claude_code/</link>
            <pubDate>Sat, 03 Oct 2026 12:00:00 +0200</pubDate>
            <guid>https://clutcher.dev/post/tools/how_i_wrote_a_book_with_claude_code/</guid>
            <description>&lt;p&gt;In February 2025 I was looking for a book that I could give to my developers, so that they would know how to write tests. With that in mind I reviewed the draft of the first volume of &lt;em&gt;Angry Tests&lt;/em&gt;, a book about tests by Yegor Bugayenko. I did not agree with everything in it, and while reading it I got the idea to write a book of my own. I did not know how much I had to say, and I worried that it would end at 20 pages, too thin even for a small handbook. So I hoped for at least 100 pages, and I planned about three months of work. The work started in Claude Code on 29 November 2025, so by that plan the book would be done around the end of February. Instead &lt;a class=&#34;link&#34; href=&#34;https://clutcher.dev/book/laminar-software-design/&#34; &gt;Laminar Software Design&lt;/a&gt; became 277 pages and went live on 31 August 2026, after nine months of work instead of three. So where did those nine months go?&lt;/p&gt;</description>
        </item><item>
            <title>Integration tests for SAP Commerce OCC controllers</title>
            <link>https://clutcher.dev/post/hybris/occ_controller_integration_tests/</link>
            <pubDate>Fri, 01 May 2026 10:00:00 +0200</pubDate>
            <guid>https://clutcher.dev/post/hybris/occ_controller_integration_tests/</guid>
            <description>&lt;p&gt;OCC controllers in SAP Commerce are rarely covered by tests that run them with their real configuration. For that reason a misconfigured data mapper or a broken controller mapping shows up only after the server is started and a real request is sent. SAP Commerce already ships test support, which runs this whole chain inside a JUnit test, and below is a recipe for using it.&lt;/p&gt;</description>
        </item><item>
            <title>How to switch between profiles in Claude Code</title>
            <link>https://clutcher.dev/post/hybris/snippets/claude_code_profile_switching/</link>
            <pubDate>Sat, 14 Mar 2026 10:00:00 +0200</pubDate>
            <guid>https://clutcher.dev/post/hybris/snippets/claude_code_profile_switching/</guid>
            <description>&lt;p&gt;Claude Code does not provide native support for switching between multiple accounts or profiles. Having a personal Claude account for side projects and a separate work account for professional tasks means constantly logging in and out to switch between them. This is annoying and error-prone as it is easy to forget which account is active and accidentally use the wrong one.&lt;/p&gt;</description>
        </item><item>
            <title>Server-Sent Events - real world implementation</title>
            <link>https://clutcher.dev/post/hybris/server_sent_events/</link>
            <pubDate>Sun, 23 Mar 2025 08:29:47 +0100</pubDate>
            <guid>https://clutcher.dev/post/hybris/server_sent_events/</guid>
            <description>&lt;p&gt;In SAP Commerce, frontend applications often retrieve the latest data by periodically requesting updates from the server. For instance, this could involve checking for new notifications every few seconds or refreshing a page every 30 seconds to display the most recent content. While straightforward to implement, this approach has notable drawbacks, including increased server load, unnecessary network traffic, and a suboptimal user experience due to update delays.&lt;/p&gt;</description>
        </item><item>
            <title>IntelliJ IDEA Plugins for SAP Commerce/Java Development</title>
            <link>https://clutcher.dev/post/hybris/jetbrains_plugins_for_java_development/</link>
            <pubDate>Tue, 22 Oct 2024 11:01:02 +0100</pubDate>
            <guid>https://clutcher.dev/post/hybris/jetbrains_plugins_for_java_development/</guid>
            <description>&lt;p&gt;Over the past few weeks, I&amp;rsquo;ve found myself answering the same questions about my IntelliJ IDEA plugins repeatedly. Instead of explaining individually, I’ve put together this article as a comprehensive reference for anyone interested in it.&lt;/p&gt;</description>
        </item><item>
            <title>Backoffice widget to display itemtypes with indirect relation</title>
            <link>https://clutcher.dev/post/hybris/backoffice_reference_widget/</link>
            <pubDate>Sun, 15 Sep 2024 10:00:22 +0200</pubDate>
            <guid>https://clutcher.dev/post/hybris/backoffice_reference_widget/</guid>
            <description>&lt;p&gt;In some cases, it is more practical to use an indirect reference between itemtypes by utilizing a string attribute, which stores &lt;code&gt;code&lt;/code&gt;/&lt;code&gt;uid&lt;/code&gt;/etc. This approach is especially useful in situations where regular relation between itemtypes are not possible or efficient.&lt;/p&gt;</description>
        </item><item>
            <title>How to disable OCC endpoints and hide them in Swagger</title>
            <link>https://clutcher.dev/post/hybris/disable_occ_endpoints/</link>
            <pubDate>Sun, 04 Aug 2024 11:41:29 +0100</pubDate>
            <guid>https://clutcher.dev/post/hybris/disable_occ_endpoints/</guid>
            <description>&lt;p&gt;SAP Commerce automatically creates Swagger documentation for all endpoints, including both OOTB and custom ones, as well as those from OOTB extensions like &amp;ldquo;b2bocc&amp;rdquo;. The extensive number of OOTB endpoints can lead to a crowded Swagger interface, making it hard to navigate and find particular endpoint.&lt;/p&gt;</description>
        </item><item>
            <title>Parallelizing FE and BE builds with ant</title>
            <link>https://clutcher.dev/post/hybris/parallel_fe_build_for_storefront_implementations/</link>
            <pubDate>Wed, 24 Apr 2024 10:11:07 +0100</pubDate>
            <guid>https://clutcher.dev/post/hybris/parallel_fe_build_for_storefront_implementations/</guid>
            <description>&lt;p&gt;Many SAP Commerce projects are still using regular storefront approach, often incorporating modern frameworks like Vue.js and using default SAP Commerce build. Implementing parallel execution of FE and BE builds can lead to significant reductions in overall build time. Even for projects utilizing the OOTB Grunt build, parallelization can result in significant time savings. Furthermore, parallelization provides the valuable advantage of decoupling FE and BE builds, enabling developers to skip FE builds when focusing on BE development.&lt;/p&gt;</description>
        </item><item>
            <title>Fix NoClassDefFoundError issue during web unit tests run</title>
            <link>https://clutcher.dev/post/hybris/fix_mockito_codegen_issue/</link>
            <pubDate>Fri, 22 Mar 2024 11:34:07 +0100</pubDate>
            <guid>https://clutcher.dev/post/hybris/fix_mockito_codegen_issue/</guid>
            <description>&lt;p&gt;In some SAP Commerce setups, there is an unusual problem where web unit tests occasionally fail when run with a suppressed tenant. These tests encounter random failures while creating mock classes, resulting in exceptions like &lt;code&gt;java.lang.NoClassDefFoundError: Could not initialize class org.mockito.codegen.&lt;/code&gt;&lt;/p&gt;</description>
        </item><item>
            <title>Ant target to switch between different Solr servers on local env</title>
            <link>https://clutcher.dev/post/hybris/switching_solr_versions_on_local/</link>
            <pubDate>Wed, 28 Feb 2024 11:00:02 +0100</pubDate>
            <guid>https://clutcher.dev/post/hybris/switching_solr_versions_on_local/</guid>
            <description>&lt;p&gt;With Solr 8&amp;rsquo;s support ending in June 2024, it&amp;rsquo;s crucial for local environments to transition to Solr 9. Unlike cloud installations of SAP Commerce (where you can easily switch Solr versions via &lt;code&gt;manifest.json&lt;/code&gt;), local setups encounter difficulties in switching between Solr versions.&lt;/p&gt;</description>
        </item><item>
            <title>How to use same solr index for different index types</title>
            <link>https://clutcher.dev/post/hybris/same_solr_index_for_different_types/</link>
            <pubDate>Fri, 17 Nov 2023 10:14:22 +0200</pubDate>
            <guid>https://clutcher.dev/post/hybris/same_solr_index_for_different_types/</guid>
            <description>&lt;p&gt;There are cases, when it is required to use same solr index to index/search different itemtypes. For example, it is required to have in search box autocompletion different types, like Product and Media. Another common use case would be display on search result page search results of different itemtypes mixed together (for example, Product, Media, custom Resource itemtype).&lt;/p&gt;</description>
        </item><item>
            <title>Changing properties and log levels on storefront nodes on CCv2 from HAC</title>
            <link>https://clutcher.dev/post/hybris/hac_events_ccv2/</link>
            <pubDate>Fri, 01 Sep 2023 15:22:59 +0200</pubDate>
            <guid>https://clutcher.dev/post/hybris/hac_events_ccv2/</guid>
            <description>&lt;p&gt;Changing log level and properties from HAC is often used by developers for various support things. Unfortunately on SAP&#xA;Commerce Cloud (CCv2) there is no more such possibility, as HAC is not available on storefront nodes.&lt;/p&gt;</description>
        </item><item>
            <title>Adoption of Patching Framework</title>
            <link>https://clutcher.dev/post/hybris/patching_framework/</link>
            <pubDate>Sun, 30 Apr 2023 13:42:09 +0200</pubDate>
            <guid>https://clutcher.dev/post/hybris/patching_framework/</guid>
            <description>&lt;p&gt;Patching Framework is a Hybris OOTB framework, which is designed to simplify releasing of new code on production (for example automation of impex execution after new code deployment). Hybris provides a set of interfaces and abstract classes, which allows to write “Patches”, where Patch itself is a Java class that is executed during a system initialization or an update.&lt;/p&gt;</description>
        </item><item>
            <title>SameSite cookie issue with enabled session persistence </title>
            <link>https://clutcher.dev/post/hybris/same_site_session_persistance/</link>
            <pubDate>Mon, 19 Sep 2022 13:27:46 +0300</pubDate>
            <guid>https://clutcher.dev/post/hybris/same_site_session_persistance/</guid>
            <description>&lt;p&gt;In article &lt;a class=&#34;link&#34; href=&#34;https://clutcher.dev/post/hybris/same_site_login_issue/&#34; &gt;SameSite cookie issue in Hybris&lt;/a&gt; is described, how to fix issue with SameSite cookie attribute. But, unfortunately, it is not working with enabled session persistence.&lt;/p&gt;</description>
        </item><item>
            <title>Fix wrong session user during Solr Hot reindex</title>
            <link>https://clutcher.dev/post/hybris/hot_reindex_bug/</link>
            <pubDate>Fri, 24 Dec 2021 10:53:22 +0300</pubDate>
            <guid>https://clutcher.dev/post/hybris/hot_reindex_bug/</guid>
            <description>&lt;p&gt;Solr hot update indexing always uses current session user, for example current backoffice user, who triggered solr hot reindex. In lots of real world cases it would lead to wrong results in solr due to different flexible search restrictions, which are applied to backoffice user and solr indexing user.&lt;/p&gt;</description>
        </item><item>
            <title>ThreadPool for async non-blocking execution</title>
            <link>https://clutcher.dev/post/hybris/thread_pool_for_async_processing/</link>
            <pubDate>Tue, 14 Sep 2021 12:56:54 +0300</pubDate>
            <guid>https://clutcher.dev/post/hybris/thread_pool_for_async_processing/</guid>
            <description>&lt;p&gt;It is a common case to execute requests to third-party systems on Hybris model change. For that purpose perfectly fits Hybris Interceptors, but execution of long-running operations inside interceptors can lead to great performance degradations and data lost. To deal with that, operations should be executed asynchronously in separate thread.&lt;/p&gt;</description>
        </item><item>
            <title>Issue with broken backoffice context during hybris upgrade</title>
            <link>https://clutcher.dev/post/hybris/backoffice_warm_up_fix/</link>
            <pubDate>Fri, 04 Jun 2021 13:14:23 +0300</pubDate>
            <guid>https://clutcher.dev/post/hybris/backoffice_warm_up_fix/</guid>
            <description>&lt;p&gt;During migration on newer version of hybris you could find that Backoffice is not working due to failed context initialization with error in creating &lt;code&gt;&#39;backofficeWarmUpTypeFacadeCaches&#39;&lt;/code&gt; bean. Root cause of that issue is broken itemtype definition in &lt;code&gt;composedtypes&lt;/code&gt; table.&lt;/p&gt;</description>
        </item><item>
            <title>How to add client side (browser) caching</title>
            <link>https://clutcher.dev/post/hybris/add_client_side_cache/</link>
            <pubDate>Wed, 31 Mar 2021 23:13:41 +0300</pubDate>
            <guid>https://clutcher.dev/post/hybris/add_client_side_cache/</guid>
            <description>&lt;p&gt;Modern web development tend to use fronted frameworks with API rest calls to hybris backend. Such approach skips hybris CMS caching system and can lead to performance issues. One of the possible improvement would be to utilize caching on browser side and in such way decrease amount of requests send to server by browser.&lt;/p&gt;</description>
        </item><item>
            <title>SameSite cookie issue in Hybris</title>
            <link>https://clutcher.dev/post/hybris/same_site_login_issue/</link>
            <pubDate>Tue, 18 Aug 2020 14:26:25 +0300</pubDate>
            <guid>https://clutcher.dev/post/hybris/same_site_login_issue/</guid>
            <description>&lt;p&gt;SameSite cookie attribute was introduced to improve protection from CSRF attacks by default (&lt;a class=&#34;link&#34; href=&#34;https://web.dev/samesite-cookies-explained/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;read more&lt;/a&gt;). &lt;a class=&#34;link&#34; href=&#34;https://www.chromium.org/updates/same-site&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;11 August 2020 Chrome&lt;/a&gt; changed default behaviour of cookies without SameSite attribute. Starting from that day such cookies would be processed with SameSite=Lax attribute, so cookies would not be sent by default for all third-party POST requests (request made from third-party service to hybris would be also affected).&lt;/p&gt;&#xA;&lt;p&gt;For example, in case of HOP payment implementation with POST redirect from Payment Provider back to hybris - user will lose his session and see login screen instead of success payment message. Such behaviour encountered due to &amp;ldquo;JSESSIONID&amp;rdquo;, &amp;ldquo;acceleratorSecureGUID&amp;rdquo; and &amp;ldquo;storefrontRememberMe&amp;rdquo; cookies doesn&amp;rsquo;t specify SameSite attribute.&lt;/p&gt;</description>
        </item><item>
            <title>Jenkins script to abort jobs on PR update</title>
            <link>https://clutcher.dev/post/hybris/snippets/abort_jenkins_job_on_pr_update/</link>
            <pubDate>Thu, 06 Aug 2020 14:35:39 +0300</pubDate>
            <guid>https://clutcher.dev/post/hybris/snippets/abort_jenkins_job_on_pr_update/</guid>
            <description>&lt;p&gt;Test runs and sonarqube analysis for hybris projects are time-consuming and almost in each project it is required to abort CI jenkins job on branch update to reduce load on jenkins servers. Unfortunately there is no commonly used generic solution to solve this task.&lt;/p&gt;</description>
        </item><item>
            <title>How to migrate wsimport and JAX-WS on Hybris 1905(Java 11)</title>
            <link>https://clutcher.dev/post/hybris/jaxws_migration_on_hybris_1905/</link>
            <pubDate>Mon, 01 Jun 2020 09:12:27 +0300</pubDate>
            <guid>https://clutcher.dev/post/hybris/jaxws_migration_on_hybris_1905/</guid>
            <description>&lt;p&gt;In Java 11 was removed support of JAX-WS (&lt;a class=&#34;link&#34; href=&#34;https://jcp.org/en/jsr/detail?id=224&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;JSR 224&lt;/a&gt;), and related classes like ant WsImport task, which are highly used in hybris installations for third-party SOAP integrations. For example, cybersource integration extension rely on both wsimport (generates cybersource client from wsdl during ant build) and JAX-WS to execute SOAP requests.&lt;/p&gt;</description>
        </item><item>
            <title>Clean up old data in DB</title>
            <link>https://clutcher.dev/post/hybris/snippets/clean_up_old_data/</link>
            <pubDate>Thu, 07 May 2020 14:51:07 +0300</pubDate>
            <guid>https://clutcher.dev/post/hybris/snippets/clean_up_old_data/</guid>
            <description>&lt;p&gt;Hybris has possibility to clean up old unnecessary data from a database. OOTB is provided CronJob to remove old CronJobs, but there is nothing to clean up custom item types or even Hybris item types, like business processes and task logs.&lt;/p&gt;</description>
        </item><item>
            <title>How to add build information into hybris</title>
            <link>https://clutcher.dev/post/hybris/extend_hybris_properties_with_build_number_data/</link>
            <pubDate>Thu, 30 Apr 2020 13:04:54 +0300</pubDate>
            <guid>https://clutcher.dev/post/hybris/extend_hybris_properties_with_build_number_data/</guid>
            <description>&lt;p&gt;Usually it is extremely useful for QA and dev departments to identify build number on environment and verify that required code changes was really deployed. Unfortunately OOTB hybris doesn&amp;rsquo;t provide any mechanism for that.&lt;/p&gt;</description>
        </item><item>
            <title>Fix maven central http issue</title>
            <link>https://clutcher.dev/post/hybris/maven_central_repository_http_issue/</link>
            <pubDate>Tue, 04 Feb 2020 12:49:37 +0300</pubDate>
            <guid>https://clutcher.dev/post/hybris/maven_central_repository_http_issue/</guid>
            <description>&lt;p&gt;Starting from January 15, 2020 maven central repository is not supporting access via &lt;code&gt;http://repo1.maven.org/maven2&lt;/code&gt; &lt;a class=&#34;link&#34; href=&#34;https://blog.sonatype.com/central-repository-moving-to-https&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;due to security reasons&lt;/a&gt;. Unfortunately under the hood hybris uses &lt;a class=&#34;link&#34; href=&#34;https://maven.apache.org/ant-tasks/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;ant-maven-task&lt;/a&gt;, which is not maintained since 2011 and has hardcoded link to http version of maven central.&lt;/p&gt;</description>
        </item><item>
            <title>Hybris start up optimizations</title>
            <link>https://clutcher.dev/post/hybris/hybris_start_up_optimizations/</link>
            <pubDate>Tue, 28 Jan 2020 16:50:12 +0300</pubDate>
            <guid>https://clutcher.dev/post/hybris/hybris_start_up_optimizations/</guid>
            <description>&lt;p&gt;Most part of long-running hybris projects has issues with hybris start up time. Below could be found tips on how to speed up platform start up.&lt;/p&gt;</description>
        </item><item>
            <title>How to measure execution time of populators</title>
            <link>https://clutcher.dev/post/hybris/snippets/measure_populators_performance/</link>
            <pubDate>Wed, 30 Oct 2019 10:38:54 +0300</pubDate>
            <guid>https://clutcher.dev/post/hybris/snippets/measure_populators_performance/</guid>
            <description>&lt;p&gt;Usually Hybris server has a slow performance in terms of RPS due to wrong usage of coverters and populators in controllers/facades. Main wrong usecases are:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;convert same Model into Data object few times&lt;/li&gt;&#xA;&lt;li&gt;populate Data object with all possible data instead of population only valuable for current page attributes&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;To identify which populators are slow and executed more than once you can use such aspect:&lt;/p&gt;</description>
        </item><item>
            <title>Batch processing of IDOCs with splitting </title>
            <link>https://clutcher.dev/post/hybris/batch_processing_of_idocs_with_splitting/</link>
            <pubDate>Mon, 19 Aug 2019 17:44:34 +0300</pubDate>
            <guid>https://clutcher.dev/post/hybris/batch_processing_of_idocs_with_splitting/</guid>
            <description>&lt;p&gt;OOTB hybris supports splitting of DEBMAS IDOCs by KTOKD. It means that different IDOCs can be processed with different mapping services. But in case of IDOC contains set of DEBMAS with different KTOKD values, all of them would be processed with same mapping service regardless of real KTOKD value. Unfortunately implementation of proper fix requires core changes in datahub IDOC processing, but there is an easier way to fix that issue with performance trade-off.&lt;/p&gt;</description>
        </item><item>
            <title>Hybris CMS issue with pages in multicountry content catalog</title>
            <link>https://clutcher.dev/post/hybris/cms_issue_multicountry_page/</link>
            <pubDate>Tue, 21 May 2019 15:09:09 +0300</pubDate>
            <guid>https://clutcher.dev/post/hybris/cms_issue_multicountry_page/</guid>
            <description>&lt;p&gt;Hybris OOTB have a bug in getting PageModel for multicountry content catalog. Issue is located in &lt;code&gt;DefaultCMSPageService.getPageForId(id)&lt;/code&gt; method, which executes flexible search query for all session catalogs and returns &lt;code&gt;(AbstractPageModel) pages.iterator().next()&lt;/code&gt;. In most cases it will return root global catalog page instead of page from country specific content catalog.&lt;/p&gt;</description>
        </item><item>
            <title>How to limit amount of action retries in business process</title>
            <link>https://clutcher.dev/post/hybris/limit_amount_of_action_retries_in_bp/</link>
            <pubDate>Fri, 26 Apr 2019 14:25:56 +0300</pubDate>
            <guid>https://clutcher.dev/post/hybris/limit_amount_of_action_retries_in_bp/</guid>
            <description>&lt;p&gt;OOTB hybris allows to automatically retry business process action after some time. To do this is enough to set delay in &lt;code&gt;RetryLaterException&lt;/code&gt; and throw it. But there is no OOTB implementation of limiting amount of such retries in business processes.&lt;/p&gt;</description>
        </item><item>
            <title>Util class for dynamic attribute assigning</title>
            <link>https://clutcher.dev/post/hybris/snippets/reflection_utils/</link>
            <pubDate>Fri, 29 Mar 2019 11:41:34 +0300</pubDate>
            <guid>https://clutcher.dev/post/hybris/snippets/reflection_utils/</guid>
            <description>&lt;p&gt;One of the pretty common case in Hybris customizations is to receive master data, for example Products, from external system and use hybris only for minor changes. In such cases business wants to have flexible system, which allows to customize attribute assigning via backoffice, impex files etc.&lt;/p&gt;</description>
        </item><item>
            <title>SQL syntax error in Smartedit Personalization view</title>
            <link>https://clutcher.dev/post/hybris/smartedit_issue_with_personalization_view/</link>
            <pubDate>Thu, 31 Jan 2019 17:35:19 +0300</pubDate>
            <guid>https://clutcher.dev/post/hybris/smartedit_issue_with_personalization_view/</guid>
            <description>&lt;p&gt;In OOTB hybris smartedit throws FlexibleSearch errors on personalization view and most part of customization functionality doesn&amp;rsquo;t work. Exception will inform that there is an error in SQL syntax near UNION ALL.&lt;/p&gt;</description>
        </item><item>
            <title>How to add flexible search restriction for Product with custom session attribute and resolve all exceptions</title>
            <link>https://clutcher.dev/post/hybris/flexible_search_restriction_with_custom_session_attributes/</link>
            <pubDate>Fri, 21 Dec 2018 14:31:04 +0200</pubDate>
            <guid>https://clutcher.dev/post/hybris/flexible_search_restriction_with_custom_session_attributes/</guid>
            <description>&lt;p&gt;OOTB hybris has a powerful &amp;ldquo;Flexible Search Restriction&amp;rdquo; system, which allows transparently restrict access to any hybris item type. Due to flexible search restrictions are implemented on a very low level of hybris ORM time to time unexpected issues can appear even for simple restrictions.&lt;/p&gt;</description>
        </item><item>
            <title>Fix OOTB integration test locale error</title>
            <link>https://clutcher.dev/post/hybris/locale_issue_in_ootb_tests/</link>
            <pubDate>Sun, 25 Nov 2018 10:32:14 +0200</pubDate>
            <guid>https://clutcher.dev/post/hybris/locale_issue_in_ootb_tests/</guid>
            <description>&lt;p&gt;OOTB hybris &lt;code&gt;ant modulegen&lt;/code&gt; generates accelerator with integration tests, which fails if default language of host operation system is not english.&lt;/p&gt;</description>
        </item><item>
            <title>Groovy script to test SAP RFC calls</title>
            <link>https://clutcher.dev/post/hybris/snippets/test_sap_rfc_calls/</link>
            <pubDate>Tue, 09 Oct 2018 20:32:56 +0300</pubDate>
            <guid>https://clutcher.dev/post/hybris/snippets/test_sap_rfc_calls/</guid>
            <description>&lt;p&gt;Sometimes you need to execute RFC into SAP from hybris before implementation.&lt;/p&gt;</description>
        </item><item>
            <title>SAP integration extensions &#39;add by name&#39; issue</title>
            <link>https://clutcher.dev/post/hybris/sap_extensions_issue/</link>
            <pubDate>Mon, 17 Sep 2018 14:12:56 +0300</pubDate>
            <guid>https://clutcher.dev/post/hybris/sap_extensions_issue/</guid>
            <description>&lt;p&gt;Adding any of SAP datahub integration extension in localextensions.xml leads to build error with root cause &lt;code&gt;Extension doesn&#39;t specify a path and no scanned extension was matching the name.&lt;/code&gt;&lt;/p&gt;</description>
        </item><item>
            <title>Add karma test runner to hybris storefront extension</title>
            <link>https://clutcher.dev/post/hybris/karma_test_runner_setup/</link>
            <pubDate>Fri, 24 Aug 2018 20:32:56 +0300</pubDate>
            <guid>https://clutcher.dev/post/hybris/karma_test_runner_setup/</guid>
            <description>&lt;p&gt;Frontend development is not staying on the same place and nowadays in every project you need to run unit tests for javascript.&lt;/p&gt;</description>
        </item><item>
            <title>Tomcat 8.5.32 incompability issue</title>
            <link>https://clutcher.dev/post/hybris/tomcat_8.5.32/</link>
            <pubDate>Mon, 30 Jul 2018 15:40:09 +0300</pubDate>
            <guid>https://clutcher.dev/post/hybris/tomcat_8.5.32/</guid>
            <description>&lt;p&gt;If someone uses custom tomcat for hybris, be aware that latest version of Tomcat 8.5.32 is not compatible with all versions of hybris and datahub due to implementation in Tomcat of &lt;a class=&#34;link&#34; href=&#34;https://javaee.github.io/javaee-spec/download/JavaEE8_Platform_Spec_FinalRelease.pdf&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;Java EE v.8 specification(EE 5.3.3)&lt;/a&gt;, which defines that deployment should fail if the lookup element of an annotation or the lookup-name element in a deployment descriptor entry does not specify a name with an explicit &lt;code&gt;java:&lt;/code&gt; namespace. This breakable changes was added in apache tomcat &lt;a class=&#34;link&#34; href=&#34;https://github.com/apache/tomcat85/commit/bc520553a012cc06ac2e98d0af21aa2187afbd86#diff-6e9cd819242cbf4326a8bb0c5bfde756&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;commit&lt;/a&gt;. Accordint to tomcat&amp;rsquo;s &lt;a class=&#34;link&#34; href=&#34;https://bz.apache.org/bugzilla/show_bug.cgi?id=62527&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;bugzilla&lt;/a&gt; in next release this breaking changes will be reverted.&lt;/p&gt;</description>
        </item><item>
            <title>Smarteditaddon issue in CI/CD pipeline</title>
            <link>https://clutcher.dev/post/hybris/smarteditaddon_issue/</link>
            <pubDate>Sun, 29 Apr 2018 13:31:25 +0300</pubDate>
            <guid>https://clutcher.dev/post/hybris/smarteditaddon_issue/</guid>
            <description>&lt;p&gt;Smartedit works perfectly on local environment, but after deploying on development environment (which is deployed with CI/CD pipeline) smartedit stops responding with endless loading.&lt;/p&gt;</description>
        </item><item>
            <title>Improve test run in hybris</title>
            <link>https://clutcher.dev/post/hybris/improve_hybris_test_run/</link>
            <pubDate>Thu, 11 Jan 2018 17:22:32 +0300</pubDate>
            <guid>https://clutcher.dev/post/hybris/improve_hybris_test_run/</guid>
            <description>&lt;p&gt;OOTB hybris provides &lt;code&gt;ant unittests&lt;/code&gt; command to run unit and integration tests, which are pretty low level and requires additional configuration to simplify run and result collection for DevOps. Below you can find configuration for &lt;code&gt;buildcallbacks.xml&lt;/code&gt;, which you can just copy-paste into any hybris project (version 6.0+) and significantly simplify DevOps job required for setup of CI/CD pipeline.&lt;/p&gt;</description>
        </item><item>
            <title>Skip interceptor for synchronization process</title>
            <link>https://clutcher.dev/post/hybris/snippets/skip_interceptor_on_synchronization/</link>
            <pubDate>Sun, 17 Dec 2017 23:21:26 +0300</pubDate>
            <guid>https://clutcher.dev/post/hybris/snippets/skip_interceptor_on_synchronization/</guid>
            <description>&lt;p&gt;There is a lot of interceptors, which must be not executed while creating/updating items from sync process.&lt;/p&gt;</description>
        </item><item>
            <title>Git scripts to clean repository</title>
            <link>https://clutcher.dev/post/hybris/snippets/useful_git_merge_scripts/</link>
            <pubDate>Tue, 12 Sep 2017 15:21:24 +0300</pubDate>
            <guid>https://clutcher.dev/post/hybris/snippets/useful_git_merge_scripts/</guid>
            <description>&lt;p&gt;As a Team Lead I want to see a clean git repository with branches, which are currently in development and not to see list of 3000+ branches, which was created from the first day of the project. Manual investigation and removing of obsolete branches will take ages, so I created few bash scripts, which will do the work automatically.&lt;/p&gt;</description>
        </item><item>
            <title>Synchronize catalogs from business process</title>
            <link>https://clutcher.dev/post/hybris/catalog_synchronization_in_business_process/</link>
            <pubDate>Tue, 16 May 2017 17:10:04 +0300</pubDate>
            <guid>https://clutcher.dev/post/hybris/catalog_synchronization_in_business_process/</guid>
            <description>&lt;p&gt;Starting catalog synchronization with &lt;code&gt;CatalogVersionSyncJob&lt;/code&gt; in a bussiness process action leads to &lt;em&gt;&amp;ldquo;Error in worker SyncWorker : Entity not found ( pk = 8794627343487 name = &amp;lsquo;de.hybris.platform.persistence.&lt;wbr/&gt;processing_CronJob&amp;rsquo; type code = &amp;lsquo;501&amp;rsquo; db table = &amp;lsquo;cronjobs&amp;rsquo;)&amp;rdquo;&lt;/em&gt;. I didn&amp;rsquo;t find a way to fix such behaviour of syncing inside business process action, but I resolved this issue by triggering event from process action and running SyncJob in event listener. For me sync performs well only via &lt;code&gt;SetupSyncJobService&lt;/code&gt;, performing job via &lt;code&gt;CatalogSynchronizationService&lt;/code&gt; causes exception in SyncWorker.&lt;/p&gt;</description>
        </item><item>
            <title>How to sync prices of base product to its variants</title>
            <link>https://clutcher.dev/post/hybris/price_interceptor/</link>
            <pubDate>Thu, 09 Feb 2017 12:14:08 +0300</pubDate>
            <guid>https://clutcher.dev/post/hybris/price_interceptor/</guid>
            <description>&lt;p&gt;Sometimes simple tasks like &amp;ldquo;On base product price change also change price for all its sub products&amp;rdquo; can lead to long nights of debugging and seeking of workarounds. Sounds like this task should be easy for implementation. Create &lt;code&gt;PrepareInterceptor&lt;/code&gt;, check if price was changed with &lt;code&gt;InterceptorContext.isModified()&lt;/code&gt; method, iterate all sub products and put the new price.&lt;/p&gt;</description>
        </item><item>
            <title>Switch solr client on POST requests</title>
            <link>https://clutcher.dev/post/hybris/switch_solr_client_on_post/</link>
            <pubDate>Thu, 24 Nov 2016 14:04:23 +0300</pubDate>
            <guid>https://clutcher.dev/post/hybris/switch_solr_client_on_post/</guid>
            <description>&lt;p&gt;From time to time I have been receiving from customer support service messages that filter functionality on PLP returns no results. Finally, after 1 year of such messages our QA team was able to reproduce the issue. The root of the issue is too many filters, which causes creation of very long requests, which can&amp;rsquo;t be processed by solr server. Solr server is shipped with Jetty, which has 8KB limit to URL length. You can change this limit by adding &lt;code&gt;&amp;lt;Set name=&amp;quot;requestHeaderSize&amp;quot;&amp;gt; 200000 &amp;lt;/Set&amp;gt;&lt;/code&gt; to &lt;code&gt;server/contexts/solr-jetty-context.xml&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;After discussions with DevOps Lead and Tech Lead we decided that in our case will be better to force hybris solr client to use POST requests instead of GET and don&amp;rsquo;t change solr server OOTB settings (by default Jetty has limitation to 200KB for POST body). Unfortunately hybris doesn&amp;rsquo;t provide any configuration for such switching, and it must be done manually by overriding &lt;code&gt;DefaultFacetSearchStrategy&lt;/code&gt;.&lt;/p&gt;</description>
        </item><item>
            <title>How to print server variables in JSP as JSON</title>
            <link>https://clutcher.dev/post/hybris/snippets/dump_as_json/</link>
            <pubDate>Fri, 12 Aug 2016 15:21:24 +0300</pubDate>
            <guid>https://clutcher.dev/post/hybris/snippets/dump_as_json/</guid>
            <description>&lt;p&gt;For frontend developers usually is not very clear how server variables are injected in JSP and what data is presented in this variables. To simplify their work could be used JSTL function, which will output server variable in json format.&lt;/p&gt;</description>
        </item><item>
            <title>How to speed up groovy scripts</title>
            <link>https://clutcher.dev/post/hybris/snippets/groovy_speed_up/</link>
            <pubDate>Tue, 05 Apr 2016 20:32:56 +0300</pubDate>
            <guid>https://clutcher.dev/post/hybris/snippets/groovy_speed_up/</guid>
            <description>&lt;p&gt;I had a task to optimize user creation and storing. Before changes on each anonymous checkout a new user was creates with ID in format &lt;code&gt;RANDOM_UID|USER_EMAIL&lt;/code&gt;and we had a lot of users who used anonymous checkout more than once. After changes only one user with ID in format &lt;code&gt;USER_EMAIL&lt;/code&gt; for all anonymous checkouts was used. As a part of the task I need to migrate all old users to new format users. First version of moigration script had an execution time took more than 3 days for processing around 7 millions of people.&lt;/p&gt;</description>
        </item><item>
            <title>How to search different itemtypes with one `SolrFacetSearchConfig`</title>
            <link>https://clutcher.dev/post/hybris/solr_category_index/</link>
            <pubDate>Sat, 16 Jan 2016 18:26:23 +0300</pubDate>
            <guid>https://clutcher.dev/post/hybris/solr_category_index/</guid>
            <description>&lt;p&gt;Adding &lt;code&gt;Category&lt;/code&gt; itemtype for indexing doesn&amp;rsquo;t require any specific actions, except adding corresponding changes to &lt;code&gt;solr.impex&lt;/code&gt; files. But in case of two different itemtypes in one &lt;code&gt;SolrFacetSearchConfig&lt;/code&gt; it is not enough just to change impexes you also need to adopt java source code.&lt;/p&gt;</description>
        </item></channel>
</rss>
