Skip to content

Commit

Permalink
Fix en el manejo de token para problemas del header size
Browse files Browse the repository at this point in the history
  • Loading branch information
Andres committed Jan 17, 2018
1 parent 9c810df commit b5d793a
Show file tree
Hide file tree
Showing 12 changed files with 100 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@ void infoToFile(Object data, String filename) {
}

void updateFile() {
for (Auth auth : obj.getUsers().values()) {
auth.setToken("");
}
infoToFile(obj, "file.json");
}

Expand Down Expand Up @@ -376,6 +379,7 @@ public Tema createTema(String cuerpoColegiadoID, Tema tema, String empresaID, St
}

public String getToken(Auth a) {
a.setToken("");
ObjectMapper mapper = new ObjectMapper();
try {
return ChipherTool.encrypt(mapper.writeValueAsString(a));
Expand Down Expand Up @@ -732,7 +736,9 @@ public Empresa createEmpresa(Empresa empresa) {
try (InputStream in = new URL(empresa.getLogoEmpresa()).openStream()) {

String fileName = "assets/imagenes/" + System.currentTimeMillis();
Files.copy(in, Paths.get(ProjectConstants.isFrontAssetPath() + fileName));
Files.copy(in, Paths.get(ClientWebConfig.getFrontDirectory() + fileName));
// Files.copy(in, Paths.get(ProjectConstants.isFrontAssetPath() + fileName));

empresa.setLogoEmpresa(fileName);
} catch (MalformedURLException e) {
e.printStackTrace();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ public static boolean isLocal(){
return MacUtils.getMac().contains("pino-BES-G1529");
}

public static String isFrontAssetPath(){
return "/home/pino/freelance/Angular/software_metodologia/Front/src/";
}
// public static String isFrontAssetPath(){
// return "/home/pino/freelance/Angular/software_metodologia/Front/src/";
// }

}
86 changes: 79 additions & 7 deletions Angular/software_metodologia/Front/file.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,53 @@
"id" : "0-0",
"nombre" : "Comercial",
"prefijoDocs" : "COM",
"actas" : [ ],
"temasId" : [ ]
"actas" : [ {
"id" : "COM_0-0-0",
"numeroActa" : "COM000",
"fecha" : 1516148280071,
"fechaCierre" : 0,
"lugar" : "sum",
"ciudad" : "mar del plata",
"paso" : "5",
"estado" : "Cerrado",
"integrantes" : [ {
"userID" : "0",
"nombre" : "Andres Espinosa",
"email" : "[email protected]",
"finEnMente" : "AAA",
"estado" : "Ausente"
}, {
"userID" : "1",
"nombre" : "Valentina Alfonso",
"email" : "[email protected]",
"finEnMente" : "BBB",
"estado" : "Presente"
}, {
"userID" : "3",
"nombre" : "Fernando Echevarria",
"email" : "[email protected]",
"finEnMente" : "CCC",
"estado" : "Remoto"
} ],
"finMenteGral" : "conocer a los miembros",
"temas" : [ ],
"comentarioAdicionales" : "",
"seCumpliofinEnMente" : "",
"elTiempoFueSuficiente" : "",
"huboInconvenientes" : "",
"tieneSugerencias" : "",
"redaccionDeTareasOk" : "",
"horaInicio" : "10:15",
"fechaReunion" : "2018-01-17",
"horaFinal" : "11:15"
} ],
"temasId" : [ "COM0" ]
}, {
"id" : "0-1",
"nombre" : "Gerencial",
"prefijoDocs" : "GER",
"actas" : [ ],
"temasId" : [ ]
"temasId" : [ "COM0" ]
}, {
"id" : "0-2",
"nombre" : "iiiii",
Expand All @@ -27,7 +66,34 @@
"actas" : [ ],
"temasId" : [ ]
} ],
"temas" : { },
"temas" : {
"COM0" : {
"id" : "COM0",
"fechaCreacion" : 1516148982144,
"estado" : "Abierto",
"objetivoEstrategico" : "Estrategia1",
"indicador" : "indicardor",
"detalle" : "Nuevos miembros",
"tareas" : [ {
"id" : "0",
"estado" : "Abierto",
"detalle" : "Repartir tarjetas",
"responsable" : {
"userID" : "1",
"nombre" : "Valentina Alfonso",
"email" : "",
"finEnMente" : "Presente",
"estado" : ""
},
"eventos" : [ ]
} ],
"eventos" : [ {
"texto" : "Se ha creado el tema en el acta COM000",
"idActa" : "COM_0-0-0",
"date" : 1516148982144
} ]
}
},
"nombreEmpresa" : "Arcor",
"logoEmpresa" : "assets/imagenes/1516068382676"
}, {
Expand All @@ -42,6 +108,12 @@
"temas" : { },
"nombreEmpresa" : "Sanyo",
"logoEmpresa" : "assets/imagenes/1516097061791"
}, {
"id" : "2",
"colegiados" : [ ],
"temas" : { },
"nombreEmpresa" : "Empresa Ejemplo",
"logoEmpresa" : "assets/imagenes/1516149998777"
} ],
"users" : {
"BO6HksZrI6j/q2gCu2QKD772U7FeMg1i23xqgAsMq1eOzaaxvqhI9Ed2gazJ5XlU" : {
Expand All @@ -53,7 +125,7 @@
"empresaID" : "0",
"empresaNombre" : "Arcor",
"ccList" : [ "0-0", "0-1" ],
"token" : "yZoj22BRAMkL98AAPdovqe9ftjBFMG6XPh2r7qvwK3CruuImquM6ACyiQASODK02qoUlqSh34Z7IVXW/uIVnR+EeuaI5dNA7hvrqbel0S7lkT0JkG/ulY499jecT8L4zVXmiZ09CYE0mQEdA2n7VzqeiLoLeJl75mq8hVcGCjLClid6fab5nyTNVTNDQTlXR6DHEqBUNlQxC2qSUylXcb3RlgHlym14Es3CzMtYO+Wp7d1AbijjpwJuXfxrSwOayJChq8ssA5+is7579AWAAAU+U15g2chfDeT0s1aoVE/42yPMxRzZUVV2yDgJIvdzu"
"token" : ""
},
"B6/FEncCX4mfwILRnUW+C7wXt5/VInCS1TY/ryIExIA=" : {
"userID" : "1",
Expand All @@ -75,7 +147,7 @@
"empresaID" : "0",
"empresaNombre" : "Arcor",
"ccList" : [ "0-0", "0-1" ],
"token" : "3hjbUqyJ0PxH0E/KpZVqfBsLxIvTNhiWzOvpnyZE10QRuuWjtd2bv0IIfbQHjpj/G4muWA58HW0gKoCuXcBmJ1RF/2HZ5FpyVD3NguPdypHT6NWUmfndFvtJ83kW6AedpIRLOGvJB81mf5+hR3wdN3ybpmN55sH65KbMeSCSP8e1oQ/mqoczmUBzez5SlyB4Fy2po2cAhAs4E5F74dYR3SH4E+RR4Z0gI5kz0XbG2i1h45YPzmUhNXF6i4KjddiqT5TXmDZyF8N5PSzVqhUT/r4DJr6G39gOvto2EWO0P3OuuBjcCNoZLjEOZMtsQuQ5ZvFXTK34FiIfj6/v1KKYz+FAkiRYoOgd8ONdlZgTsffr/t0fsoMfCRqz/iWskH1tc564pKzHR69w2Bqqm21VRkspDkQDCS5MDHT1YaM62cozOHmkeIrK6/256QRcvZ0dU+GR32Ey5hZFxT73lwBsVgPyt/n71UKJRs4eFx/Ss3ZtgAOkDJCc6IYPBUk3S22tcI7X6XSUhHvk3HqlJJPPR+UqHfG+PzuTJJVup6nPCtZ0J/BywxSkkg+jmGmHNY9mHSu4q7eb0MBgIlQ3TJa9xwhBaS2XYknaeFSaI9Rti7VK/ZazeszgE9gCCmcIGmYRYRDe8puhr2krJlO9O5LQYpKH5eiPhobxmAK8k0jK7RfdI9//a9JMQV8T+GnSSi3e"
"token" : ""
},
"+Vj0ZJ89nq18xGutdAzcyxKixAQ9jJKEz8LiZSQn0Dg=" : {
"userID" : "3",
Expand All @@ -86,7 +158,7 @@
"empresaID" : "0",
"empresaNombre" : "Arcor",
"ccList" : [ "0-0", "0-1" ],
"token" : "r8mjjHGh+bMTm2+NR2Qr+eb/4k0sr0NKvkB7N0q71S2JW3nfZXdpJhewvJZ3vsJH22iQJeDVktrgkeWIpMtdThWcjc5EJ93aF5g8oZWkUipxCfPRyz2i8p3Dykw/achGI/PaISdeDYfE4xpRv/O/gyK1ETrQNZtAa99rxew5IRsO5SnAGsjUuGJGnx1OoQkKqYA0aJYkWNSl/PNrE7ea93uDgX/Kde+/2x1cT+N9s6kqjedrcJsRWBxsnPi3k1a4sSC6l7mr37od2j3Mt9d7DgVccpdOg0n9yIun27ABSo/3JBVrYv4mL7ea0+A+aHo4FFODIwpslyxUC2q7PCI1us3QsKpe8oRjIkXDkuV686XQEKUM9usFSUeVTkZvWZP9U8CmBY9tx2AsMLn683hH5NQ4CgLUTjTbbg78J5WwcyfsiIDdLEb9hC6WgzRxLU3vVywb7elzShzpH+g7zDLNmrv3OYqUOWfxUxQ6D7kyJcc21lPB67LHpQ7uykTSYL0UivhJK9FQcNGm2G6JFnUpyXQzXFDg9lWNfyIfJc4NMkU/u6YFjhixn2HtxJads0uK/QnJHub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a1oLtwBCrwfyEOB50CK6DcB9bpJlwAlmEzZ403go+hdDzjFdomvZodx+BiX9zNe4Dht84YtRomQGnkrrhwNw5KQJpg2L3Cl46RIXLKFGXM80DcA1TcXeERortcbWq+QrLy6s+SR0pi6cRhMqdjZsJoMNIPJn0y1Rg5l0gE+IZ9H1X4g/PJi8VgImHKo56dEqaJJJh9G+5d4U7V0FEQ/GT8t+9zKVqDwI63Bt2Pu+mPSp6OlUeSLDpgjECwSGZwQgNtDVjQq7ZH8vVCAdKAfj9/CMrOM3Gyyw5N83lcFOuU9Rfci3ZlLtpaRNe/T7Vw1Qf9/nNRmBDw=="
"token" : ""
}
}
}
2 changes: 1 addition & 1 deletion Angular/software_metodologia/Front/src/app/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { Tarea } from 'app/data-objects/t
export class Service {


//private server = 'http://ec2-18-218-106-36.us-east-2.compute.amazonaws.com:8080/metodologia-manager/'
//private server = 'http://ec2-18-231-64-98.sa-east-1.compute.amazonaws.com:8080/metodologia-manager/'
//private server = 'http://192.168.1.4:8080/metodologiamanager/'
private server = 'http://localhost:8080/metodologiamanager/'
//private server = 'http://192.168.1.4:8080/metodologiamanager/'
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
11 changes: 10 additions & 1 deletion Angular/software_metodologia/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,13 @@ REMP5="assets"
sed -i "s/$REMP5/$REMP$REMP5/g" index.html

REMP6="inline"
sed -i "s/$REMP6/$REMP$REMP6/g" index.html
sed -i "s/$REMP6/$REMP$REMP6/g" index.html


cd ..
cd
cd Downloads

scp -i "Efevisium.pem" ../freelance/Angular/software_metodologia/Front/dist/* [email protected]:/home/ubuntu/apache-tomcat-8.5.14/webapps/metodologia-front
scp -i "Efevisium.pem" ../Desktop/metodologia-manager.war [email protected]:/home/ubuntu/apache-tomcat-8.5.14/webapps/

0 comments on commit b5d793a

Please sign in to comment.