Bug report #8452

Unicode characters in plugin repository titles result in Python error

Added by artfwo - over 10 years ago. Updated over 10 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Python plugins
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:fixed
Crashes QGIS or corrupts data:No Copied to github as #:17221

Description

This bug is related to #8410 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):

An error occured during execution of following code:
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'

Associated revisions

Revision ec2992e8
Added by Alexander Bruy over 10 years ago

correct handling for non ASCII characters in plugin installer (fix #8452)

History

#1 Updated by artfwo - over 10 years ago

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

#2 Updated by Alexander Bruy over 10 years ago

  • Status changed from Open to Closed

#3 Updated by Alexander Bruy over 10 years ago

  • Resolution set to fixed

Also available in: Atom PDF