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

Location Search in MapStore2 does not work with umlauts #5750

Closed
ghost opened this issue Feb 21, 2020 · 3 comments
Closed

Location Search in MapStore2 does not work with umlauts #5750

ghost opened this issue Feb 21, 2020 · 3 comments
Assignees
Labels
frontend Issues regarding Frontend and styling wontfix Stale Bot: Stale issue

Comments

@ghost
Copy link

ghost commented Feb 21, 2020

This is an issue from geonode-mapstore-client and should be fixed in geonode rather than geonode-mapstore-client, since it seems to be related to the proxy of geonode. (GeoNode/geonode-mapstore-client#32)

Expected Behavior

Search for an Adress like "München" or "Saarbrücken"
The result should be returned

Actual Behavior

The search tool shows an error:
image

The logs show following error:

Traceback:  

File "/usr/local/lib/python2.7/site-packages/django/core/handlers/exception.py" in inner
  41.             response = get_response(request)

File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _legacy_get_response
  249.             response = self._get_response(request)

File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response
  187.                 response = self.process_exception_by_middleware(e, request)

File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response
  185.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/usr/local/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view
  149.                     response = view_func(request, *args, **kwargs)

File "/usr/local/lib/python2.7/site-packages/geonode/proxy/views.py" in proxy
  170.                                             user=request.user)

File "/usr/local/lib/python2.7/site-packages/geonode/utils.py" in request
  1410.                 url=urllib.unquote(url).decode('utf8'),

File "/usr/local/lib/python2.7/encodings/utf_8.py" in decode
  16.     return codecs.utf_8_decode(input, errors, True)

Exception Type: UnicodeEncodeError at /proxy/
Exception Value: 'ascii' codec can't encode characters in position 45-46: ordinal not in range(128)

Steps to Reproduce the Problem

  1. go to master.demo.geonode.org
  2. Search for "Saarbrücken"

Specifications

  • GeoNode version: 2.10.1
  • Installation method (manual, GeoNode Docker, SPCGeoNode Docker): Docker
  • Platform:
  • Additional details:
@t-book t-book added the frontend Issues regarding Frontend and styling label Mar 17, 2020
@gannebamm gannebamm removed the frontend Issues regarding Frontend and styling label Apr 2, 2020
@gannebamm gannebamm added this to the 3.0 milestone Apr 2, 2020
@gannebamm
Copy link
Contributor

As tested by @t-book this is already fixed

@t-book t-book modified the milestones: 3.0, 2.10.5 May 28, 2020
@t-book t-book reopened this May 28, 2020
@t-book
Copy link
Contributor

t-book commented May 28, 2020

looks like it still exists in 2.10.4

@t-book t-book added the frontend Issues regarding Frontend and styling label Jul 8, 2020
@afabiani afabiani removed this from the 2.10.5 milestone Jul 10, 2020
@stale
Copy link

stale bot commented Sep 10, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix Stale Bot: Stale issue label Sep 10, 2020
@stale stale bot closed this as completed Sep 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend Issues regarding Frontend and styling wontfix Stale Bot: Stale issue
Projects
None yet
Development

No branches or pull requests

3 participants