View Issue Details

IDProjectCategoryView StatusLast Update
0019537MMW 5Install/Configpublic2022-11-10 12:11
Reporterrusty Assigned To 
PriorityurgentSeverityminorReproducibilityalways
Status closedResolutionreopened 
Product Version5.0.4 
Target Version5.1Fixed in Version5.0.4 
Summary0019537: Firewall prompt appears twice on Public network
DescriptionWhen installing a clean portable version of MM, the firewall prompt appears twice: once when MM is run the first time, and then again when it is run a second time (it doesn't appear after that).

1 Clean Portable install of MM 5.0.4 and run
--> Import DB dialog appears
2 Click 'Cancel' (don't use an existing DB)
3 Add Location > Local media
--> then the Firewall dialog opens. Click OK.
4 Choose a folder to scan and click OK.
5 Click Next
--> Share media panel of the wizard appears with defaults enabled
6 Click Next
--> The elevation dialog appears.
7 Click OK.
8 Click Done
--> Scan proceeds and Scan results dialog displays. Click Close.
9 Close MM
10 Run MM
--> The firewall dialog displays again!

Note:
- This is a regression from 5.0.3
- The problem with multiple firewall prompts occurs when importing from either MM regular or portable
- Whenever a version of MM is run that's different than the last version that was run, the firewall dialog re-appears (I'm not sure if this is expected or not)
Tagstodoc-KB
Fixed in build2683

Relationships

related to 0018264 closedLudek Firewall Rules: Auto rules needs to be tweaked in order that MM5 gets discoverable by Devices and MMA 
related to 0019519 closedLudek Scan completion dialog can appear blank / Optimize Elevation & Firewall prompts 
related to 0017917 closedLudek Sync: Check connection type 
related to 0019524 closedLudek Welcome page should be rendered after Closing First start Wizard. 

Activities

Ludek

2022-11-04 16:31

developer   ~0070145

I can replicate the Firewall prompt to appear after clicking [Add Location...] > [Local storage...] (i.e. step 3)

but unable to replicate the Firewall prompt appearing again after MM restart (step 10).

Ludek

2022-11-04 16:58

developer   ~0070147

Last edited: 2022-11-04 17:03

OK, I am starting to understand it:

1) Firewall rules are created for both Private and Public network in your case (because you are connected to Public network)
2) MM5 UAC elevation prompt causes to delete the rules and creates it's own only for private networks
3) Upon restart Windows finds that it is allowed only for private networks and thus shows the Firewall dialog again

Mine PC is connected to Private network and thus I couldn't repro...

Ludek

2022-11-04 18:00

developer   ~0070149

Fixed in 2682

rusty

2022-11-06 00:35

administrator   ~0070166

Verified 2682:
MM5 Portable clean: firewall rules update option in wizard disabled by default, firewall notice appears once, and no longer appears when browsing local files in the wizard.
MM5 Portable update: firewall notice appears only once when the update is initially run.
MM5 Regular clean: firewall rules update option in wizard enabled by default, firewall notice appears once, and no longer appears when browsing local files in the wizard.
MM5 Regular update: firewall notice appears only once when the update is initially run.

Leaving Resolved to re-verify with the fix in 0019539

rusty

2022-11-06 01:30

administrator   ~0070171

It turns out that there is still a case in which this bug occurs: when doing a clean install and importing settings via 'Select Folder'.

The issue is documented at #19538

Ludek

2022-11-06 18:46

developer   ~0070176

Last edited: 2022-11-06 20:21

OK, the reason is still the same as in 0019537:0070147
i.e.
1) Firewall rules are created for Public network in your case (because you are connected to Public network) by the first Firewall alert
2) MM5 UAC elevation prompt causes to delete the rules and creates it's own only for private networks
3) Upon restart Windows finds that it is allowed only for private networks and thus shows the Firewall dialog again

As discussed offline, when MM is connected to Public network then MM shouldn't create any own rules at all (as it should be always user responsibility to configure access on Public places).

So the solution should be for MM to detect that it is connected to Public network (and not Private) and in that case:
a) Do not create the auto-conf firewall rules at all (no UAC prompt)
b) Hide or disabled the '[..] Add Windows firewall excepion' checkbox

This is related to issue 0017917 where we should also warn the user after detection of Public profile to eliminate eSupport requests.

I guess this should be resolved together with 0017917 for 5.1

Ludek

2022-11-07 12:26

developer   ~0070183

Moving to 0017917:0070179

Ludek

2022-11-07 16:36

developer   ~0070190

Fixed in 5.0.4 the way that:

1) UAC prompt isn't shown once Public network profile is detected
2) Firewall prompt is there only once

In 5.1.0.2800 added the prompt to switch from Public to Private (per 0017917 )

peke

2022-11-10 12:11

developer   ~0070232

Verified 2683

Added todoc to Update 3. from https://www.mediamonkey.com/support/knowledge-base/mediamonkey-upnp-dlna/mediamonkey-upnp-server-inaccessible/ to tell users how to do it.

Note it is same in Win 10 and Win 11
image.png (50,575 bytes)   
image.png (50,575 bytes)