前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Attachment upload issue in FaaS

Attachment upload issue in FaaS

作者头像
Jerry Wang
发布2021-02-23 09:53:42
6130
发布2021-02-23 09:53:42
举报

Sent: Tuesday, 7 June, 2016 3:08 PM

Rename attachments in MyTask app on FaaS. The root cause of this issue is: the HTTP request header field ‘newfilename’ is missing in Gateway system. And the Gateway team gives us below investigation result. As we discussed, I changed the file rename request to batch request and issue is solved.

But I found the file upload feature is unavailable in all our apps in FaaS. Please kindly refer to the attachment for detail analyzing results. In a short word, the filed ‘slug’(object GUID) is missing when the HTTP request sending to gateway system. From my analysis, you will find that ‘slug’ is a predefined parameter in the framework logic, so I think it should not be discarded in FaaS framework. Cannot find ‘Slug’ parameter from parameters table, the slug is the task GUID which the file is upload to.

The file cannot be uploaded because Task GUID is blank! Task existence check failed!

Checking why the value of slug is missing! Firstly, check the HTTP request send from UI. The header data indeed contains file ‘slug’

When getting the header fields from HTTP request, field ‘slug’ has lost. Errors starts from here!

-----------------------------Check the same call stack on on-premise system -------------------------------------------- The HTTP request send from UI, it has the same structure with FaaS

The header field ‘slug’ has not lost when getting the header fields from HTTP request, but it lost in FaaS GateWay system!

------------------------------Try to fix this issue in Faas------------------------------------------------------------------------- Step1: use Batch request in FaaS fiori UI The HTTP request of file uploading is actually sent from function FileUploader.js->sendFiles(), so we cannot change the request to Batch

Step2: want to try to use ‘useBatch’: true in configuration.js, but the change cannot be tested before codes released to FaaS.

The issue is attachment uploading doesn’t work in faas environment, the reason described in incident is that there is an http request header(named slug) is not allowed in faas.

As we checked our code that this request header is not only consumed by our application code, and further it is mandatory required by SAP gateway framework, you can see in following screen shot of gateway code:

In gateway framework, if it is a media stream type request, it requires an http header named slug.

We think it is not only for our application, but also the media creation request from gateway to faas in generic.

本文参与?腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2019-09-18 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客?前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与?腾讯云自媒体分享计划? ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • Sent: Tuesday, 7 June, 2016 3:08 PM
相关产品与服务
批量计算
批量计算(BatchCompute,Batch)是为有大数据计算业务的企业、科研单位等提供高性价比且易用的计算服务。批量计算 Batch 可以根据用户提供的批处理规模,智能地管理作业和调动其所需的最佳资源。有了 Batch 的帮助,您可以将精力集中在如何分析和处理数据结果上。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档
http://www.vxiaotou.com