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

TypeError Exception on /+misc/sitemap #1836

Open
UlrichB22 opened this issue Feb 10, 2025 · 0 comments
Open

TypeError Exception on /+misc/sitemap #1836

UlrichB22 opened this issue Feb 10, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@UlrichB22
Copy link
Collaborator

When trying /+misc/sitemap I get this traceback:

ERROR moin Exception on /+misc/sitemap [GET]
Traceback (most recent call last):
  File "/mymoin/moin-venv-python3/lib/python3.12/site-packages/flask/app.py", line 1511, in wsgi_app
    response = self.full_dispatch_request()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/mymoin/moin-venv-python3/lib/python3.12/site-packages/flask/app.py", line 919, in full_dispatch_request
    rv = self.handle_user_exception(e)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/mymoin/moin-venv-python3/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request
    rv = self.dispatch_request()
         ^^^^^^^^^^^^^^^^^^^^^^^
  File "/mymoin/moin-venv-python3/lib/python3.12/site-packages/flask/app.py", line 902, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)  # type: ignore[no-any-return]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/mymoin/moin/src/moin/apps/misc/views.py", line 51, in sitemap
    sitemap.sort()
TypeError: '<' not supported between instances of 'str' and 'CompositeName'

The comment in misc/views.py says "Google (and others) XML sitemap". Is this still needed? Is there any reference?

Same question applies to /+misc/url_names, this map is used to implement SisterWikis. We just dropped the SisterWiki
functionality. There is a Todo to remove deleted items from this list.

@UlrichB22 UlrichB22 added the bug Something isn't working label Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant