Closed
Bug 875142
Opened 11 years ago
Closed 11 years ago
Webapp manifest validator does not support Server Name Indication
Categories
(Marketplace Graveyard :: Validation, defect, P2)
Tracking
(Not tracked)
VERIFIED
FIXED
2013-11-19
People
(Reporter: koesterreich, Assigned: mat)
References
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.43 Safari/537.31 Steps to reproduce: I created a simple manifest file https://www.bonner-nacht.de/manifest.webapp which is delivered with the correct mime-type and defines a launch-path '/' and some icons which are all perfectly accessable. I tried to submit the webapp into marketplace. Actual results: The validator fails with the following output: Error while requesting icon Fehler: A remote resource was requested, but an error prevented the request from completing. This may include connection, DNS, or HTTP issues. Requested resource: https://www.bonner-nacht.de/img/logos/BonnerNacht48.png Expected results: I do not see why it fails. The servers log show only one access for the manifest, but no following requests. I therefore think the validator is broken. Even if there is a problem with my manifest or webserver I cannot fix it because the validator does not give detailed information about the problem.
Reporter | ||
Comment 1•11 years ago
|
||
Reporter | ||
Comment 2•11 years ago
|
||
I also attach a log showing that my client can retrieve the files using wget without problems.
Comment 3•11 years ago
|
||
I tried this out and it's failing the same way for me. I'm not sure why though. The icon is accessible.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 4•11 years ago
|
||
requests.exceptions.SSLError: hostname 'www.bonner-nacht.de' doesn't match either of 'wiki.bonner-nacht.de', 'bonner-nacht.de'
The SSL errors with the www.bonner-nacht.de domain are causing this error. This error is seen with python-requests 1.2.3.
> import requests
> requests.get('https://www.bonner-nacht.de/img/logos/BonnerNacht48.png')
At first, the request hung but now it consistently fails with SSL verification errors.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
Reporter | ||
Comment 5•11 years ago
|
||
Matt, thank you very much for explaining the cause of this error! I am not okay with closing this bug as 'invalid', though. For two reasons: 1.) The cause of the problem seems to be that python-requests does not correctly work with VirtualHosts (multiple domain names on same IP). Other http clients (like Chromium, Firefox, wget, ...) do not have this problem and use the correct ssl certificate for this site. I think the webapp validator should also work with vhosts and the bug in python-requests should be fixed (i will search for an upstream fix). 2.) The webapp validator should forward the error message you gave me to the user and until the python-requests bug is fixed should say "vhosts are not supported yet". Kind regards, Fabian
Reporter | ||
Comment 6•11 years ago
|
||
I just noticed the assignment of ssl certificates to virtual host domain names is called "Server Name Indication".
Summary: Webapp manifest validator fails without reason → Webapp manifest validator does not support Server Name Indication
Reporter | ||
Comment 7•11 years ago
|
||
I just found the issue upstream in python-requests: https://github.com/kennethreitz/requests/issues/749
Reporter | ||
Comment 8•11 years ago
|
||
As a workaround I changed the default certificate to the one for www.bonner-nacht.de, now the validation succeeds.
Comment 9•11 years ago
|
||
Thanks for digging up that commit. It looks like the validator actually uses the version of requests that support this but we seem to hit this error (which is caught and swallowed by requests): >>> from requests.packages.urllib3.contrib import pyopenssl Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/kumar/tmp/app-validator-env2/lib/python2.6/site-packages/requests/packages/urllib3/contrib/pyopenssl.py", line 23, in <module> from ndg.httpsclient.ssl_peer_verification import (ServerSSLCertVerification, ImportError: No module named ndg.httpsclient.ssl_peer_verification We just need some more modules. Basta, r? https://github.com/mozilla/app-validator/pull/10 Zamboni's prod/compiled requirements will need to be fixed up too. We should fix this but P2 since there is a workaround.
Assignee: nobody → kumar.mcmillan
Status: RESOLVED → REOPENED
Priority: -- → P3
Resolution: INVALID → ---
Target Milestone: --- → 2013-07-18
Comment 10•11 years ago
|
||
Fixed in the validator: https://github.com/mozilla/app-validator/commit/9190ff79244f521b0d53a873da2904687f9ddf4b https://github.com/mozilla/app-validator/commit/f604ed588d0fca628e3b7bdfb01bde6329e6cc10 Zamboni patches coming next...
Comment 11•11 years ago
|
||
we'll need to wait on bug 892654 until we can deploy this
Depends on: 892654
Target Milestone: 2013-07-18 → ---
Comment 12•11 years ago
|
||
hmm, this introduces a regression when trying to connect to the BrowserID verifier service. 15:16:40 django_browserid.base:INFO Verification URL: https://verifier.login.persona.org/verify :/Users/kumar/.virtualenvs/zamboni/lib/python2.6/site-packages/django_browserid/base.py:143 15:16:40 requests.packages.urllib3.connectionpool:INFO Starting new HTTPS connection (1): verifier.login.persona.org :/Users/kumar/.virtualenvs/zamboni/lib/python2.6/site-packages/requests/packages/urllib3/connectionpool.py:549 Traceback (most recent call last): File "/usr/local/Cellar/python26/2.6.8/lib/python2.6/wsgiref/handlers.py", line 93, in run self.result = application(self.environ, self.start_response) File "/Users/kumar/.virtualenvs/zamboni/lib/python2.6/site-packages/django/contrib/staticfiles/handlers.py", line 67, in __call__ return self.application(environ, start_response) File "/Users/kumar/.virtualenvs/zamboni/lib/python2.6/site-packages/django/core/handlers/wsgi.py", line 241, in __call__ response = self.get_response(request) File "/Users/kumar/.virtualenvs/zamboni/lib/python2.6/site-packages/django/core/handlers/base.py", line 179, in get_response response = self.handle_uncaught_exception(request, resolver, sys.exc_info()) File "/Users/kumar/.virtualenvs/zamboni/lib/python2.6/site-packages/django/core/handlers/base.py", line 111, in get_response response = callback(request, *callback_args, **callback_kwargs) File "/Users/kumar/.virtualenvs/zamboni/lib/python2.6/site-packages/django/views/decorators/csrf.py", line 77, in wrapped_view return view_func(*args, **kwargs) File "/Users/kumar/.virtualenvs/zamboni/lib/python2.6/site-packages/tastypie/resources.py", line 192, in wrapper response = callback(request, *args, **kwargs) File "/Users/kumar/.virtualenvs/zamboni/lib/python2.6/site-packages/tastypie/resources.py", line 397, in dispatch_list return self.dispatch('list', request, **kwargs) File "/Users/kumar/dev/zamboni/mkt/api/base.py", line 96, in dispatch .dispatch(request_type, request, **kwargs)) File "/Users/kumar/.virtualenvs/zamboni/lib/python2.6/site-packages/tastypie/resources.py", line 427, in dispatch response = method(request, **kwargs) File "/Users/kumar/.virtualenvs/zamboni/lib/python2.6/site-packages/tastypie/resources.py", line 1165, in post_list updated_bundle = self.obj_create(bundle, request=request, **self.remove_api_resource_names(kwargs)) File "/Users/kumar/dev/zamboni/mkt/account/api.py", line 132, in obj_create is_native=bundle.data.get('is_native', False) File "/Users/kumar/dev/zamboni/apps/users/views.py", line 334, in browserid_authenticate url=url, extra_params=extra_params) File "/Users/kumar/.virtualenvs/zamboni/lib/python2.6/site-packages/django_browserid/base.py", line 149, in verify result = _verify_http_request(url, args) File "/Users/kumar/.virtualenvs/zamboni/lib/python2.6/site-packages/django_browserid/base.py", line 86, in _verify_http_request r = requests.post(url, **parameters) File "/Users/kumar/.virtualenvs/zamboni/lib/python2.6/site-packages/requests/api.py", line 88, in post return request('post', url, data=data, **kwargs) File "/Users/kumar/.virtualenvs/zamboni/lib/python2.6/site-packages/requests/api.py", line 44, in request return session.request(method=method, url=url, **kwargs) File "/Users/kumar/.virtualenvs/zamboni/lib/python2.6/site-packages/requests/sessions.py", line 335, in request resp = self.send(prep, **send_kwargs) File "/Users/kumar/.virtualenvs/zamboni/lib/python2.6/site-packages/requests/sessions.py", line 438, in send r = adapter.send(request, **kwargs) File "/Users/kumar/.virtualenvs/zamboni/lib/python2.6/site-packages/requests/adapters.py", line 331, in send raise SSLError(e) SSLError: [Errno bad handshake] I don't understand why. OpenSSL on Mac is outdated (0.98) but even after I rebuilt PyOpenSSL with the 1.01 lib I saw the same problem.
Comment 13•11 years ago
|
||
work in progress: https://github.com/mozilla/zamboni/pull/888
Comment 14•11 years ago
|
||
ashort says this may be a bug in requests. If so, we may need to get a patch upstream.
Comment 15•11 years ago
|
||
Testing this locally, I encountered the issue described here: https://github.com/kennethreitz/requests/issues/749#issuecomment-19284753 Changes to django-browserid result in a slightly different traceback than the above, but the requests.post() call it makes results in a SSLError(SSLError(SSLError('bad handshake', WantReadError()),),) exception. This will require fixing PyOpenSSL support in urllib3 and requests.
Comment 17•11 years ago
|
||
Any update on this? Can we get this done now?
Assignee | ||
Comment 18•11 years ago
|
||
According to the requests issue mentioned in #comment 15: >> The changes in shazow/urllib3#233 (now pulled into urllib3 master) fix the issue for me (SSLError('bad handshake', WantReadError())) which occurred for some urls, some times, in some configurations. Can we get this pulled into requests master? > We'll pull in an up-to-date version into Requests when we release 2.0. =) requests 2.0.1 is out now, so it's worth upgrading locally and check if we can still reproduce the issue we had with 1.2.3.
Comment 19•11 years ago
|
||
Any update on this? This seems to block a few submissions including partners.
Assignee | ||
Comment 20•11 years ago
|
||
requests 2.0.1 is broken in an horrible way (can't even install) : https://github.com/kennethreitz/requests/issues/1732 2.0.0 seems to work though, but I'd need a manifest hosted on a server needing SNI to be sure. Does anyone have a manifest URL that doesn't currently work in production ?
Assignee: kumar.mcmillan → mpillard
Status: REOPENED → ASSIGNED
Priority: P3 → P2
Comment 21•11 years ago
|
||
Please use this manifest to test: https://delicious.com/delicious.webapp
Assignee | ||
Comment 22•11 years ago
|
||
classicning@ : that server doesn't seem to be using SNI ? At first glance it looks like there is an unrelated icon problem (icon size mismatch) :digitarald : can you give me a manifest from a partner that is blocked by this bug ?
Flags: needinfo?(hkirschner)
Target Milestone: --- → 2013-11-19
Comment 23•11 years ago
|
||
The delicious URL reflects the issue discussed here. The validation doesn't fail with the icon mismatch but with the bug related issue: https://marketplace.firefox.com/developers/upload/aca5e24292b44491ad19175f846cda5f . On a related note, I wrote the partner to fix the icons.
Flags: needinfo?(hkirschner)
Assignee | ||
Comment 24•11 years ago
|
||
Fixed in https://github.com/mozilla/zamboni/commit/4b53b93b6b239875df0cdd04383fd90035ca8609 STR: - Go to https://marketplace-dev.allizom.org/developers/validator - Log out, log back in, you shouldn't get any errors - Test that https://delicious.com/delicious.webapp validates - Test a couple extra hosted apps that you know should validate just in case
Status: ASSIGNED → RESOLVED
Closed: 11 years ago → 11 years ago
Resolution: --- → FIXED
Comment 26•11 years ago
|
||
Verified as fixed : http://screencast.com/t/acsgI3K1
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•