Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ifzQG-0008J4-Uf for pgadmin-hackers@arkaria.postgresql.org; Sat, 14 Dec 2019 04:52:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ifzQE-0003V4-Vk for pgadmin-hackers@arkaria.postgresql.org; Sat, 14 Dec 2019 04:52:54 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ifzQE-0003Ux-Gx for pgadmin-hackers@lists.postgresql.org; Sat, 14 Dec 2019 04:52:54 +0000 Received: from mail-ot1-x344.google.com ([2607:f8b0:4864:20::344]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ifzQA-000306-OQ for pgadmin-hackers@postgresql.org; Sat, 14 Dec 2019 04:52:53 +0000 Received: by mail-ot1-x344.google.com with SMTP id 66so1705157otd.9 for ; Fri, 13 Dec 2019 20:52:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ebh5SF7y4N07dhnZwooGDKmxQk6XZlFz7bWfmK6W3H4=; b=nLyrLVA1doRvzkYLRjSrSPY2KojG9kJuSJ1nf4zqkYtSHMKwGs9a/uYfsrTInFDRr1 OVTGX5E3+AdV10lVMWd8XcR+M6u4+wPOF1Xuwy+56qII0hz3yE4ObrWuMrCoLATwsDSY SrfY9Subp9tXRQzfqXuvmgd6dFVx0KO1YVDG8uXFmm9Z1ym/dK1CVKYWkDuwCXmKkz/P n9rSqeiV8ktIcTtCbPUSYV/ciPD1qPY1DoCYUa0kpZCmrKhTYb1RzG6pqasgUVo96ik/ 3L8IYg+g9NQEa1nDVU2JKCMBxQ9/q7AOWRXCQ0CsV1MWnhY+XutkEAP08EP5/yM5X+Fe O1PA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ebh5SF7y4N07dhnZwooGDKmxQk6XZlFz7bWfmK6W3H4=; b=UuXmIsHM1kT+2lt0214Mx4aoe99vHeIdiSaNig8zyIKIj9EY7XblxVWm7hoZxRIIcA EUTkjUgoMxC0Xk2m/hl+ILguP656BE4MXuNVYcJI9d3tCbnYOnssh8HC7IAYDCtf03sZ TDIdjhArJqF0/Aq9h/XM0uhaxgavIJNmDYVoKuNdWzcHmU475J8uivf3ebJf8loq13Un eTJN9gjVq/fT2DDIQ+yl1d7AGTMOlsyz5BH52pbjWRRIDOB0OTRpN4C3sIQBERpRzDwE iYS2t5QHjChwD2Cxgv0aCcfHFlwJS3Ww4TNs0hPDi64SonDetuxMNlj1lH9dQdFkUyDB NRCQ== X-Gm-Message-State: APjAAAWNMHQCsDvp7GiDpf+EuPhxOYXrB8YH2lp/g3gB4jj3tq2r/vMt q61GUY8RtfeD6vDbbw1otMFXt+lpDrV4/lvlLV6/8jvX7M9LxlZyxfh03C+qhGJZPMKuVVYgsPF M71g3D0a5dPXSE4Y+a8FK+zK6fahPlHZsl/85aO3NC6R3TMUnLwAEcq8do0fx2ysOaTF3mnw1aE AgnQa1CXQ3V7/RmHaFasKyJCJzHvwQlSB5eCdSL6k8aoslGgcSvfkUX/I0 X-Google-Smtp-Source: APXvYqzWp8nS9da9KEfyjHY/M8uyDJA0jtWJmMb4tPsmF2lvQwr6Py8pkdKnvXP4a7msS/KB+rPH1CR18GZCZwO2N9E= X-Received: by 2002:a9d:5616:: with SMTP id e22mr17867371oti.366.1576299169849; Fri, 13 Dec 2019 20:52:49 -0800 (PST) MIME-Version: 1.0 References: <74F4D0C2ACDFA04BA40C6475ADAE217529FA3FDA@pdexchbalwst03.ad.insee.intra> In-Reply-To: <74F4D0C2ACDFA04BA40C6475ADAE217529FA3FDA@pdexchbalwst03.ad.insee.intra> From: Ashesh Vashi Date: Sat, 14 Dec 2019 10:22:39 +0530 Message-ID: Subject: Re: [Pgadmin] [Docker] servers.json import fails when running in desktop mode To: Levitt Olivier Cc: "pgadmin-hackers@postgresql.org" Content-Type: multipart/alternative; boundary="0000000000001437cc0599a2c0a5" X-CLOUD-SEC-AV-Info: edb,google_mail,monitor X-CLOUD-SEC-AV-Sent: true X-Gm-Spam: 0 X-Gm-Phishy: 0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --0000000000001437cc0599a2c0a5 Content-Type: text/plain; charset="UTF-8" On Sat, Dec 14, 2019 at 3:53 AM Levitt Olivier wrote: > Hi, > > When running the docker image in desktop mode > (PGADMIN_CONFIG_SERVER_MODE=False), no user is created. That is expected > behaviour. > But then the code that imports the servers.json pre-configuration fails as > it ties the import to the default user. > > I think line 40 of entrypoint.sh ( > https://git.postgresql.org/gitweb/?p=pgadmin4.git;a=blob;f=pkg/docker/entrypoint.sh;h=47d14bf2d415777c64b221fb1fc75d61c5e3cecc;hb=HEAD) > should not specify a user when running in dekstop mode. > I tested it without --user parameter and it successfully imported the > servers.json configuration. > > Should I submit a patch ? First time contributing to Pgadmin :) > Please do. -- Thanks & Regards, Ashesh Vashi EnterpriseDB INDIA: Enterprise PostgreSQL Company *http://www.linkedin.com/in/asheshvashi* > > Regards, > Olivier Levitt > > > --0000000000001437cc0599a2c0a5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Sat, Dec 14, 2019 at 3:53 AM Levitt Olivier &= lt;olivier.levitt@insee.fr&g= t; wrote:
Hi,
When running the docker image in desktop mode (PGADMIN_CONFIG_SERVER_MODE= =3DFalse), no user is created. That is expected behaviour.
But then the code that imports the servers.json pre-configuration fails as = it ties the import to the default user.=C2=A0

I think line 40 of entrypoint.sh (https://git.postgresql.org/gitweb/?p=3Dpgadmin4.git;a=3Dblob;f=3Dpkg/doc= ker/entrypoint.sh;h=3D47d14bf2d415777c64b221fb1fc75d61c5e3cecc;hb=3DHEAD) should not specify a user when running in dekstop mode.
I tested it without --user parameter and it successfully imported the serve= rs.json configuration.

Should I submit a patch ? First time contributing to Pgadmin :)
Please do.
http://www.linkedin.com/in/asheshvashi=C2=A0

Regards,
Olivier Levitt


--0000000000001437cc0599a2c0a5--