浏览代码

HUE-8610 [tb] Convert GET format to POST for describe table

Romain Rigaux 7 年之前
父节点
当前提交
193582e
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      apps/metastore/src/metastore/views.py
  2. 1 1
      desktop/core/src/desktop/templates/hue.mako

+ 1 - 1
apps/metastore/src/metastore/views.py

@@ -306,7 +306,7 @@ def describe_table(request, database, table):
     LOG.exception("Describe table error")
     raise PopupException(_("DB Error"), detail=e.message if hasattr(e, 'message') and e.message else e)
 
-  if request.GET.get("format", "html") == "json":
+  if request.POST.get("format", "html") == "json":
     return JsonResponse({
         'status': 0,
         'name': table.name,

+ 1 - 1
desktop/core/src/desktop/templates/hue.mako

@@ -246,7 +246,7 @@ ${ hueIcons.symbols() }
         % if user.is_authenticated() and section != 'login' and (cluster != ANALYTIC_DB or IS_MULTICLUSTER_ONLY.get()):
         <div class="dropdown navbar-dropdown pull-right">
           % if IS_MULTICLUSTER_ONLY.get():
-            ## <!-- ko component: { name: 'hue-app-switcher', params: { onPrem: ko.observable(false) } } --><!-- /ko -->
+            <!-- ko component: { name: 'hue-app-switcher', params: { onPrem: ko.observable(false) } } --><!-- /ko -->
           % endif
 
           <%