Skip to content

Commit

Permalink
Merge branch 'devel' into JoshuaSBrown-feature-add-admin-script
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaSBrown committed Feb 10, 2024
2 parents ce82f0b + 87585e9 commit 9144f30
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
6. [927] - Add vim swp files to .gitignore
7. [935] - Fixed CI branching with dynamic children, swiched to Harbor registry.
Moved Blake's files into the correct folders.
8. [924] - Fix log messaging format in web server

# v2023.10.23.15.50

Expand Down
2 changes: 1 addition & 1 deletion cmake/Version.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ set(DATAFED_FOXX_API_PATCH 0)

set(DATAFED_WEB_MAJOR 0)
set(DATAFED_WEB_MINOR 0)
set(DATAFED_WEB_PATCH 1)
set(DATAFED_WEB_PATCH 2)

set(DATAFED_REPO_MAJOR 0)
set(DATAFED_REPO_MINOR 0)
Expand Down
12 changes: 6 additions & 6 deletions web/datafed-ws.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ app.get('/ui/welcome', (a_req, a_resp) => {

app.get('/ui/main', (a_req, a_resp) => {
if ( a_req.session.uid && a_req.session.reg ){
logger.info('/ui/main', getCurrentLineNumber(), "Access main (", a_req.session.uid, ") from", a_req.connection.remoteAddress );
logger.info('/ui/main', getCurrentLineNumber(), "Access main (" + a_req.session.uid + ") from " + a_req.connection.remoteAddress );

var theme = a_req.cookies['datafed-theme'] || "light";
const nonce = crypto.randomBytes(16).toString('base64');
Expand All @@ -327,7 +327,7 @@ app.get('/ui/register', (a_req, a_resp) => {
logger.info('/ui/register', getCurrentLineNumber(), " - already registered, go to /ui/main");
a_resp.redirect( '/ui/main' );
} else {
logger.info('/ui/register', getCurrentLineNumber(), " - registration access (", a_req.session.uid, ") from", a_req.connection.remoteAddress );
logger.info('/ui/register', getCurrentLineNumber(), " - registration access (" + a_req.session.uid + ") from " + a_req.connection.remoteAddress );

var theme = a_req.cookies['datafed-theme'] || "light";
const clean = sanitizeHtml( a_req.session.name );
Expand All @@ -346,7 +346,7 @@ app.get('/ui/login', (a_req, a_resp) => {
if ( a_req.session.uid && a_req.session.reg ){
a_resp.redirect( '/ui/main' );
} else {
logger.info('/ui/login', getCurrentLineNumber(), "User (", a_req.session.uid, ") from", a_req.connection.remoteAddress, "log-in" );
logger.info('/ui/login', getCurrentLineNumber(), "User (" + a_req.session.uid + ") from " + a_req.connection.remoteAddress + "log-in" );

var uri = g_globus_auth.code.getUri();
a_resp.redirect(uri);
Expand All @@ -355,7 +355,7 @@ app.get('/ui/login', (a_req, a_resp) => {


app.get('/ui/logout', (a_req, a_resp) => {
logger.info('/ui/logout', getCurrentLineNumber(), "User (", a_req.session.uid, ") from", a_req.connection.remoteAddress, "logout" );
logger.info('/ui/logout', getCurrentLineNumber(), "User (" + a_req.session.uid + ") from " + a_req.connection.remoteAddress + " logout" );

//a_resp.clearCookie( 'datafed-id' );
//a_resp.clearCookie( 'datafed-user', { path: "/ui" } );
Expand Down Expand Up @@ -412,7 +412,7 @@ app.get('/ui/authn', ( a_req, a_resp ) => {
var userinfo = JSON.parse( data ),
uid = userinfo.username.substr( 0, userinfo.username.indexOf( "@" ));

logger.info('/ui/authn', getCurrentLineNumber(), 'User', uid, 'authenticated, verifying DataFed account' );
logger.info('/ui/authn', getCurrentLineNumber(), 'User: ' + uid + ' authenticated, verifying DataFed account' );
sendMessageDirect( "UserFindByUUIDsRequest", "datafed-ws", { uuid: userinfo.identities_set }, function( reply ) {
if ( !reply ) {
logger.error('/ui/authn', getCurrentLineNumber(), "Error - Find user call failed." );
Expand Down Expand Up @@ -1774,7 +1774,7 @@ g_core_sock.on('message', function( delim, header, route_count, delim2, correlat
var f = g_ctx[ctx];
if ( f ) {
g_ctx[ctx] = null;
logger.info("g_core_sock.on", getCurrentLineNumber(),"freed ctx: " + ctx + " for msg: " + msg_class.name + " correlation_id: " + correlation_id);
logger.info("g_core_sock.on", getCurrentLineNumber(),"freed ctx: " + ctx + " for msg: " + msg_class.name, correlation_id);
g_ctx_next = ctx;
f( msg );
} else {
Expand Down

0 comments on commit 9144f30

Please sign in to comment.