From 49f3dec53ec85b1720dbbfb62a2d495011b66622 Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Mon, 22 Apr 2019 11:15:00 +0200 Subject: [PATCH] server: fix traces, auth errors --- libs/nikiroo-utils-4.7.2-dev-sources.jar | Bin 303117 -> 307392 bytes .../fanfix/library/RemoteLibraryServer.java | 34 +++++++----------- 2 files changed, 13 insertions(+), 21 deletions(-) diff --git a/libs/nikiroo-utils-4.7.2-dev-sources.jar b/libs/nikiroo-utils-4.7.2-dev-sources.jar index 4b72c09b75cd63d27ac61ec435a008f2983c0691..dd97f475bca15dd5758bb645091e3f7dfeb5a015 100644 GIT binary patch delta 14198 zcmZvDWmsIxvNjBZyA#}<;O=h0EjR>s32p-fg1Zb3!6CT2hM+-$22UUach_$S=bpRw zeZKiIv)-!es$R8vx~r>e#q?nH{KP_4RfGZJKp`L?K=tXSCZGzyKz@Q0LKUDJ6##B! zFuH1~&AnxSBQzl7N*Qdj4MPE*Z2=H~=Cb!y5tRh1Q-0GX`FL1m6lPO9lMQOqmNI!qqYeJ~&ZtVh6JCUe{fD;uH}F7CG74NB5WLZ?(~#gzgP?!{GJezit!|w` z9vR7vxR-SrF^4^fB-hml`y)qUAA-CIwHdcDn3<}MV=$?5rBZv|oTfa6^5nNx@2I}) z1BF__u4r5?A_o^c@rgP|Z9c<$&|O6=Vtd${u9DC1$=k0Uo<6hS zx^3X?^p3}k{RnhWXA!N}>?2MwkFio$W%>S<#>MIq_r9*}`5BGYSI z#M6{N78*FV*&T8)z@e8?w>7?x$g_%+mLFOn_v z2AU~&4f+RO3ppyKyLkMPcl)}ILtDOrlS|^km>kz0^Dgn^E7-yI+i&bA?_rng>?#BJ zKG$O;c+JA^HP$<>=pwDt5*dLmWw-sUs5R(<-s5VX3SKrT*qD~ZvA$;-8VEJRDlL&t zsM?rQBKi$6&Sv;{&lo+@f(Jd)SSU3p$h6C5aa-!p zdWsEeiUWqfH1^!qUS@n^xELDU5X~*$FSQbvu|sml|5(+BjL%KV0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KoIKW{(lnEU9uLKJaDL`~yW* z{qx?vZmR$)3Z6Xt3lh{3TIoUr7v|Cb3DAKk0w@O1Pz=Qb@(K}-r&s@~JTahXz-}Rw z1=0wD0w#!a4L}kXN)7auBVL?Y5#q(cpa8rGY7VJD-2Bypi=hILT=ahsD;a{;x)?z~ zhWU@Esu;=-$)$z@IGj)h0H*|@t7nD+G{Vq_fWaLy<%9xAl28&L^A086BRb&l4$<)Z zqvI<@udDf1VR0jT8&%DsC;4(OFbWgsi^e_4nCV=Y7+h^Sd0Do_84h=CD3C=Nhcfe@Lg z|6`?B0TqUHX#azxtPnn}cLq$B|B8@-GFQYbiCc+~>)ZY#N6@1HI+ajf$Y)0=zzK&^ Z5UW2$M!6ft{)qn<#3aY!ikNvo{|{lYxd8wG diff --git a/src/be/nikiroo/fanfix/library/RemoteLibraryServer.java b/src/be/nikiroo/fanfix/library/RemoteLibraryServer.java index b1aebb3..f0d5f7a 100644 --- a/src/be/nikiroo/fanfix/library/RemoteLibraryServer.java +++ b/src/be/nikiroo/fanfix/library/RemoteLibraryServer.java @@ -26,8 +26,7 @@ import be.nikiroo.utils.serial.server.ServerObject; *

* All commands, including PING, will first return a random value to you that * you must hash with your key and return before processing the rest; if the - * value is OK, it will return "true", if not, it will return NULL and stop the - * connection. + * value not correct, the connection will be closed. *

* BTW: this system is by no means secure. It is just slightly * obfuscated, and operate on clear text (because Google decided not to support @@ -102,32 +101,26 @@ public class RemoteLibraryServer extends ServerObject { for (Object arg : args) { trace += arg + " "; } - getTraceHandler().trace(trace); + System.out.println(trace); // Authentication: String random = StringUtils.getMd5Hash(Double.toString(Math.random())); action.send(random); - String answer = ""; - try { - answer += action.rec(); - } catch (NullPointerException e) { - return null; - } + String answer = "" + action.rec(); - if (answer.equals(RemoteLibrary.hashKey(key, random))) { - action.send(true); - } else { - getTraceHandler().trace("Key rejected."); + if (!answer.equals(RemoteLibrary.hashKey(key, random))) { + System.out.println("Key rejected."); + action.close(); return null; } + // Object rep = doRequest(action, command, args); String rec = StringUtils.formatNumber(action.getBytesReceived()) + "b"; String sent = StringUtils.formatNumber(action.getBytesSent()) + "b"; - getTraceHandler().trace( - String.format("[>%s]: (%s sent, %s rec) in %d ms", command, - sent, rec, (new Date().getTime() - start))); + System.out.println(String.format("[>%s]: (%s sent, %s rec) in %d ms", + command, sent, rec, (new Date().getTime() - start))); return rep; } @@ -326,8 +319,7 @@ public class RemoteLibraryServer extends ServerObject { * * @return the {@link Progress} */ - private static Progress createPgForwarder( - final ConnectActionServerObject action) { + private Progress createPgForwarder(final ConnectActionServerObject action) { final Boolean[] isDoneForwarded = new Boolean[] { false }; final Progress pg = new Progress() { @Override @@ -360,7 +352,7 @@ public class RemoteLibraryServer extends ServerObject { action.send(new Integer[] { min, max, relativeProgress }); action.rec(); } catch (Exception e) { - Instance.getTraceHandler().error(e); + getTraceHandler().error(e); } lastTime[0] = new Date().getTime(); @@ -374,14 +366,14 @@ public class RemoteLibraryServer extends ServerObject { } // with 30 seconds timeout - private static void forcePgDoneSent(Progress pg) { + private void forcePgDoneSent(Progress pg) { long start = new Date().getTime(); pg.done(); while (!pg.isDone() && new Date().getTime() - start < 30000) { try { Thread.sleep(100); } catch (InterruptedException e) { - Instance.getTraceHandler().error(e); + getTraceHandler().error(e); } } } -- 2.27.0