WeblateOrg / weblate

Web based localization tool with tight version control integration.
https://weblate.org/
GNU General Public License v3.0
4.54k stars 1.01k forks source link

value to long for type character varying(80) #1549

Closed JesusZapata closed 7 years ago

JesusZapata commented 7 years ago

Steps to reproduce

  1. I have a repository with long name https://github.com/Vauxoo/runbot_branch_remote_name_grp_feature2/tree/fast-travis-oca
  2. I create the project manually using the follow command
django-admin shell -c "import weblate.trans.models.project as project; project.Project(name='github.com:vauxoo-dev/runbot_branch_remote_name_grp_feature2 (fast-travis-oca)', slug='github_com_vauxoo-dev_runbot_runbot_branch_remote_name_grp_feature2_fast-travis-oca', web='github.com/vauxoo-dev/runbot_branch_remote_name_grp_feature2').save()"
  1. The project was created well bud the console show the follow messages image

Actual behaviour

Error when the name of the project has more of 80 character

Expected behaviour

Support name of project long I think what 160 character is enough

Server configuration

Please paste the output of command ./manage.py list_versions over here image

JesusZapata commented 7 years ago

@nijel Could do you help me with this issue? Maybe could you show me in which file is created that field in order to create the pull request

nijel commented 7 years ago

The maximal length for name has been 100 since beginning (a6e27df223). But it seems to be caused by permissions code, where the group name length is indeed limited to 80.

nijel commented 7 years ago

Can't you just use something more reasonable as project name?

In any case either Weblate should allow this or reject it when creating project. As I currently do not see any easy workaround of the Group name limitation, we will probably impose limits on project name...

JesusZapata commented 7 years ago

Ok, thanks I'll make the name more short to my project

nijel commented 7 years ago

I'll keep this open as we at least should fix discrepancy between project and group length limits.