Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#[UIC-2110]:updated sliceoptions in slice formdata #244

Merged
merged 2 commits into from
Sep 17, 2019

Conversation

jitendra-kumawat
Copy link

@jitendra-kumawat jitendra-kumawat commented Sep 10, 2019

CATEGORY

This issue will occur if someone tried to add any slice as subscription layer in chart and that slice have large form_data ( here it is because of unwanted info in* subscriber_layer 's sliceOptions* property) and
While saving slice after updating subscriber layer , REST API (https://rafa001-mgt-01.lab.guavus.com:8443/gateway/rafsso/rvf/dashboardasync/api/read?_flt_0_owners=2)
is called with request headers with more than allowed max HTTP header values (8k) .
Different servers have set default max limit as follows
Apache/Jetty/Nginx/gunicorn - 8K
Tomcat - 8k-48K

Ref links:--
https://www.tutorialspoint.com/What-is-the-maximum-size-of-HTTP-header-values
https://knox.apache.org/books/knox-0-14-0/user-guide.html#Gateway+Server+Configuration

so to fix this issue we have following options

  1. Increase Max limit in Server configuration : At this setup superset is proxied by KNOX server and for KNOX server Request Header values max limit is 8K, so to increase this limit go to Ambari UI and add below property value in Knox Custom gateway-site Tab(updated over setup)
    _gateway.httpserver.requestHeaderBuffer = 10240 _

  2. Check/update/remove unwanted info before Importing dashboard .

  3. Not save slice list in form_data of slice and fetch list on runtime while creating subscription layer as per owner.

,so in this PR implementing 2nd and 3rd approach to fix this issue.

Choose one

  • Bug Fix
  • Enhancement (new features, refinement)
  • Refactor
  • Add tests
  • Build / Development Environment
  • Documentation

SUMMARY

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TEST PLAN

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Requires DB Migration.
  • Confirm DB Migration upgrade and downgrade tested.
  • Introduces new feature or API
  • Removes existing feature or API

REVIEWERS

…ting sliceoptions from subscriberlayer while importing dashboard

not saved sliceoptions in subscriberlayer and removed  existing sliceoptions from subscriberlayer while importing dashboard
sliceoptions will be fetch on runtime

UIC-2110
did review changes

UIC-2110
Copy link

@rasmi-ranjan-guavus rasmi-ranjan-guavus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jitendra-kumawat jitendra-kumawat merged commit 50c4e7f into master Sep 17, 2019
@jitendra-kumawat jitendra-kumawat deleted the fix/UIC-2110-remove-sliceoptions branch September 17, 2019 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants