From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <t.lamprecht@proxmox.com>
Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (2048 bits))
 (No client certificate requested)
 by lists.proxmox.com (Postfix) with ESMTPS id 07AB2637BD
 for <pve-user@lists.proxmox.com>; Tue, 22 Sep 2020 20:18:59 +0200 (CEST)
Received: from firstgate.proxmox.com (localhost [127.0.0.1])
 by firstgate.proxmox.com (Proxmox) with ESMTP id F0901940B
 for <pve-user@lists.proxmox.com>; Tue, 22 Sep 2020 20:18:58 +0200 (CEST)
Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com
 [212.186.127.180])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (2048 bits))
 (No client certificate requested)
 by firstgate.proxmox.com (Proxmox) with ESMTPS id 58C6192C6
 for <pve-user@lists.proxmox.com>; Tue, 22 Sep 2020 20:18:57 +0200 (CEST)
Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1])
 by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 0C364454AF;
 Tue, 22 Sep 2020 20:18:57 +0200 (CEST)
To: Proxmox VE user list <pve-user@lists.proxmox.com>,
 "Bertorello, Marco" <me@marcobertorello.it>, chris@itg.uy
References: <0eca6cfc-96c5-ab78-1dea-0e2dc2f043b7@marcobertorello.it>
From: Thomas Lamprecht <t.lamprecht@proxmox.com>
Message-ID: <989e0a2e-50f1-8e15-0378-b6b488dd45f8@proxmox.com>
Date: Tue, 22 Sep 2020 20:18:55 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:81.0) Gecko/20100101
 Thunderbird/81.0
MIME-Version: 1.0
In-Reply-To: <0eca6cfc-96c5-ab78-1dea-0e2dc2f043b7@marcobertorello.it>
Content-Type: text/plain; charset=iso-8859-15
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable
X-SPAM-LEVEL: Spam detection results:  0
 AWL -0.183 Adjusted score from AWL reputation of From: address
 KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment
 NICE_REPLY_A           -0.001 Looks like a legit reply (A)
 RCVD_IN_DNSWL_MED        -2.3 Sender listed at https://www.dnswl.org/,
 medium trust
 SPF_HELO_NONE           0.001 SPF: HELO does not publish an SPF Record
 SPF_PASS               -0.001 SPF: sender matches SPF record
 URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See
 http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more
 information. [dart.dev, proxmox.com]
Subject: Re: [PVE-User] New Mobile App
X-BeenThere: pve-user@lists.proxmox.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Proxmox VE user list <pve-user.lists.proxmox.com>
List-Unsubscribe: <https://lists.proxmox.com/cgi-bin/mailman/options/pve-user>, 
 <mailto:pve-user-request@lists.proxmox.com?subject=unsubscribe>
List-Archive: <http://lists.proxmox.com/pipermail/pve-user/>
List-Post: <mailto:pve-user@lists.proxmox.com>
List-Help: <mailto:pve-user-request@lists.proxmox.com?subject=help>
List-Subscribe: <https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-user>, 
 <mailto:pve-user-request@lists.proxmox.com?subject=subscribe>
X-List-Received-Date: Tue, 22 Sep 2020 18:18:59 -0000

On 22.09.20 16:18, Bertorello, Marco wrote:
> Hi PVE users, great news:
>=20
> https://forum.proxmox.com/threads/new-mobile-app-for-proxmox-ve.76317/
>=20
> Unfortunately, I cannot test this app because my servers are behind a
> reverse proxy running on standard 443/HTTPS port, while for the app
> https and :8006 are implied.
>=20
> I hope this will change in future, the app seems very cool!

OK, I checked it. While in general other ports than 8006 work just
fine, there's a bug with the https 443 one.

The reason for this is that the dart Uri.hasPort[0] property is queried
when checking if the passed URL has no port added and thus the implied
8006 port should be added[1]. For https and port 443 the port is detected=

as "default" and omitted, thus this is always false for that, argh!

So, if I do a reverse proxy on port 444 it works, on 444 not.

We'll fix this with the next release.

cheers,
Thomas

[0]: https://api.dart.dev/stable/2.9.1/dart-core/Uri/hasPort.html
[1]: https://git.proxmox.com/?p=3Dflutter/proxmox_login_manager.git;a=3Db=
lob;f=3Dlib/proxmox_login_form.dart;h=3D2a4f5011279944ca508aeb69ed11f5d3d=
6a4ae36;hb=3DHEAD#l470