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

REST API: Translation instances cannot be found under their URLs when inside a category #9901

Closed
2 tasks done
m-aciek opened this issue Sep 9, 2023 · 1 comment · Fixed by #9902
Closed
2 tasks done
Assignees
Labels
bug Something is broken.
Milestone

Comments

@m-aciek
Copy link
Contributor

m-aciek commented Sep 9, 2023

Describe the issue

I'm getting 404s when trying to GET a translation instance which has a category.

I already tried

  • I've read and searched the documentation.
  • I've searched for similar issues in this repository.

Steps to reproduce the behavior

  1. Component's translation list endpoint: https://hosted.weblate.org/api/components/python-docs/latest%252Fbugs/translations/
  2. The translation inside points to https://hosted.weblate.org/api/translations/python-docs/latest%252Fbugs/pl/ which gives 404.
  3. The translation is present at the "old" non-category URL: https://hosted.weblate.org/api/translations/python-docs/bugs/pl/

Expected behavior

No response

Screenshots

No response

Exception traceback

No response

How do you run Weblate?

weblate.org service

Weblate versions

Weblate weblate-5.0-292-g754f16e286 Django 4.2.5 siphashc 2.1 translate-toolkit 3.10.1 lxml 4.9.3 Pillow 10.0.0 nh3 0.2.14 python-dateutil 2.8.2 social-auth-core 4.4.2 social-auth-app-django 5.3.0 django-crispy-forms 2.0 oauthlib 3.2.2 django-compressor 4.4 djangorestframework 3.14.0 django-filter 23.2 django-appconf 1.0.5 user-agents 2.2.0 filelock 3.12.3 rapidfuzz 3.2.0 openpyxl 3.1.2 celery 5.3.4 django-celery-beat 2.5.0 kombu 5.3.2 translation-finder 2.15 weblate-language-data 2023.5 html2text 2020.1.16 pycairo 1.24.0 PyGObject 3.44.1 diff-match-patch 20230430 requests 2.31.0 django-redis 5.3.0 hiredis 2.2.3 sentry-sdk 1.30.0 Cython 3.0.2 misaka 2.1.1 GitPython 3.1.34 borgbackup 1.2.6 pyparsing 3.1.1 ahocorasick_rs 0.16.0 python-redis-lock 4.0.0 charset-normalizer 3.2.0 Python 3.9.2 Git 2.30.2 psycopg2-binary 2.9.7 phply 1.2.6 ruamel.yaml 0.17.32 tesserocr 2.6.1 boto3 1.28.40 zeep 4.2.1 aeidon 1.12 iniparse 0.5 mysqlclient 2.2.0 Mercurial 6.5.1 git-svn 2.30.2 git-review 2.3.1 PostgreSQL server 13.9

Weblate deploy checks

No response

Additional context

No response

@nijel nijel self-assigned this Sep 10, 2023
@nijel nijel added the bug Something is broken. label Sep 10, 2023
@nijel nijel added this to the 5.0.1 milestone Sep 10, 2023
nijel added a commit to nijel/weblate that referenced this issue Sep 10, 2023
nijel added a commit to nijel/weblate that referenced this issue Sep 10, 2023
nijel added a commit that referenced this issue Sep 10, 2023
@github-actions
Copy link

Thank you for your report; the issue you have reported has just been fixed.

  • In case you see a problem with the fix, please comment on this issue.
  • In case you see a similar problem, please open a separate issue.
  • If you are happy with the outcome, don’t hesitate to support Weblate by making a donation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants