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

Unfederated repos #348

Closed
gitblit opened this Issue Aug 12, 2015 · 12 comments

Comments

Projects
None yet
1 participant
@gitblit
Owner

gitblit commented Aug 12, 2015

Originally reported on Google Code with ID 52

What steps will reproduce the problem?
1. non-federated repos
2.
3.

What is the expected output? What do you see instead?
nothing

What version of the product are you using? On what operating system?
0.9.0

Please provide any additional information below.

Is´t possible modify the code FederationPullExcutor.java sript, to accept non-federated
repos, and if it possible. how I could do?.

Best regards

Reported by eguervos on 2012-01-30 20:22:33

@gitblit

This comment has been minimized.

Show comment
Hide comment
@gitblit

gitblit Aug 12, 2015

Owner
I think you are asking how to pull non-federated repositories from a remote Gitblit
instance.  The answer is you can't.  That would be bypassing the security restrictions
of the remote Gitblit instance.

If that is not what you are asking about, please rephrase.

Reported by James.Moger on 2012-01-30 20:41:36

Owner

gitblit commented Aug 12, 2015

I think you are asking how to pull non-federated repositories from a remote Gitblit
instance.  The answer is you can't.  That would be bypassing the security restrictions
of the remote Gitblit instance.

If that is not what you are asking about, please rephrase.

Reported by James.Moger on 2012-01-30 20:41:36

@gitblit

This comment has been minimized.

Show comment
Hide comment
@gitblit

gitblit Aug 12, 2015

Owner
Is that indeed, the idea is to have a server that had mirror of others, and to be updated
with all the news, without needing to go beyond the individual clones Gitblit server
and to offer Gitblit server users.
That is, your repo is not shared with other servers that have a cloned.

Reported by eguervos on 2012-01-30 23:02:20

Owner

gitblit commented Aug 12, 2015

Is that indeed, the idea is to have a server that had mirror of others, and to be updated
with all the news, without needing to go beyond the individual clones Gitblit server
and to offer Gitblit server users.
That is, your repo is not shared with other servers that have a cloned.

Reported by eguervos on 2012-01-30 23:02:20

@gitblit

This comment has been minimized.

Show comment
Hide comment
@gitblit

gitblit Aug 12, 2015

Owner
I'm sorry, I don't fully understand your scenario.

Reported by James.Moger on 2012-01-31 12:47:01

Owner

gitblit commented Aug 12, 2015

I'm sorry, I don't fully understand your scenario.

Reported by James.Moger on 2012-01-31 12:47:01

@gitblit

This comment has been minimized.

Show comment
Hide comment
@gitblit

gitblit Aug 12, 2015

Owner
Have a mirror of other repos, using the same configuration mechanism of federation,
but, not being federated to these repos.

Thk

Reported by eguervos on 2012-01-31 17:37:32

Owner

gitblit commented Aug 12, 2015

Have a mirror of other repos, using the same configuration mechanism of federation,
but, not being federated to these repos.

Thk

Reported by eguervos on 2012-01-31 17:37:32

@gitblit

This comment has been minimized.

Show comment
Hide comment
@gitblit

gitblit Aug 12, 2015

Owner
I think you are going to have to hack on this yourself since I still do not understand
what you want.

Reported by James.Moger on 2012-01-31 17:48:41

Owner

gitblit commented Aug 12, 2015

I think you are going to have to hack on this yourself since I still do not understand
what you want.

Reported by James.Moger on 2012-01-31 17:48:41

@gitblit

This comment has been minimized.

Show comment
Hide comment
@gitblit

gitblit Aug 12, 2015

Owner
Federation is designed for mirroring/backup.
The general flow is as follows:

1. A sends token to B
2. B validates token and returns list of repositories that A may pull.  This list excludes
NOT_FEDERATED repositories and also takes into consideration federation sets if the
the token is not an ALL token.
3. A may also filter that list (includes/excludes) and then A pulls the repositories
it wants from that list
4. A marks its new clones as NOT_FEDERATED to prevent C from pulling B's repositories
from A.  This can be overridden by resetting the NOT_FEDERATED flag on A's clones.

If B has excluded repositories from federation they can not be retrieved with any federation
token.  If you really want to get access to those repositories you will have to hack
on B to disregard that flag.

