-
Notifications
You must be signed in to change notification settings - Fork 81
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
An organization or a project with the slug 'new' or a user with the username 'add' will conflict with the add functions #285
Comments
@seav are there any other similar situations to this? |
Probably, but I haven't checked thoroughly. I only noticed this particular bug when I was fixing #263. |
I looked at the code and tried it on the platform: Organizations and Projects named "New" will conflict with the add new organization and add new project functions. |
There are three ways we can solve this:
|
I prefer solution № 1. |
I think number 2 is the most simple answer at this point and what we should do. |
Is this decided? We can modify the forms and serializers to validate that the slug or username is never 'add' nor 'new'. |
Yes it is decided. We should do the validation for now. |
Form error changes Fix #285 Organization page titles New project wizard page titles Project area titles work Resources title - removed project titles Resources & Map page title Add relationships and resources to location titles Change title to test tests Page title changes Project dashboard title - remove duplicate Add records API URL unit tests Update small table Add support for conditional attributes
Currently, the URLs to add a new organization, project, and user are:
/organizations/new/
/organizations/<org-slug>/projects/new/
/organizations/<org-slug>/members/add/
And the URLs to view the organization and project, and to edit the org member permissions are:
/organizations/<org-slug>/
/organizations/<org-slug>/projects/<project-slug>/
/organizations/<org-slug>/members/<username>/
If the org or project slug is 'new' you can't view the organization or project at all. If the username is 'add', you can't use the above URL to edit this user's permissions. You need to go into each project and change the user's permissions there instead.
The text was updated successfully, but these errors were encountered: