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

wxGUI/datacatalog: fix incorrect entry invalid (broken) regular expression #1267

Merged

Conversation

tmszi
Copy link
Member

@tmszi tmszi commented Jan 22, 2021

To Reproduce:

Steps to reproduce the behavior:

  1. Launch wxGUI
  2. On the Data page (tab) write e.g. asterisk symbol in the search widget
  3. See error message
Traceback (most recent call last):
  File
"/usr/lib64/grass79/gui/wxpython/datacatalog/toolbars.py",
line 68, in <lambda>

self.filter.GetValue(), self.filter_element))
  File
"/usr/lib64/grass79/gui/wxpython/datacatalog/catalog.py",
line 142, in Filter

self.tree.Filter(text=text, element=element)
  File
"/usr/lib64/grass79/gui/wxpython/datacatalog/tree.py", line
1663, in Filter

self._model = self._orig_model.Filtered(method='filtering',
name=re.compile(name))
  File "/usr/lib64/python3.6/re.py", line 233, in compile

return _compile(pattern, flags)
  File "/usr/lib64/python3.6/re.py", line 301, in _compile

p = sre_compile.compile(pattern, flags)
  File "/usr/lib64/python3.6/sre_compile.py", line 562, in
compile

p = sre_parse.parse(p, flags)
  File "/usr/lib64/python3.6/sre_parse.py", line 855, in
parse

p = _parse_sub(source, pattern, flags & SRE_FLAG_VERBOSE, 0)
  File "/usr/lib64/python3.6/sre_parse.py", line 416, in
_parse_sub

not nested and not items))
  File "/usr/lib64/python3.6/sre_parse.py", line 616, in
_parse

source.tell() - here + len(this))
sre_constants
.
error
:
nothing to repeat at position 0

@tmszi tmszi added bug Something isn't working GUI wxGUI related labels Jan 22, 2021
@petrasovaa
Copy link
Contributor

Thanks for catching this!

@petrasovaa petrasovaa merged commit 8ddc1b2 into OSGeo:master Jan 22, 2021
@neteler neteler added this to the 8.0.0 milestone Dec 9, 2021
ninsbl pushed a commit to ninsbl/grass that referenced this pull request Oct 26, 2022
ninsbl pushed a commit to ninsbl/grass that referenced this pull request Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working GUI wxGUI related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants