-
Notifications
You must be signed in to change notification settings - Fork 57
Description
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
});
}
});
});
};