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

Disabling IMPORT_LOCAL_PATHS does not work #898

Closed
rugk opened this issue Feb 10, 2017 · 14 comments
Closed

Disabling IMPORT_LOCAL_PATHS does not work #898

rugk opened this issue Feb 10, 2017 · 14 comments
Labels
issue/not-a-bug The reported issue is the intended behavior or the problem is not inside Gitea

Comments

@rugk
Copy link
Contributor

rugk commented Feb 10, 2017

see
gogs/gogs#4033 (comment)
gogs/gogs@ae319da

ref #715


Is this option already integrated or does Gitea behave in a similar way (just without an option to change the behaviour?)?

@rugk
Copy link
Contributor Author

rugk commented Feb 10, 2017

As far as I see in 1.0.1 the local server path import is still possible at least for admins. As said, I also want to disable that.

@minecrafter
Copy link
Contributor

In Gitea, the option is called IMPORT_LOCAL_PATHS: https://github.com/go-gitea/gitea/blob/master/conf/app.ini#L181

@rugk
Copy link
Contributor Author

rugk commented Feb 11, 2017

Even after setting it to false in the UI is is sill shown "or a local server path". (German version)

@minecrafter
Copy link
Contributor

minecrafter commented Feb 11, 2017

The UI still shows but the app.ini setting does work, even trumping the user's permission.

@lunny lunny added this to the 1.1.0 milestone Feb 11, 2017
@lunny lunny added the type/feature Completely new functionality. Can only be merged if feature freeze is not active. label Feb 11, 2017
@lunny lunny removed this from the 1.1.0 milestone Feb 11, 2017
@lunny
Copy link
Member

lunny commented Feb 11, 2017

So this is not an issue?

@rugk
Copy link
Contributor Author

rugk commented Feb 11, 2017

A wrong UI is IMHO an issue.

@lunny
Copy link
Member

lunny commented Feb 11, 2017

Which UI? Could you change this issue's title and put some screenshot here? Or maybe you can fire another issue and close this one?

@rugk rugk changed the title ENABLE_LOCAL_PATH_MIGRATION integrated? UI still claims local imports work when IMPORT_LOCAL_PATHS is disabled Feb 11, 2017
@rugk
Copy link
Contributor Author

rugk commented Feb 11, 2017

See @minecrafter replies…

@lunny lunny added this to the 1.1.0 milestone Feb 11, 2017
@lunny lunny added type/bug and removed type/feature Completely new functionality. Can only be merged if feature freeze is not active. labels Feb 11, 2017
@lunny
Copy link
Member

lunny commented Feb 14, 2017

I cannot reproduce it on current master 7eb8daf, please see

<span class="help">{{.i18n.Tr "repo.migrate.clone_address_desc"}}{{if .ContextUser.CanImportLocal}} {{.i18n.Tr "repo.migrate.clone_local_path"}}{{end}}</span>
and
func (u *User) CanImportLocal() bool {
. Please feel free to reopen it.

@lunny lunny closed this as completed Feb 14, 2017
@rugk
Copy link
Contributor Author

rugk commented Feb 14, 2017

Ah indeed it is no UI issue, the option does not work in any way. In the config I've set IMPORT_LOCAL_PATHS = false under [security] but as a non-admin user I can still import local repos!

So please reopen. Users cannot do so on GitHub if repo admins close an issue.

Gitea v1.0.1

@rugk rugk changed the title UI still claims local imports work when IMPORT_LOCAL_PATHS is disabled Disabling IMPORT_LOCAL_PATHS does not work Feb 14, 2017
@Bwko
Copy link
Member

Bwko commented Feb 14, 2017

@rugk This feature is added to the latest master not to Gitea v1.0.1

@rugk
Copy link
Contributor Author

rugk commented Feb 14, 2017

Ah, that's the issue, I see…

@tboerger tboerger removed this from the 1.1.0 milestone Feb 14, 2017
@tboerger
Copy link
Member

tboerger commented Feb 14, 2017

Marked as invalid as it correctly works on master.

@rugk
Copy link
Contributor Author

rugk commented Jun 24, 2017

I can confirm it is fixed, however changing the UI would still be nice. It is not useful to first offer the user to "import local repos" and then say, they do not have the privileges to do so, when they actually (try to) do it.

@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
@delvh delvh added issue/not-a-bug The reported issue is the intended behavior or the problem is not inside Gitea and removed reviewed/invalid labels Oct 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/not-a-bug The reported issue is the intended behavior or the problem is not inside Gitea
Projects
None yet
Development

No branches or pull requests

6 participants