If you install the "Mysql Database" tool on a user-project, then /u/username redirects to it, but it should redirect to /u/username/profile. This happens even when the tool ordinal values make sense (see below). Perhaps we need some special handling for "profile" in the first-tool selection function (iirc, we have special handling for "home"):
> db.config.find({project_id:ObjectId("4e3ad6409c10402481000005")})
{ "_id" : ObjectId("4e3ad6409c10402481000011"), "project_id" : ObjectId("4e3ad6409c10402481000005"), "acl" : [ ], "version" : null, "discussion_id" : ObjectId("4e3ad6409c10402481000012"), "options" : { "ordinal" : 0, "mount_point" : "profile", "mount_label" : "Profile" }, "tool_name" : "profile" }
{ "_id" : ObjectId("4e3ad6409c10402481000013"), "version" : null, "discussion_id" : ObjectId("4e3ad6409c10402481000014"), "project_id" : ObjectId("4e3ad6409c10402481000005"), "options" : { "ordinal" : 1, "mount_point" : "admin", "mount_label" : "Admin" }, "tool_name" : "admin", "acl" : [ ] }
{ "_id" : ObjectId("4e3ad6409c10402481000015"), "version" : null, "discussion_id" : ObjectId("4e3ad6409c10402481000016"), "project_id" : ObjectId("4e3ad6409c10402481000005"), "options" : { "ordinal" : 2, "mount_point" : "search", "mount_label" : "Search" }, "tool_name" : "search", "acl" : [ ] }
{ "_id" : ObjectId("4e3ad6519c10402482000011"), "project_id" : ObjectId("4e3ad6409c10402481000005"), "acl" : [
{
"access" : "ALLOW",
"permission" : "read",
"role_id" : ObjectId("4e3ad6409c1040248100000b")
},
{
"access" : "ALLOW",
"permission" : "configure",
"role_id" : ObjectId("4e3ad6409c10402481000007")
},
{
"access" : "ALLOW",
"permission" : "admin",
"role_id" : ObjectId("4e3ad6409c10402481000007")
}
], "version" : null, "discussion_id" : ObjectId("4e3ad6519c10402482000014"), "options" : { "ordinal" : 15, "mount_point" : "sfx-mysql", "mount_label" : "MySQL" }, "tool_name" : "mysql" }
Fix is on allura js/2565. To test, go to your user project and add a project. If you go to a url like "/u/test-user" you will get redirected to the profile page, not the new tool.
Looks good, merged to dev.