https://github.com/gitblit/gitblit/blob/master/src/com/gitblit/GitBlit.java#L1404

Having said that, why does the existing functionality not work for you?  Perhaps you
can draw me some little ascii diagrams so that I can understand your request.  Otherwise,
I will close this issue shortly as wont fix.

Reported by James.Moger on 2012-02-03 15:06:26

Owner

gitblit commented Aug 12, 2015

Federation is designed for mirroring/backup.
The general flow is as follows:

1. A sends token to B
2. B validates token and returns list of repositories that A may pull.  This list excludes
NOT_FEDERATED repositories and also takes into consideration federation sets if the
the token is not an ALL token.
3. A may also filter that list (includes/excludes) and then A pulls the repositories
it wants from that list
4. A marks its new clones as NOT_FEDERATED to prevent C from pulling B's repositories
from A.  This can be overridden by resetting the NOT_FEDERATED flag on A's clones.

If B has excluded repositories from federation they can not be retrieved with any federation
token.  If you really want to get access to those repositories you will have to hack
on B to disregard that flag.

https://github.com/gitblit/gitblit/blob/master/src/com/gitblit/GitBlit.java#L1404

Having said that, why does the existing functionality not work for you?  Perhaps you
can draw me some little ascii diagrams so that I can understand your request.  Otherwise,
I will close this issue shortly as wont fix.

Reported by James.Moger on 2012-02-03 15:06:26

@gitblit

This comment has been minimized.

Show comment
Hide comment
@gitblit

gitblit Aug 12, 2015

Owner
Thanks for the explicacón, but on the web all that, is more than clear, I think you
get the idea.
I'll see if you understand better with pictures. In the image below, you can see that
there are three directories with repos (which in my case) are unrelated to my project,
but to their family with.

http://www.eswow2.org/files/Sample%20Gitblit.png

Chronologically updated with this script, which is included in the cron.hourly folder
of my S.O. CentOS, with the following contents:

#!/bin/sh
#sript que refresca los repositorios

cd /opt/gitblit/git/CataWorld/CCDB406_PUBLIC.git && git fetch -q > /dev/null
cd /opt/gitblit/git/CataWorld/SkyFire-Community-Tools.git && git fetch -q > /dev/null
cd /opt/gitblit/git/CataWorld/SkyFireEMU.git && git fetch -q > /dev/null
cd /opt/gitblit/git/CataWorld/SkyFireEMU_430.git && git fetch -q > /dev/null
cd /opt/gitblit/git/WoWorld/KriX_YTDB.git && git fetch -q > /dev/null
cd /opt/gitblit/git/WoWorld/mangos.git && git fetch -q > /dev/null
cd /opt/gitblit/git/WoWorld/mangosR2.git && git fetch -q > /dev/null
cd /opt/gitblit/git/WoWorld/mangosR2_scriptdev2.git && git fetch -q > /dev/null
cd /opt/gitblit/git/WoWorld/scriptdev2.git && git fetch -q > /dev/null
cd /opt/gitblit/git/TrinityCore/TrinityCore.git && git fetch -q > /dev/null
cd /opt/gitblit/git/TrinityCore/Venugh_TrinityCore.git && git fetch -q > /dev/null

For this can be done, I had to install Git bash, in addition to separately clone the
repos and upload via FTP, the content of their respective folders .git.

The idea was that as there is a mechanism "FEDERATION", a modification of this, so
that it could have done from the same Gitblit application, without resorting to tricks,
or third party applications.

Bets regards





Reported by eguervos on 2012-02-06 10:37:12

Owner

gitblit commented Aug 12, 2015

Thanks for the explicacón, but on the web all that, is more than clear, I think you
get the idea.
I'll see if you understand better with pictures. In the image below, you can see that
there are three directories with repos (which in my case) are unrelated to my project,
but to their family with.

http://www.eswow2.org/files/Sample%20Gitblit.png

Chronologically updated with this script, which is included in the cron.hourly folder
of my S.O. CentOS, with the following contents:

#!/bin/sh
#sript que refresca los repositorios

