googlesamples / unity-jar-resolver

Unity plugin which resolves Android & iOS dependencies and performs version management
Other
1.25k stars 343 forks source link

[Bug] Non-secure network connections disabled in Player Settings #484

Closed Thaina closed 1 year ago

Thaina commented 2 years ago

[REQUIRED] Please fill in the following fields:

[REQUIRED] Please describe the issue here:

Weird error and warning while using EDM4U

image

It seem the config for using secure connection was needed to disabled to shut these error

Please answer the following, if applicable:

What's the issue repro rate? (eg 100%, 1/5 etc)

What happened? How can we make the problem occur?

I suspect that this below might be the cause?

https://github.com/googlesamples/unity-jar-resolver/blob/d370ab8ef6c9199ae8d033c9d75e8f727e8b0c3d/source/VersionHandlerImpl/src/EditorMeasurement.cs#L516-L517

Any reason using http here though?

google-oss-bot commented 2 years ago

This issue does not seem to follow the issue template. Make sure you provide all the required information.

paulinon commented 2 years ago

Hi @Thaina,

In order to identify what's causing this, could you provide the complete steps needed to replicate the issue?

Thaina commented 2 years ago

@paulinon Just install 1.2.168 by tgz in 2022.1.0b1 android project then close and reopen project it will throw this error every time

I am not sure for your machine but I think default setting for Allow HTTP should be Not Allowed. So it should always cause this error unless it was set as anything but Not Allowed in your project

chkuang-g commented 2 years ago

@Thaina

Thank you for reporting this issue. Seems like Unity 2022 added some security feature which blocks the non-https web request. I wonder why it used http in the first place.

At the meantime, as a workaround, I would recommend you to disable Analytics reporting from our editor tools for now. Here are all the settings:

FranArjona commented 2 years ago

I have followed the recommendation by @chkuang-g and it works well with Unity 2022.1.3f1.

However, in principle Unity is doing the right by blocking non-secure connections, so, please, someone should review the reason why this is using http instead of https, and upgrade it if possible.

devWithKD commented 2 years ago

I am facing similar issues, apart from the workaround provided above, is there any progress on this issue?