Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 14:30

    xuwei-k on master

    Update oauth2-oidc-sdk to 9.10.2 (compare)

  • 14:30
    xuwei-k closed #2838
  • 14:02
    scala-steward review_requested #2838
  • 14:02
    scala-steward opened #2838
  • 12:12
    ahait starred gitbucket/gitbucket
  • Jul 26 22:23

    xuwei-k on master

    prepare Scala 3 (compare)

  • Jul 26 21:56

    xuwei-k on master

    Update logback-classic to 1.2.5 (compare)

  • Jul 26 21:56
    xuwei-k closed #2837
  • Jul 26 18:02
    scala-steward review_requested #2837
  • Jul 26 18:02
    scala-steward opened #2837
  • Jul 26 18:01

    xuwei-k on master

    Update json4s-jackson to 4.0.3 (compare)

  • Jul 26 18:01
    xuwei-k closed #2836
  • Jul 26 16:02
    scala-steward commented #2835
  • Jul 26 16:02
    scala-steward review_requested #2836
  • Jul 26 16:02
    scala-steward opened #2836
  • Jul 26 10:25
    xuwei-k closed #2835
  • Jul 26 09:04
    mlevieux commented #378
  • Jul 26 07:27
    scala-steward review_requested #2835
  • Jul 26 07:27
    scala-steward opened #2835
flyingone
@flyingone
I have just done the setup ( installation using external database on mysql ) ..
xogium
@xogium
hi
flyingone
@flyingone
In my setup of gitbucket, a pull request is visible to all the contributor on repo . How can i restrict it to only repo admin.
xogium
@xogium
I don't think you can do that…
but I coould be wrong
flyingone
@flyingone
So it should be like this .. 1- Let it be visible to all, but only admin can merge it
xogium
@xogium
ah, hmmm maybe there is a setting for this in the repository setting ? Or maybe in the global administration if gitbucket
*of
flyingone
@flyingone
i have 3 options in the repo setting ..
Disable issue tracking and pull requests
Developers can view, create, and comment on issues and pull requests
Developers and guests can view, create, and comment on issues and pull requests
xogium
@xogium
hmm right, maybe it will need a 4th option then, indeed
flyingone
@flyingone
nothing mentioned to restrict merge to repo admin
xogium
@xogium
I'm no dev, but I suppose it can't hurt to open an issue about this :)
1 reply
flyingone
@flyingone
Such control is required to moderate changes in the repo master
xogium
@xogium
yes
:)
just open one on the github for gitbucket
flyingone
@flyingone
ok
thanks
xogium
@xogium
no problem, glad to help in any way I can
towbi
@towbi
Hi there, I have a gitbucket installation running on 4.24.0. (released 30 Apr 2018). Can I directly upgrade to the current version (4.35.3 - 14 Jan 2021) or do I need to follow some upgrade path?
Naoki Takezoe
@takezoe
@towbi Yes, you can upgrade to 4.35.3 directly. Basically, GitBucket can be upgraded from any versions to newer versions, but I strongly recommend to take a backup before upgrading.
Naoki Takezoe
@takezoe
@flyingone Granular access control is one missing feature in GitBucket because it's originally designed for small software development teams. I think that system-wide design is necessary rather than implementing security requirements one by one in order to make a consistent and flexible access control mechanism. If I remember correctly, we already have an issue for that on GitHub. Maybe adding your requirements to that issue would be helpful to consider the design of the next generation of access control mechanism on GitBucket.
Naoki Takezoe
@takezoe
Hmm, but I cannot find the existing issue... Creating a new issue is fine. When I find the existing one, we can merge them. :bow:
flyingone
@flyingone
Thanks Naoki .. please find issues gitbucket/gitbucket#2687
1 reply
Shreejan Shrestha
@shreejanshrestha

@takezoe

Actually, #544 has been reported by Windows users many times in the past, but I'm still not sure how to solve it. Also, I don' have a Window environment now, so I cannot look into this issue. Can anyone who uses GitBucket on Windows help?

I could delete without error using following patch. How do think about it?

diff --git a/src/main/scala/gitbucket/core/service/RepositoryService.scala b/src/main/scala/gitbucket/core/service/RepositoryService.scala
index 831820eac3c78e784eb980125a25b0d3f2c8d7e6..9fd325232449f0772b1c7a70a6c6756c28eeb943 100644
--- a/src/main/scala/gitbucket/core/service/RepositoryService.scala
+++ b/src/main/scala/gitbucket/core/service/RepositoryService.scala
@@ -14,6 +14,7 @@ import org.apache.commons.io.FileUtils
 import org.eclipse.jgit.api.Git
 import org.eclipse.jgit.lib.{Repository => _, _}
 import scala.util.Using
+import java.io.{File, FileNotFoundException, IOException}

 trait RepositoryService {
   self: AccountService =>
@@ -233,14 +234,23 @@ trait RepositoryService {
     }
   }

+  def deleteRecursively(f: File): Boolean = {
+    if (f.isDirectory) f.listFiles match {
+      case files: Array[File] => files.foreach(deleteRecursively)
+      case null               =>
+    }
+    f.delete()
+  }
+
   def deleteRepository(repository: Repository)(implicit s: Session): Unit = {
     LockUtil.lock(s"${repository.userName}/${repository.repositoryName}") {
       deleteRepositoryOnModel(repository.userName, repository.repositoryName)

-      FileUtils.deleteDirectory(getRepositoryDir(repository.userName, repository.repositoryName))
-      FileUtils.deleteDirectory(getWikiRepositoryDir(repository.userName, repository.repositoryName))
-      FileUtils.deleteDirectory(getTemporaryDir(repository.userName, repository.repositoryName))
-      FileUtils.deleteDirectory(getRepositoryFilesDir(repository.userName, repository.repositoryName))
+      deleteRecursively(getRepositoryDir(repository.userName, repository.repositoryName))
+
+      deleteRecursively(getWikiRepositoryDir(repository.userName, repository.repositoryName))
+      deleteRecursively(getTemporaryDir(repository.userName, repository.repositoryName))
+      deleteRecursively(getRepositoryFilesDir(repository.userName, repository.repositoryName))

       // Call hooks
       PluginRegistry().getRepositoryHooks.foreach(_.deleted(repository.userName, repository.repositoryName))
6 replies
dumpaliaravind
@dumpaliaravind
HI All, How can i migrate the gitbucket repo's to bitbucket?
1 reply
Shin
@shinsenter
When using docker, I had problems with db migration when updating from 4.34.0 (tag gitbucket/gitbucket:4) to 4.35.3. Reverting back to 4.34.0 working well. Hope to be supported. よろしくお願いします。
6 replies
xogium
@xogium
hi Takezoe ! Was wondering if you or anyone here saw my question about the radio buttons for role of collaborators or group members… is this some kind of bug for everyone or is it just accessibility related ?
the fact that after selecting one for a member then clicking apply changes, the choice I picked doesn't seem to be displayed in any way
all the buttons are unselected when the page comes up the next time
Naoki Takezoe
@takezoe
@xogium Can you confirm whether the selected permission is actually applied?
xogium
@xogium
hello Takezoe :) yes the perms are applied it appears, it's just not visible somehow…
Naoki Takezoe
@takezoe
Hmm, I see. That's weird.
rajeshrocky
@rajeshrocky
Hi There, I have Gitbucket that's running 4.15.0 version and the database which it is using is Psql(9.6) . Can i directly upgrade it to the latest Version ( 4.35.3) ? Is the new version compatible with the Psql(9.6) version ?
Naoki Takezoe
@takezoe
@rajeshrocky Basically, it's possible, but I strongly recommend taking a backup of your data before upgrading.
rajeshrocky
@rajeshrocky
Thanks @takezoe , i would do that.
@takezoe , Are there any database schemas that i need to change during the upgrade process ?
Naoki Takezoe
@takezoe
No, GitBucket will automatically update your database schema if necessary.
rajeshrocky
@rajeshrocky
Got it, Thank you @takezoe
Sahil Sardana
@sahil-sardana
Hello @takezoe hope you are doing well. I was able to fix the LDAP issue and now I am having issue with copying the data.mv.db directory from the backup .gitbucket directory. I copied all other files & directories. As soon as I update the data.mv.db I start getting below error: [localhost-startStop-1] ERROR com.zaxxer.hikari.pool.HikariPool - HikariPool-1 - Exception during pool initialization.
org.h2.jdbc.JdbcSQLSyntaxErrorException: Table "COMMIT_COMMENT" not found; SQL statement:
ALTER TABLE PUBLIC.COMMIT_COMMENT ADD CONSTRAINT PUBLIC.IDX_COMMIT_COMMENT_PK PRIMARY KEY(COMMENT_ID) INDEX PUBLIC.PRIMARY_KEY_699 [42102-199]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:451)
at org.h2.message.DbException.getJdbcSQLException(DbException.java:427)
at org.h2.message.DbException.get(DbException.java:205)
at org.h2.message.DbException.get(DbException.java:181)
at org.h2.command.ddl.AlterTableAddConstraint.tryUpdate(AlterTableAddConstraint.java:108)
at org.h2.command.ddl.AlterTableAddConstraint.update(AlterTableAddConstraint.java:78)
at org.h2.engine.MetaRecord.execute(MetaRecord.java:60)
at org.h2.engine.Database.open(Database.java:842)
3 replies
MrMelon
@MrMelon54
is it possible to have a fully dark theme for each colour?
3 replies
sdbbs
@sdbbs
Just wanted to note, after my Mar 08 2019 13:35 post, that there is a https://github.com/onukura/gitbucket-mathjax-plugin which works fine for Latex-style equations in Markdown on Gitbucket.
1 reply
umair4262
@umair4262
I want a github clone for fb hacking ... Anyone have ???
rajeshrocky
@rajeshrocky
Hi All, I have Ungraded my Gitbucket from 4.15 to the newest version 4.35.3 in my development environment but i am not able to login to the UI using the root credentials, Can anyone let me know where there is any location on the gitbucket server where i can find the admin credentials?
1 reply
dumpaliaravind
@dumpaliaravind
Hi All, I am upgrading the gitbucket 4.15 to 4.35.3. But i did found a document that has scala version 2.13 compatabile for 4.35.3. But when i check for 4.15 the compatbaile version is 2.12. So if i upgrade the gitbucket to the latest 4.35.3 will it a problem ? because i have the scala of 2.12. Or esle do i need to upgrade the Scala first and then upgrade the gitbucket version? if yes can someone help me in upgrading the scala as i don't see a document on scala. Thanks!
image.png
image.png
Naoki Takezoe
@takezoe
@dumpaliaravind You don't need to upgrade your Scala installation. The recent versions of GitBucket is built with Scala 2.13, but it doesn't use your Scala installation at runtime. GitBucket requires only Java installation to run.
1 reply
Naoki Takezoe
@takezoe
Does anyone have options or feedbacks about basic authentication support in GitBucket? Please comment on this pull request if you have anything: gitbucket/gitbucket#2713