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

Unicode characters in plugin repository titles result in Python error #17221

Closed
qgib opened this issue Aug 11, 2013 · 3 comments
Closed

Unicode characters in plugin repository titles result in Python error #17221

qgib opened this issue Aug 11, 2013 · 3 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Plugins

Comments

@qgib
Copy link
Contributor

qgib commented Aug 11, 2013

Author Name: artfwo - (artfwo -)
Original Redmine Issue: 8452
Affected QGIS version: master
Redmine category:python_plugins


This bug is related to #17181 but occurs under different conditions in the current daily build (git20130810). It can be reproduced by the following steps:

  1. Add a valid plugin repository with some unicode characters in its title (e.g. 'ф')
  2. Right-click on the repository and choose 'Only show plugins from the selected repository'

The above steps result in an error message (below):

pyplugin_installer.instance().setRepositoryInspectionFilter('ф')


Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/share/qgis/python/pyplugin_installer/installer.py", line 510, in setRepositoryInspectionFilter
    self.reloadAndExportData()
  File "/usr/share/qgis/python/pyplugin_installer/installer.py", line 236, in reloadAndExportData
    self.fetchAvailablePlugins(reloadMode = True)
  File "/usr/share/qgis/python/pyplugin_installer/installer.py", line 116, in fetchAvailablePlugins
    for key in repositories.allEnabled():
  File "/usr/share/qgis/python/pyplugin_installer/installer_data.py", line 213, in allEnabled
    return { self.mInspectionFilter: self.mRepositories[self.mInspectionFilter] }
KeyError: '\\xd1\\x84'
@qgib
Copy link
Contributor Author

qgib commented Aug 11, 2013

Author Name: artfwo - (artfwo -)


The (same?) bug occurs when the repository is deleted.

@qgib
Copy link
Contributor Author

qgib commented Aug 12, 2013

Author Name: Alexander Bruy (@alexbruy)


Fixed in changeset "ec2992e8f9883b3e794c7fe95ce0d6aaa47785ef".


  • status_id was changed from Open to Closed

@qgib
Copy link
Contributor Author

qgib commented Aug 12, 2013

Author Name: Alexander Bruy (@alexbruy)


  • resolution was changed from to fixed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Plugins labels May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Plugins
Projects
None yet
Development

No branches or pull requests

1 participant