aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjosh97josh2018-04-22 17:33:13 +0100
committerjosh97josh2018-04-22 17:33:13 +0100
commit68bd207cbf6e6d5bb1580841aa874c85e584752e (patch)
treeefb4c8699f86e8f23259410d6bfbd0aa95fc2cdc
parentMerge branch 'trh/gets' of ssh://localhost:2222/cs3099group-be-4/project-code... (diff)
parentadded check permissions functions (diff)
downloadmedicine-68bd207cbf6e6d5bb1580841aa874c85e584752e.tar.gz
medicine-68bd207cbf6e6d5bb1580841aa874c85e584752e.zip

Merge branch ‘jl247/permissions’ into trh/gets

-rw-r--r--Report/.DS_Storebin0 -> 6148 bytes
-rw-r--r--res/.DS_Storebin0 -> 6148 bytes
-rw-r--r--src/.DS_Storebin0 -> 8196 bytes
-rw-r--r--src/FileRouter.ts204
-rwxr-xr-xsrc/conversion/czi/JxrDecAppbin0 -> 296464 bytes
-rw-r--r--src/db/.DS_Storebin0 -> 6148 bytes
-rw-r--r--src/db/model/ContributorGroup.ts14
-rw-r--r--src/db/model/Project.ts93
-rw-r--r--src/db/model/User.ts68
-rw-r--r--src/db/model/UserJoinsProject.ts7
-rw-r--r--src/index.ts71
-rw-r--r--test/.DS_Storebin0 -> 6148 bytes
-rw-r--r--test/unit/Tissue Slides.00030.v13.csv3
13 files changed, 379 insertions, 81 deletions
diff --git a/Report/.DS_Store b/Report/.DS_Store
new file mode 100644
index 0000000..f384dd0
--- /dev/null
+++ b/Report/.DS_Store
Binary files differ
diff --git a/res/.DS_Store b/res/.DS_Store
new file mode 100644
index 0000000..8c8bb1a
--- /dev/null
+++ b/res/.DS_Store
Binary files differ
diff --git a/src/.DS_Store b/src/.DS_Store
new file mode 100644
index 0000000..2d5870d
--- /dev/null
+++ b/src/.DS_Store
Binary files differ
diff --git a/src/FileRouter.ts b/src/FileRouter.ts
index bd376b0..5c5d651 100644
--- a/src/FileRouter.ts
+++ b/src/FileRouter.ts
@@ -11,6 +11,10 @@ import { addSubFileToFolder, View, files, views, rootPathId, createProjectFolder
import { logger } from './logger';
import { Property, default as serverConfig } from './serverConfig';
import { uuid } from './uuid';
+import UserHasPrivilege from './db/model/UserHasPrivilege';
+import { Contains } from 'sequelize-typescript';
+import UserJoinsProject from './db/model/UserJoinsProject';
+import { appendFileSync } from 'fs';
/**
@@ -245,14 +249,14 @@ const getUsers: Middleware = async(
Project
]
});
- res.locals.data = users.map((u: User): UserFullInfo => {
- const info: UserFullInfo = u.fullInfo;
- if (!req.user.hasPrivilege('admin')) {
- delete info.private_user_metadata;
- delete info.private_admin_metadata;
- }
+ res.locals.data = Promise.all(users.map((u: User): Promise<UserFullInfo> => {
+ const info: Promise<UserFullInfo> = u.getFullInfo();
return info;
- });
+ }));
+ if (!req.user.hasPrivilege('admin')) {
+ await delete res.locals.data.private_user_metadata;
+ await delete res.locals.data.private_admin_metadata;
+ }
next();
};
@@ -292,24 +296,24 @@ const getUserProperties: Middleware = (
* "private_admin_metadata": metadata
* }
*/
-const getUsername: Middleware = (
+const getUsername: Middleware = async (
req: Request, res: Response, next: NextFunction
-): void => {
+): Promise<void> => {
logger.debug(`Listing user ${res.locals.user}`);
res.locals.modified = true;
if (res.locals.user == null) {
next(new RequestError(404, 'user_not_found'));
return;
}
- res.locals.data = res.locals.user.fullInfo;
+ res.locals.data = await res.locals.user.getFullInfo();
next();
};
-const getCurUser: Middleware = (
+const getCurUser: Middleware = async(
req: Request, res: Response, next: NextFunction
-): void => {
+): Promise<void> => {
logger.debug('Listing current user');
- res.locals.data = req.user.fullInfo;
+ res.locals.data = await req.user.getFullInfo();
next();
};
@@ -367,18 +371,63 @@ const postUsername: Middleware = async(
): Promise<void> => {
let user: User | null | undefined = res.locals.user;
res.locals.modified = true;
- if (user == null) {
- logger.debug('Adding new user');
- user = new User({
- username: req.params.username,
- password: req.params.password
- });
- } else {
- logger.debug('Editing user');
- user.password = req.params.password;
+
+ if( req.query.action === 'update'){
+ if (user!= null){
+ logger.debug('Editing user');
+
+ if(req.body.password != null){
+ user.password = req.body.password;
+ }
+ if (req.body) {
+ user.metadata = req.body;
+ }
+ await user.save();
+ if(req.body.privileges != null){
+ const priv: UserGroup[] | null = await UserGroup.findAll({
+ include: [{all: true}],
+ where: {
+ name: req.body.privileges
+ }
+ })
+ await user.$set('userGroups', priv);
+ }
+ }
+ else{
+ next(new RequestError(404, 'user_not_found'));
+ return;
+ }
+ }
+ else if( req.query.action === 'delete'){
+ logger.debug('Deleting a user');
+ if (user!= null){
+ await user.destroy();
+ }
+ else{
+ next(new RequestError(404, 'user_not_found'));
+ return;
+ }
}
- if (req.body) {
- user.metadata = req.body;
+ else{
+ if (user == null) {
+ logger.debug('Adding new user');
+ const priv: UserGroup[] | null = await UserGroup.findAll({
+ include: [{all: true}],
+ where: {
+ name: req.body.privileges
+ }
+ })
+ user = new User({
+ username: req.params.username,
+ password: req.params.password,
+ });
+ await user.save();
+ await user.$set('userGroups', priv);
+ }
+ else{
+ next(new RequestError(400, 'user_already_exists'));
+ return;
+ }
}
await user.save();
next();
@@ -436,9 +485,9 @@ const getProjects: Middleware = async(
User
]
});
- res.locals.data = projects.map(
- (p: Project): ProjectFullInfo => p.fullInfo
- );
+ res.locals.data = Promise.all(projects.map(
+ (p: Project): Promise<ProjectFullInfo> => p.getFullInfo()
+ ));
next();
};
@@ -468,7 +517,7 @@ const getProjectName: Middleware = async(
if (project == null) {
return next(new RequestError(404, 'project_not_found'));
} else {
- res.locals.data = project.fullInfo;
+ res.locals.data = await project.getFullInfo();
next();
}
};
@@ -492,31 +541,86 @@ const postProjectName: Middleware = async(
let project: Project | null = res.locals.project;
res.locals.modified = true;
let promise: PromiseLike<File> | null = null;
- if (project == null) {
+
+ if( req.query.action === 'update'){
logger.debug('Adding new project');
- const file: File = new File({
- uuid: uuid.generate(),
- mimetype: 'inode/directory',
- parentFolderId: rootPathId
- });
- file.name = ''; // Leave blank as discussed
- promise = file.save();
- createProjectFolder(req.params.project_name);
+ if(project != null){
+ project.metadata = req.body;
+ await project.save()
+ }
+ else{
+ next(new RequestError(400, 'project_not_found'));
+ }
+ }
+ else if( req.query.action === 'delete'){
+ if(project != null){
+ project.destroy()
+ }
+ else{
+ next(new RequestError(400, 'project_not_found'));
+ }
+ }
+ else if( req.query.action === 'update_grant'){
+ if (project == null){
+ next(new RequestError(400, 'project_not_found'));
+ }
+ else{
+ let ujp: UserJoinsProject | null = await UserJoinsProject.findOne({
+ include: [{all:true}],
+ where: {
+ username: req.body.username,
+ projectName: project.name
+ }
+ })
+ if(ujp != null){
+ await ujp.destroy();
+ }
+ if(req.body.access_level != 'none'){
+ try{
+ let ujp: UserJoinsProject = new UserJoinsProject({
+ username: req.body.username,
+ projectName: project.name,
+ contributorGroupName: req.body.access_level
+ })
+ await ujp.save();
+ }
+ catch(err){
+ next(new RequestError(400, 'invalid_access_level'));
+ }
+ }
+ }
+ }
+ else{
+ if(project == null){
+ logger.debug('Adding new project');
+ const file: File = new File({
+ uuid: uuid.generate(),
+ mimetype: 'inode/directory'
+ });
+ promise = file.save();
+ project = new Project({
+ name: req.params.project_name,
+ rootFolder: file
+ });
- project = new Project({
- name: req.params.project_name,
- rootFolder: file
- });
- project.rootFolderId = file.uuid;
- } else {
- logger.debug('Updating project properties');
+ project.metadata = req.body;
+ // tslint:disable-next-line:await-promise
+ await promise;
+ await project.save()
+ const contribute: UserJoinsProject = new UserJoinsProject({
+ username: req.user.username,
+ projectName: req.params.project_name,
+ contributorGroupName: 'projectOwner'
+
+ })
+ contribute.save()
+ }
+ else{
+ next(new RequestError(400, 'project_already_exists'));
+ }
}
- project.metadata = req.body;
- // tslint:disable-next-line:await-promise
- await promise;
- await project.save();
- next();
+ next()
};
/**
@@ -799,7 +903,7 @@ export class FileRouter {
}
});
if (user == null) {
- return next(new RequestError(404, 'user_not_found'));
+ //return next(new RequestError(404, 'user_not_found'));
} else {
res.locals.user = user;
}
diff --git a/src/conversion/czi/JxrDecApp b/src/conversion/czi/JxrDecApp
new file mode 100755
index 0000000..bc35f65
--- /dev/null
+++ b/src/conversion/czi/JxrDecApp
Binary files differ
diff --git a/src/db/.DS_Store b/src/db/.DS_Store
new file mode 100644
index 0000000..6a62f95
--- /dev/null
+++ b/src/db/.DS_Store
Binary files differ
diff --git a/src/db/model/ContributorGroup.ts b/src/db/model/ContributorGroup.ts
index d3a5867..73bc558 100644
--- a/src/db/model/ContributorGroup.ts
+++ b/src/db/model/ContributorGroup.ts
@@ -1,12 +1,16 @@
-import { AllowNull, Column, DataType, HasMany, Model, Table
+import { AllowNull, Column, DataType, HasMany, Model, Table, PrimaryKey
} from 'sequelize-typescript';
import { default as UserJoinsProject } from './UserJoinsProject';
@Table
export default class ContributorGroup extends Model<ContributorGroup> {
- @AllowNull
+ @PrimaryKey
@Column(DataType.TEXT)
- public name!: string | null;
+ public name!: string;
+
+ // @PrimaryKey
+ // @Column
+ // public username!: string;
/* "Error: Foreign key for "ContributorGroup"
* is missing on "UserJoinsProject"." */
@@ -31,6 +35,10 @@ export default class ContributorGroup extends Model<ContributorGroup> {
@Column
public canEditUserPermissions!: boolean;
+ @Column
+ public canDeleteProject!: boolean;
+
+
@AllowNull
@Column(DataType.TEXT)
public description!: string | null;
diff --git a/src/db/model/Project.ts b/src/db/model/Project.ts
index 6cda34e..c937004 100644
--- a/src/db/model/Project.ts
+++ b/src/db/model/Project.ts
@@ -4,6 +4,7 @@ import { BelongsTo, BelongsToMany, Column, CreatedAt, DataType, ForeignKey,
Model, PrimaryKey, Table, UpdatedAt } from 'sequelize-typescript';
import { default as User } from './User';
import { default as UserJoinsProject } from './UserJoinsProject';
+import { NotVoid } from 'lodash';
@Table
export default class Project extends Model<Project> {
@@ -91,34 +92,106 @@ export default class Project extends Model<Project> {
public set adminMetadata(newMetadata: Metadata) {
return;
}
+
+ public async hasAccessLevel(user:User, accessLevel: string): Promise<boolean>{
+ const ujps: UserJoinsProject[] | null = await UserJoinsProject.findAll({
+ include: [ ContributorGroup],
+ where: {
+ username: user.username,
+ projectName: this.name
+ }
+ })
+ if(ujps != null){
+ const adders:ContributorGroup[] = await ujps.map((ujp:UserJoinsProject): ContributorGroup =>{
+ if (ujp.contributorGroup != null){
+ return ujp.contributorGroup
+ }
+ else{
+ throw new Error(`Missing contributor group`);
+ }
+ })
+ if(adders.some((cg: ContributorGroup): boolean => cg.name == accessLevel)){
+ return true;
+ }
+
+ switch(accessLevel){
+ case 'canCreateFiles':
+ return adders.some(
+ (cg: ContributorGroup): boolean => cg.canCreateFiles == true
+ );
+ case 'canDeleteFiles':
+ return adders.some(
+ (cg: ContributorGroup): boolean => cg.canDeleteFiles == true
+ );
+ case 'canViewFiles':
+ return adders.some(
+ (cg: ContributorGroup): boolean => cg.canViewFiles == true
+ );
+ case 'canAddUsers':
+ return adders.some(
+ (cg: ContributorGroup): boolean => cg.canAddUsers == true
+ );
+ case 'canRemoveUsers':
+ return adders.some(
+ (cg: ContributorGroup): boolean => cg.canRemoveUsers == true
+ );
+ case 'canEditUserPermissions':
+ return adders.some(
+ (cg: ContributorGroup): boolean => cg.canEditUserPermissions == true
+ );
+ case 'canDeleteProject':
+ return adders.some(
+ (cg: ContributorGroup): boolean => cg.canDeleteProject == true
+ );
+ default:
+ throw new Error(`invalid access role`);
+ }
+ }
+ else{
+ return(false)
+ }
+ }
- public getAccessLevel(user: User): ContributorGroup {
- throw new Error(`unimplemented, ${this}`);
+ public async getAccessLevel(user: User): Promise<String[]> {
+ const ujps: UserJoinsProject[] | null = await UserJoinsProject.findAll({
+ include: [ ContributorGroup],
+ where: {
+ username: user.username,
+ projectName: this.name
+ }
+ })
+ const listContributors: String[] = await ujps.map((ujp: UserJoinsProject): String => {
+ if(ujp.contributorGroup != undefined){
+ return ujp.contributorGroupName
+ }
+ else{
+ throw new Error(`Invalid access`);
+ }
+ })
+ return listContributors;
}
- public getUserInfo(user: User): UserInfo {
+ public async getUserInfo(user: User): Promise<UserInfo> {
return {
username: user.username,
- access_level: this.getAccessLevel(user)
- .toString()
+ access_level: (await this.getAccessLevel(user)).join()
};
}
- public get fullInfo(): ProjectFullInfo {
+ public async getFullInfo(): Promise<ProjectFullInfo> {
if (this.contributors === undefined) {
throw new Error('contributors undefined');
}
return {
project_name: this.name,
- users: this.contributors
- .map((u: User): UserInfo => this.getUserInfo(u)),
+ users: await Promise.all(this.contributors
+ .map( (u: User): Promise<UserInfo> => this.getUserInfo(u))),
public_metadata: {
creation_date: this.creationDate
},
- // TODO: Check if we have anything to use these for yet?
private_metadata: {},
admin_metadata: {}
- };
+ }
}
}
diff --git a/src/db/model/User.ts b/src/db/model/User.ts
index 8c27012..2b67a34 100644
--- a/src/db/model/User.ts
+++ b/src/db/model/User.ts
@@ -5,6 +5,10 @@ import { BelongsToMany, Column, CreatedAt, DataType, HasMany,
import { default as UserGroup } from './UserGroup';
import { default as UserHasPrivilege } from './UserHasPrivilege';
import { default as UserJoinsProject } from './UserJoinsProject';
+import { RequestError } from '../../errors/errorware';
+
+import ContributorGroup from './ContributorGroup';
+import { truncateFile } from '../../files';
@Table
export default class User extends Model<User> {
@@ -104,28 +108,59 @@ export default class User extends Model<User> {
return;
}
- // TODO implement
- public getAccessLevel(project: Project): string {
- throw new Error(`unimplemented, ${this}`);
- }
-
public hasPrivilege(privilege: string): boolean {
if (this.userGroups === undefined) {
throw new Error('usergroups undefined');
}
- return this.userGroups.some(
- (ug: UserGroup): boolean => ug.name === privilege
- );
+ if(this.userGroups.some((ug: UserGroup): boolean => ug.name == privilege)){
+ return true;
+ }
+ switch(privilege){
+ case 'canCreateUsers':
+ return this.userGroups.some(
+ (ug: UserGroup): boolean => ug.canCreateUsers == true
+ );
+ case 'canDeleteUsers':
+ return this.userGroups.some(
+ (ug: UserGroup): boolean => ug.canDeleteUsers == true
+ );
+ case 'canEditUsers':
+ return this.userGroups.some(
+ (ug: UserGroup): boolean => ug.canEditUsers == true
+ );
+ case 'canCreateProjects':
+ return this.userGroups.some(
+ (ug: UserGroup): boolean => ug.canCreateProjects == true
+ );
+ case 'canDeleteProjects':
+ return this.userGroups.some(
+ (ug: UserGroup): boolean => ug.canDeleteProjects == true
+ );
+ case 'canEditProjects':
+ return this.userGroups.some(
+ (ug: UserGroup): boolean => ug.canEditProjects == true
+ );
+ case 'canAccessLogs':
+ return this.userGroups.some(
+ (ug: UserGroup): boolean => ug.canAccessLogs == true
+ );
+ default:
+ throw new Error('privilege undefined');
+ }
+ }
+
+ public async getAccessLevel(project: Project): Promise<string> {
+ return (await project.getAccessLevel(this)).join()
}
- public getProjectInfo(project: Project): ProjectInfo {
+ public async getProjectInfo(project: Project): Promise<ProjectInfo> {
return {
project_name: project.name,
- access_level: this.getAccessLevel(project)
+ access_level: await this.getAccessLevel(project)
};
}
- public get fullInfo(): UserFullInfo {
+ public async getFullInfo(): Promise<UserFullInfo> {
// FIXME: Fetch these things if they aren't already present
if (this.userGroups === undefined) {
this.userGroups = [];
@@ -137,8 +172,8 @@ export default class User extends Model<User> {
privileges: this.userGroups!
.filter((ug: UserGroup): boolean => ug.name !== null)
.map((ug: UserGroup): string => ug.name as string),
- projects : this.projects!.map(
- (p: Project): ProjectInfo => this.getProjectInfo(p)
+ projects : await Promise.all( this.projects!.map(
+ (p: Project): Promise<ProjectInfo> => this.getProjectInfo(p))
),
// TODO: Check if we have anything to use these for yet?
public_user_metadata: {},
@@ -155,14 +190,17 @@ export default class User extends Model<User> {
}): void {
if (newInfo.password !== undefined) {
if (this.authenticate(newInfo.password.old)) {
- this.password = newInfo.password.new;
+ this.passwordInternal = newInfo.password.new;
+ }
+ else{
+ throw new RequestError(400, 'invalid_password')
}
}
}
public authenticate(password: string): boolean {
// TODO use salting (and maybe even constant-time comparison?)
- return password === this.password;
+ return password === this.passwordInternal;
}
public get password(): string {
diff --git a/src/db/model/UserJoinsProject.ts b/src/db/model/UserJoinsProject.ts
index 7ddb99e..7fe1bd6 100644
--- a/src/db/model/UserJoinsProject.ts
+++ b/src/db/model/UserJoinsProject.ts
@@ -14,13 +14,14 @@ export default class UserJoinsProject extends Model<UserJoinsProject> {
@Column
public projectName!: string;
+ @ForeignKey(() => ContributorGroup)
+ @Column
+ public contributorGroupName!: string;
+
@CreatedAt
@Column(DataType.DATE)
public joinDate!: Date;
- @ForeignKey(() => ContributorGroup)
- @Column
- public contributorGroupId!: number;
@BelongsTo(() => ContributorGroup)
public contributorGroup?: ContributorGroup;
diff --git a/src/index.ts b/src/index.ts
index 1ce284d..b323895 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -13,6 +13,7 @@ import { View, files, views, rootPathId, createRootFolder } from './files';
import { default as File } from './db/model/File';
import { default as User } from './db/model/User';
import { default as UserGroup } from './db/model/UserGroup';
+import { default as ContributorGroup } from './db/model/ContributorGroup';
const DEFAULT_PORT: number = 3000;
@@ -60,8 +61,78 @@ async function reset(): Promise<void> {
description: 'Allows Post to Log'
});
+ const userManagement: UserGroup = new UserGroup({
+ name: 'userManagement',
+ canCreateUsers: true,
+ canDeleteUsers: true,
+ canEditUsers: true,
+ isInternal: false,
+ description: 'Allows management of other users'
+ });
+
+ const projectAdmin: UserGroup = new UserGroup({
+ name: 'projectAdmin',
+ canDeleteProjects: true,
+ canEditProjects: true,
+ isInternal: false,
+ description: "Admin privileges on other projects "
+ })
+
+ const standardUser: UserGroup = new UserGroup({
+ name: 'standardUser',
+ canCreateProjects: true,
+ isInternal: true,
+ description: "Allows creation of new projects"
+ })
+
await logging.save();
await admin.save();
+ await userManagement.save();
+ await projectAdmin.save();
+ await standardUser.save();
+
+ const projectOwner: ContributorGroup = new ContributorGroup({
+ name: 'projectOwner',
+ canCreateFiles: true,
+ canAddUsers: true,
+ canRemoveUsers: true,
+ canDeleteFiles: true,
+ canDeleteProject: true,
+ canEditUserPermissions: true,
+ canViewFiles: true,
+ isInternal: false,
+ description: "Project Admin"
+ });
+
+ const standardProjectUser: ContributorGroup = new ContributorGroup({
+ name: 'standardProjectUser',
+ canCreateFiles: true,
+ canViewFiles: true,
+ isInternal: false,
+ description: "Allows working on a project"
+ });
+
+ const readOnlyProjectUser: ContributorGroup = new ContributorGroup({
+ name: 'readOnlyProjectUser',
+ canViewFiles: true,
+ isInternal: false,
+ description: "Allows viewing of files in a project "
+ })
+
+ const projectUserManagement: ContributorGroup = new ContributorGroup({
+ name: 'projectUserManagement',
+ canAddUsers: true,
+ canEditUserPermissions: true,
+ canRemoveUsers: true,
+ isInternal: false,
+ description: "Allows managament of users in a Project"
+ })
+
+ await projectOwner.save();
+ await standardProjectUser.save();
+ await readOnlyProjectUser.save()
+ await projectUserManagement.save()
+
logger.info('Adding admin user');
diff --git a/test/.DS_Store b/test/.DS_Store
new file mode 100644
index 0000000..eef9cc0
--- /dev/null
+++ b/test/.DS_Store
Binary files differ
diff --git a/test/unit/Tissue Slides.00030.v13.csv b/test/unit/Tissue Slides.00030.v13.csv
new file mode 100644
index 0000000..32a365f
--- /dev/null
+++ b/test/unit/Tissue Slides.00030.v13.csv
@@ -0,0 +1,3 @@
+inner_x;inner_y;level_name;class_name;Mean CK;Mean D240;Mean DAPI;Standard deviation CK;Standard deviation D240;Standard deviation DAPI;Ratio CK;Ratio D240;Ratio DAPI;Area (µm²);Border length (Pxl);Length (µm);Length/Thickness;Length/Width;Number of pixels;Perimeter;Rel. Border to Image Border;Thickness (Pxl);Vessel Wall thickness (µm);Volume (Pxl);Width (µm);Asymmetry;Border index;Circularity;Compactness;Density;Elliptic Fit;Ellipticity;Roundness;Shape index
+278;1644;TissueLevel (ROI and bud map);Markers 1 and 2;111.91269841;49.00952381;43.888888889;46.453427751;53.507779331;27.926326608;0.54641907759;0.23929133309;0.21428958932;139.167;158;16.324198007;undefined;1.1350017263;630;0;0;undefined;0;630;14.382531435;0.22056688527;1.5490196078;2.5842367704;1.6870615231;2.0749555783;0.66031746032;0.3083863821;0.91206852044;1.573717669
+314;1630;TissueLevel (ROI and bud map);vessel border to bud invasion;8.1280438312;65.000202922;28.99411526;10.822207323;66.30369822;25.807309309;0.079591224399;0.63649333643;0.28391543917;1088.5952;608;54.52;undefined;1.5064935065;4928;0;0;undefined;0;4928;36.19;0.41167215052;2.0965517241;1.786429407;1.8125;2.1469508548;0.60470779221;0.26168440136;1.0913355585;2.1652509527 \ No newline at end of file