Giter Site home page Giter Site logo

Comments (13)

andig avatar andig commented on September 24, 2024

No osx. Can you check in the developer pane how the rquest looks? Http body/ response?

from volkszaehler.org.

justinotherguy avatar justinotherguy commented on September 24, 2024

Thanks for the good questions :-)

from volkszaehler.org.

andig avatar andig commented on September 24, 2024

Reproducible on Windows FF35

from volkszaehler.org.

andig avatar andig commented on September 24, 2024

Mhm. Looks like a valid JSONP request: http://demo.volkszaehler.org/middleware.php/entity.json?padding=jQuery21305383623512019367_1422096647035&_=1422096647037

Wondering if this is part of the problem: http://stackoverflow.com/questions/4281274/jquery-ajax-404-handling

I'll look into this...

from volkszaehler.org.

andig avatar andig commented on September 24, 2024

Ok, Firefox is blocking "insecure content" on the https page. Once disabled, problem is gone. As you still have the problem, could you check what is being blocked by ff?

from volkszaehler.org.

andig avatar andig commented on September 24, 2024

Found it. The public MW request is http, not https: http://demo.volkszaehler.org/middleware.php/entity.json?padding=jQuery21301786527374471366_1422097116416&_=1422097116417

Now need to find why and where...

from volkszaehler.org.

andig avatar andig commented on September 24, 2024

Could you please check your options.json? How are the middlewares configured? Explicit http preventing https? If yes, could you check if this works:

remoteMiddleware: [{
    title: 'Volkszaehler Demo',
    url: '//demo.volkszaehler.org/middleware.php'
}],

from volkszaehler.org.

justinotherguy avatar justinotherguy commented on September 24, 2024

bingo! :-)
options.js has the default setting (see https://github.com/volkszaehler/volkszaehler.org/blob/master/htdocs/frontend/javascripts/options.js#L39), so it is set to http, not https.
I'd prefer to set the default to https (or have another entry with https; one of them could have a hint in its description); I'm surprised that omitting the protocol actually works; so - despite my lack of understanding why - that does work as well. If this is the way it should behave without the protocol, we could set it to that, as well. My first choice would be https, though.
Your opinion?

from volkszaehler.org.

justinotherguy avatar justinotherguy commented on September 24, 2024

Update:
Safari (on OSX as well as iOS) seems to dislike the new setting :-/
Apparantly the mix of http and https is the root cause.
Steps to reproduce:

from volkszaehler.org.

andig avatar andig commented on September 24, 2024

@justinotherguy what is the specific error displayed in the firefox console (developer console, opens with F12 on Windows)? What are the HTTP request/ response?

from volkszaehler.org.

andig avatar andig commented on September 24, 2024

@justinotherguy the problem is your certificate. Try https://demo.volkszaehler.org/middleware.php/entity.json?padding=jQuery21304080840314272791_1422543722973&_=1422543722974

Firefox:

demo.volkszaehler.org uses an invalid security certificate. 
The certificate is not trusted because no issuer chain was provided. 
(Error code: sec_error_unknown_issuer)

Chrome:

This server could not prove that it is demo.volkszaehler.org; its security certificate is not trusted by your computer's operating system. This may be caused by a misconfiguration or an attacker intercepting your connection.

Proceed to demo.volkszaehler.org (unsafe)

NET::ERR_CERT_AUTHORITY_INVALID

Therefore, the solution to this problem must be:

  1. provide a real certificate if you want to use https
  2. change the setting back to http and ensure that http will remain available
  3. force every user to accept a security exception and document this behaviour
  1. ist actually what was in place before. It is valid as a default but not for demo when it's hosted on https.

For now, I'll change options.js back to http and you'll have to manually switch to your liking.

from volkszaehler.org.

andig avatar andig commented on September 24, 2024

@justinotherguy can we close this?

from volkszaehler.org.

justinotherguy avatar justinotherguy commented on September 24, 2024
  1. sorry for not responding any sooner!
  2. I don't think the cert is the issue - I have installed to root CA cert in my browser, the error message comes up anyway
  3. the error message (in FF, when I have set the URL to "http://" in options.js and access http://demo... is shown here: #231 (comment)
  4. apparantly my comment #231 (comment) ("bingo!") does not refer to your comment #231 (comment) ("url: '//demo"), but to your comment #231 (comment) ("Found it. The public MW request is http, not https") -> from what I can tell, using "url:'//demo" seems to fix all cases mentioned above (it's the setting that's still present in demo.volkszaehler.org).

I suggest, we'll set options.js to "url:'//demo" - agreed?

from volkszaehler.org.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.