SAP Spartacus 和 SmartEdit 集成的一些 bug:2021-6-29

简介: SAP Spartacus 和 SmartEdit 集成的一些 bug:2021-6-29

2021-6-29 17:03 Michele


嗨,团队,我正在尝试使用 spartacus 和 smartedit,特别是我有兴趣查看选择分阶段产品目录版本的预览模式是否工作正常,但显然不是…我看不到对我在 stage 版本上做的属性,如果我查看浏览器发送到服务器的 occ 调用,我本来希望在每个 occ 调用中总是看到 cmsTicketid 参数,因为据我所知,参数将设置 会话属性,如要使用的目录版本等,并且由于 occ 服务是无状态的,我想每个请求都需要发送 param ,但事实并非如此。


您是否知道有关此功能的任何错误,还是我遗漏了什么?


nevertheless if I have to explain the mechanism I think it should work like this:


(1)we create a preview ticket holding the context informations (content and product catalog version, language, time, …)


(2)then we pass the ticket in every occ request

(3)a filter on the occ web app manage to restore the context in the session (setting language, catalog versions, etc) based on the preview ticket


occ is stateless, it is stateless in terms of session … but there is state in terms of cart, etc.


In practice although it is ‘stateles’ it actually create a session for the length of each request.


but you’ve to pass the ticketid for every request.


代码:https://github.com/SAP/spartacus/blob/develop/feature-libs/smartedit/root/http-interceptors/cms-ticket.interceptor.ts


image.pngissue created:https://github.com/SAP/spartacus/issues/12954

相关文章
|
1月前
使用 SAP UI5 Event Bus 机制,修复 SAP UI5 分页显示数据的一个 bug 试读版
使用 SAP UI5 Event Bus 机制,修复 SAP UI5 分页显示数据的一个 bug 试读版
20 0
|
6月前
|
缓存 负载均衡 前端开发
SAP Spartacus 和 Sticky session 相关的话题
SAP Spartacus 和 Sticky session 相关的话题
38 0
|
6月前
|
安全
Spartacus Storefront 里如何在 SmartEdit 访问环境下暂时禁用 Early login
Spartacus Storefront 里如何在 SmartEdit 访问环境下暂时禁用 Early login
33 0
|
6月前
|
JavaScript 前端开发
什么是 SAP Commerce Cloud SmartEdit 使用的 CKEditor
什么是 SAP Commerce Cloud SmartEdit 使用的 CKEditor
50 0
|
2月前
|
机器学习/深度学习 人工智能 监控
SAP Sales Cloud,Service Cloud 和 SAP BTP 平台上的 AI 集成场景
SAP Sales Cloud,Service Cloud 和 SAP BTP 平台上的 AI 集成场景
64 0
|
3月前
|
JSON 开发者 数据格式
关于 SAP Spartacus LandingPage2Template 区域的 layout 设计实现
关于 SAP Spartacus LandingPage2Template 区域的 layout 设计实现
24 0
|
3月前
|
搜索推荐 开发者 UED
关于 SAP Spartacus 层的 UI 设计
关于 SAP Spartacus 层的 UI 设计
38 0
|
3月前
|
开发者 UED
SAP Spartacus BREAKPOINT 枚举类型在 Spartacus layout 实现中的作用
SAP Spartacus BREAKPOINT 枚举类型在 Spartacus layout 实现中的作用
23 0
|
5月前
|
数据管理 API
什么是 SAP Commerce Cloud 集成扩展包
什么是 SAP Commerce Cloud 集成扩展包
21 1
|
6月前
|
JavaScript 安全 前端开发
Spartacus 如何动态将 SmartEdit attribute 添加到 DOM 里,单步调试
Spartacus 如何动态将 SmartEdit attribute 添加到 DOM 里,单步调试
23 0