Skip to content

can not show patition info and table info #60

@myqq156001980

Description

@myqq156001980

When i click the table want to see the patition informations I got a message: 'access denied' after check the code I found there is no headers: {'X-Shib-AuthInfo': authInfo} info in the request. So can not get the username. The code is in shib.js and below is the issue part.

function show_tables_dialog() {
$('#tables')
.dynatree('destroy')
.empty()
.hide();
$('#tablesdiag').dialog({modal:false, resizable:true, height:400, width:400, maxHeight:650, maxWidth:950});
$('#tablesdiag .loadingimg').show();

var selected = $('#table_pairs option:selected');
var engine = selected.data('engine');
var dbname = selected.data('database');

var get_path = '/tables?engine=' + encodeURIComponent(engine) + '&db=' + encodeURIComponent(dbname);
authGet(get_path, function(data){
$('#tablesdiag .loadingimg').hide();
$('#tables')
.show()
.dynatree({
children: data.map(function(v){return {title: v, key: v, isFolder: true, isLazy: true};}),
autoFocus: false,
autoCollapse: true,
clickFolderMode: 2,
activeVisible: false,
onLazyRead: function(node){

      node.appendAjax({
        url: '/partitions',
        data: { key: node.data.key, engine: engine, db: dbname },
        cache: false
      });
    }
  });

});
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions