Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: If page is loaded thru http protocol (not https) then all user java scripts not loaded #4777

Closed
1 task done
ygorigor opened this issue Sep 20, 2024 · 2 comments
Closed
1 task done
Labels
bug feedback javascript Pull requests that update Javascript code

Comments

@ygorigor
Copy link
Contributor

What is the bug? (in English)

If a project page is loaded thru http protocol (not https) then all user java scripts not loaded on first load. Have to refresh page once.

Steps to reproduce the issue

  1. Load a project web page using http protocol
  2. All user defined java scripts are not loaded
  3. Refresh webpage.
    OR
  4. Load a project web page using http protocol
  5. Press CTRL + F5
  6. All user defined java scripts are not loaded
  7. Refresh webpage.

Versions, safeguards, check summary etc

Versions :

  • Lizmap Web Client : 3.8.1
  • Lizmap plugin : 4.4.0
  • QGIS Desktop : 3.34.11
  • QGIS Server : 3.34.11
  • QGIS Server plugin lizmap_server : 2.10.1
  • QGIS Server plugin wfsOutputExtension : 1.8.2
List of safeguards :
  • Mode : normal
  • Allow parent folder : yes
  • Number of parent : 2 folder(s)
  • Prevent other drive : yes
  • Prevent PG service : no
  • Prevent PG Auth DB : no
  • Force PG user&pass : no
  • Prevent ECW : yes

Check Lizmap plugin

  • I have done the step just before in the Lizmap QGIS desktop plugin before opening this ticket. Otherwise, my ticket is not considered valid and might get closed.

Operating system

Ubuntu 24.04, Windows 11

Browsers

Chrome, Microsoft Edge

Browsers version

Chrome 125

Relevant log output

No response

@ygorigor ygorigor added the bug label Sep 20, 2024
@Gustry Gustry added the javascript Pull requests that update Javascript code label Sep 20, 2024
@nboisteault
Copy link
Member

@ygorigor I don't think we will fix this issue as http is an insecure protocol.

@ygorigor
Copy link
Contributor Author

ygorigor commented Oct 1, 2024

Ok @nboisteault. As workaround I added a check, if page is through http it will be reloaded one time.

@ygorigor ygorigor closed this as completed Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug feedback javascript Pull requests that update Javascript code
Projects
None yet
Development

No branches or pull requests

3 participants