cd /opt/gitblit/git/CataWorld/CCDB406_PUBLIC.git && git fetch -q > /dev/null
cd /opt/gitblit/git/CataWorld/SkyFire-Community-Tools.git && git fetch -q > /dev/null
cd /opt/gitblit/git/CataWorld/SkyFireEMU.git && git fetch -q > /dev/null
cd /opt/gitblit/git/CataWorld/SkyFireEMU_430.git && git fetch -q > /dev/null
cd /opt/gitblit/git/WoWorld/KriX_YTDB.git && git fetch -q > /dev/null
cd /opt/gitblit/git/WoWorld/mangos.git && git fetch -q > /dev/null
cd /opt/gitblit/git/WoWorld/mangosR2.git && git fetch -q > /dev/null
cd /opt/gitblit/git/WoWorld/mangosR2_scriptdev2.git && git fetch -q > /dev/null
cd /opt/gitblit/git/WoWorld/scriptdev2.git && git fetch -q > /dev/null
cd /opt/gitblit/git/TrinityCore/TrinityCore.git && git fetch -q > /dev/null
cd /opt/gitblit/git/TrinityCore/Venugh_TrinityCore.git && git fetch -q > /dev/null

For this can be done, I had to install Git bash, in addition to separately clone the
repos and upload via FTP, the content of their respective folders .git.

The idea was that as there is a mechanism "FEDERATION", a modification of this, so
that it could have done from the same Gitblit application, without resorting to tricks,
or third party applications.

Bets regards





Reported by eguervos on 2012-02-06 10:37:12

@gitblit

This comment has been minimized.

Show comment
Hide comment
@gitblit

gitblit Aug 12, 2015

Owner
For us, it's a advantageous to have all the repos related to "our world", in a single
web, without needing to go for each respective locations of the repositories.

Reported by eguervos on 2012-02-06 10:46:16

Owner

gitblit commented Aug 12, 2015

For us, it's a advantageous to have all the repos related to "our world", in a single
web, without needing to go for each respective locations of the repositories.

Reported by eguervos on 2012-02-06 10:46:16

@gitblit

This comment has been minimized.

Show comment
Hide comment
@gitblit

gitblit Aug 12, 2015

Owner
Ok, I think I understand now.
Please read this issue and tell me if this is what you mean:

http://code.google.com/p/gitblit/issues/detail?id=5

Reported by James.Moger on 2012-02-06 13:16:10

Owner

gitblit commented Aug 12, 2015

Ok, I think I understand now.
Please read this issue and tell me if this is what you mean:

http://code.google.com/p/gitblit/issues/detail?id=5

Reported by James.Moger on 2012-02-06 13:16:10

@gitblit

This comment has been minimized.

Show comment
Hide comment
@gitblit

gitblit Aug 12, 2015

Owner
Yes do it!!!

If you've seen in the picture above, all repos mirrored "is frocen", for the reasons
you've exposed in the issue that you've indicated above.

Good would be to use the federated to do, but for unfederated repos.

Could be an option?

I see that this project would need a Wishlist, ha haha..

Thk x mach

Reported by eguervos on 2012-02-06 15:29:18

Owner

gitblit commented Aug 12, 2015

Yes do it!!!

If you've seen in the picture above, all repos mirrored "is frocen", for the reasons
you've exposed in the issue that you've indicated above.

Good would be to use the federated to do, but for unfederated repos.

Could be an option?

I see that this project would need a Wishlist, ha haha..

Thk x mach

Reported by eguervos on 2012-02-06 15:29:18

@gitblit

This comment has been minimized.

Show comment
Hide comment
@gitblit

gitblit Aug 12, 2015

Owner
Sorry I meant "is forzen"

Reported by eguervos on 2012-02-06 15:35:02

Owner

gitblit commented Aug 12, 2015

Sorry I meant "is forzen"

Reported by eguervos on 2012-02-06 15:35:02

@gitblit

This comment has been minimized.

Show comment
Hide comment
@gitblit

gitblit Aug 12, 2015

Owner
Great.  I am merging this into issue 301.

Reported by James.Moger on 2012-02-06 15:45:59

  • Status changed: Duplicate
  • Labels added: Type-Enhancement
  • Labels removed: Type-Defect
  • Merged into: #301
Owner

gitblit commented Aug 12, 2015

Great.  I am merging this into issue 301.

Reported by James.Moger on 2012-02-06 15:45:59

  • Status changed: Duplicate
  • Labels added: Type-Enhancement
  • Labels removed: Type-Defect
  • Merged into: #301
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment