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

Project/Component creation via REST API now shows an Error message in the web interface #12600

Closed
2 tasks done
luebbe opened this issue Sep 26, 2024 · 6 comments
Closed
2 tasks done
Assignees
Labels
bug Something is broken.
Milestone

Comments

@luebbe
Copy link
Contributor

luebbe commented Sep 26, 2024

Describe the issue

We are using a command line application to create/update/delete weblate projects and components via the rest api. The client uploads a zip file and sets the file masks for po/pot files.
This combination has been working flawlessly for several years up to and including Weblate 5.6.2.

Since we upgraded Weblate to 5.7.2 (directly from 5.6.2), the project/component creation via the rest api still works. Weblate returns a "201 - created" and the project with its components and all languages shows up in the web ui. Nothing seems to be missing.
But the web UI shows a red warning icon for each component and inside the component for each language which leads to the following message:

Project view

grafik

Component view

grafik

Warning for the component "User Interface"

grafik

It says "no matching file mask", but this file mask was correct for the past years. Weblate has also obviously found all languages inside the .zip file. Otherwise the overview of the "User Interface" component wouldn't show any languages or their translation status.

I have searched the issues mentioned in the 5.7.* changelogs for "component", "path" and "mask" and found nothing that hinted at changes in this area.

I already tried

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

Steps to reproduce the behavior

Create a project with its components from a .zip file using the rest api

Expected behavior

Project component creation without the "no matching file mask" error.

Screenshots

No response

Exception traceback

No response

How do you run Weblate?

Docker container

Weblate versions

I have no access to the docker installation, but we upgraded from 5.6.2 to 5.7.2 about two weeks ago. If needed, I can ask for the information and append it here.

Weblate deploy checks

No response

Additional context

No response

@nijel
Copy link
Member

nijel commented Sep 26, 2024

In case the alert disappears on its own, this is already fixed by 3b91257.

There might also be an issue with using backslash \ instead of forward slash / in the mask (I'm surprised that it works at all).

@nijel nijel added the bug Something is broken. label Sep 26, 2024
@nijel nijel added this to the 5.8 milestone Sep 26, 2024
@nijel nijel self-assigned this Sep 26, 2024
@luebbe
Copy link
Contributor Author

luebbe commented Sep 26, 2024

Thanks for your reply. The backslash has always worked for us. I thought that maybe there were now stricter checks on using backslash instead of forward slash and was about to test it with forward slashes instead.

@nijel
Copy link
Member

nijel commented Sep 26, 2024

As far as I know, there is no change in that. But such thing can change unintentionally, as this is not something we would be testing or claiming to work.

@luebbe
Copy link
Contributor Author

luebbe commented Sep 27, 2024

As you have predicted, the warning has disappeared over night. So we just wait until the next relase which will make the warning disappear quicker. Thank you.

@nijel
Copy link
Member

nijel commented Sep 27, 2024

It will make it disappear directly upon parsing translations. The issue is that the component is initially created blank, what triggers the alert until the translations are parsed.

@nijel nijel closed this as completed Sep 27, 2024
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

No branches or pull requests

2 participants