-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4,235 changed files
with
25,220 additions
and
108,586 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,37 @@ | ||
# Changes between v4.1.2 and v4.1.3-alpha1 | ||
# Changes between v4.2.0-rc1 and v4.2.0-rc2 | ||
|
||
[See Full Changelog](https://github.com/pydio/cells/compare/v4.1.2...v4.1.3-alpha1) | ||
[See Full Changelog](https://github.com/pydio/cells/compare/v4.2.0-rc1...v4.2.0-rc2) | ||
|
||
- [#22212ab](https://github.com/pydio/cells/commit/22212abfc5b88f20e184f080a27bc2e2aee06075): Finally remove unused variable | ||
- [#b318e17](https://github.com/pydio/cells/commit/b318e172303f6450dbcc103804113b6a60e9a158): Check presigned v4 | ||
- [#13ba122](https://github.com/pydio/cells/commit/13ba12233069c79f94b90b3303440686a260ab5b): remove unnecessary test | ||
- [#a066ca3](https://github.com/pydio/cells/commit/a066ca3130571aa3945d2369ecaebc09f4363e9f): Change ctype detection rule, again | ||
- [#9e83f27](https://github.com/pydio/cells/commit/9e83f271513eed566f8471aea0969906f067ee40): Next development cycle | ||
- [#b049eb3](https://github.com/pydio/cells/commit/b049eb36f315409b968608215362572c8b11d252): Change ctype detection rule | ||
- [#5be6170](https://github.com/pydio/cells/commit/5be6170d081bed0788590541c716a5767e245389): Change ctype detection rule | ||
- [#259fbfd](https://github.com/pydio/cells/commit/259fbfdd1c909d32ae2dc366163bc027b6722b90): Change ctype detection from black to white-list | ||
- [#c864883](https://github.com/pydio/cells/commit/c864883afbad3eec1c1845ff9fc38e4ed14de4d0): Change activities display in RailPanel, show Watch button in Public Link field. | ||
- [#9d9be24](https://github.com/pydio/cells/commit/9d9be24f533137581d3eb42ac4fd783756941f09): Forgotten string + DE/FR translation | ||
- [#709bab2](https://github.com/pydio/cells/commit/709bab2a8ec81cd77e4789f776faaa5c05831642): Forgotten string + DE/FR translation | ||
- [#8f355c3](https://github.com/pydio/cells/commit/8f355c3cb5759598cf2f46ffdc00ec7ee00de171): Forgotten i18n string and display glitches | ||
- [#49a2069](https://github.com/pydio/cells/commit/49a206923dceb8cfd99463b0ebbd53047f571b98): Ecxlude reserved slugs for specific agents | ||
- [#95674e2](https://github.com/pydio/cells/commit/95674e2a825a51ad853af5a08c633879ca790f66): Check presigned v4 | ||
- [#b7f3d61](https://github.com/pydio/cells/commit/b7f3d6115f57ead5097ed201b68e71b81fd9cf4b): Change ctype detection from black to white-list | ||
- [#92bf8ef](https://github.com/pydio/cells/commit/92bf8ef63efbd3ef217534e3d36333fbd6beaa29): Display glitches in Console + dark mode | ||
- [#b0e73cf](https://github.com/pydio/cells/commit/b0e73cfb659107b9578b9efa9ac84caaf99c335c): Clear roles by default at user creation. | ||
- [#dc49f87](https://github.com/pydio/cells/commit/dc49f878e5befe694e23d40047fdd5855efcdc71): Mod update again | ||
- [#0dff1c8](https://github.com/pydio/cells/commit/0dff1c89c890d1749f84620a2187d752e4822ef6): DE/FR messages have been missed by first sync | ||
- [#6972dbd](https://github.com/pydio/cells/commit/6972dbd500e6395b18d38f6bd3044609f5c381be): DE/FR messages have been missed by first sync | ||
- [#e5823ca](https://github.com/pydio/cells/commit/e5823ca982afcdfdfe42e14815923b49e2f732f9): New message + DE/FR translations | ||
- [#523f96a](https://github.com/pydio/cells/commit/523f96a9f923109c946848152d1abbf94eebb8a6): Mod update | ||
- [#511e9f3](https://github.com/pydio/cells/commit/511e9f34c7fc2f44bdc386f1d0fe6a7100c5dadf): New message + DE/FR translations | ||
- [#a68e517](https://github.com/pydio/cells/commit/a68e517897d27f6ce8ee4ac24f5e02fb96798892): Update PydioCoreActions | ||
- [#2bd0038](https://github.com/pydio/cells/commit/2bd0038ffe861e8c32640ee8a53195accbc4441f): Rework Cell/Workspace Card and watcher | ||
- [#4298194](https://github.com/pydio/cells/commit/4298194ba9132821c51c0f9c0eb46acec2956169): Fix meta "selection as steps" display | ||
- [#e946090](https://github.com/pydio/cells/commit/e946090aeca57d07716d09fb176820f87d23392a): Fix left chevron 'parent folder' color | ||
- [#eaa18a3](https://github.com/pydio/cells/commit/eaa18a3b7cdc6988e0ce9d43de15263cc4d72a42): Change mimefont to less shiny color | ||
- [#a03280d](https://github.com/pydio/cells/commit/a03280d36eb4645c1716947970d10901d3014842): Remove error message and returning default value for non-parsable url | ||
- [#37494da](https://github.com/pydio/cells/commit/37494da159fda6dad0686c0f653c90b7e7d4850f): Re-add DE/FR translation after merge | ||
- [#2ca67f4](https://github.com/pydio/cells/commit/2ca67f473eb4fdbb7ce84421c061b368aaf7a097): Re-add DE/FR translation after merge | ||
- [#34a8367](https://github.com/pydio/cells/commit/34a83677a2f503884d02aa1a15b3149b28339bc1): Merge remote-tracking branch 'origin/main' | ||
- [#67a7aae](https://github.com/pydio/cells/commit/67a7aaeabec597d5ff4664e9eb9b03d77aa34e5c): Bump cells-sdk | ||
- [#83f1cd7](https://github.com/pydio/cells/commit/83f1cd7496a155860b9f842d49d8597cc5b22875): Fix uploader popover glitch | ||
- [#642655f](https://github.com/pydio/cells/commit/642655f50372aed678f204f9717e1f07deadf781): Temporary remove translations to avoid conflicts | ||
- [#c1e827f](https://github.com/pydio/cells/commit/c1e827f293f54950ceb5a7be35c2250dfbbc4c42): Temporary remove translations to avoid conflicts | ||
- [#b536f8a](https://github.com/pydio/cells/commit/b536f8a3bdcbd7aa5644a78f88ce38db7e758740): Fix glitches after legacy message removal | ||
- [#e1eb881](https://github.com/pydio/cells/commit/e1eb8812120334b3bca61d0d2dffbaff7fede530): Fix glitches after legacy message removal | ||
- [#cfb4817](https://github.com/pydio/cells/commit/cfb4817a9c83a07d7114b944657f4c2656d1f2ab): Unused code and i18n | ||
- [#dc629af](https://github.com/pydio/cells/commit/dc629af80c824c22f0217fd7952f08a6fa64b7fd): DarkMode Recent Locations in Copy Dialog | ||
- [#4769234](https://github.com/pydio/cells/commit/4769234d3363bd76280fb4ea23b5299cb8107722): Fix glitches in custom sharelink |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
/* | ||
* Copyright (c) 2019-2021. Abstrium SAS <team (at) pydio.com> | ||
* This file is part of Pydio Cells. | ||
* | ||
* Pydio Cells is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Pydio Cells is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with Pydio Cells. If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* The latest code can be found at <https://pydio.com>. | ||
*/ | ||
|
||
package cmd | ||
|
||
import ( | ||
"fmt" | ||
"github.com/pydio/cells/v4/common/proto/idm" | ||
"os" | ||
"strconv" | ||
"time" | ||
|
||
"github.com/pydio/cells/v4/common/client/grpc" | ||
"github.com/spf13/cobra" | ||
|
||
"github.com/pydio/cells/v4/common" | ||
) | ||
|
||
var ( | ||
cleanAclAfter string | ||
cleanAclBefore string | ||
) | ||
|
||
var dataCleanACLsCmd = &cobra.Command{ | ||
Use: "acls", | ||
Short: "Clean Expired ACLs", | ||
Long: ` | ||
DESCRIPTION | ||
When deleted after a node deletion, ACLs are not really deleted but only expired, to be able to restore them | ||
if necessary. This can lead to keep unused data, and particularly shared links information that may prevent users to | ||
re-use an existing custom link value. Use this command to definitely delete expired ACLs based on a period. | ||
Parameters accept either timestamps or durations. In the later case, corresponding time is computed using "Now - Duration". | ||
EXAMPLES | ||
Clean all ACLs expired before last 24h | ||
$ ` + os.Args[0] + ` clean admin acls --before 24h | ||
`, | ||
Run: func(cmd *cobra.Command, args []string) { | ||
if cleanAclAfter == "" && cleanAclBefore == "" { | ||
cmd.Println("Please provide at least one of --after | --before") | ||
cmd.Help() | ||
return | ||
} | ||
|
||
req := &idm.DeleteACLRequest{} | ||
if ea, err := strconv.ParseInt(cleanAclAfter, 10, 64); err == nil && ea > 0 { | ||
req.ExpiredAfter = ea | ||
} else if d, er := time.ParseDuration(cleanAclAfter); er == nil { | ||
req.ExpiredAfter = time.Now().Add(-d).Unix() | ||
} | ||
if eb, err := strconv.ParseInt(cleanAclBefore, 10, 64); err == nil && eb > 0 { | ||
req.ExpiredBefore = eb | ||
} else if d, er := time.ParseDuration(cleanAclBefore); er == nil { | ||
req.ExpiredBefore = time.Now().Add(-d).Unix() | ||
} | ||
|
||
if req.ExpiredAfter == 0 && req.ExpiredBefore == 0 { | ||
cmd.Println("[ERROR] please provide at least one valid parameter") | ||
cmd.Help() | ||
return | ||
} | ||
|
||
aclClient := idm.NewACLServiceClient(grpc.GetClientConnFromCtx(ctx, common.ServiceAcl)) | ||
resp, e := aclClient.DeleteACL(ctx, req) | ||
if e != nil { | ||
cmd.Println("[ERROR] " + e.Error()) | ||
cmd.Help() | ||
return | ||
} | ||
if resp.GetRowsDeleted() > 0 { | ||
|
||
cmd.Println(fmt.Sprintf("Definitely deleted %d ACLs (period %v-%v)", resp.GetRowsDeleted(), time.Unix(req.ExpiredAfter, 0), time.Unix(req.ExpiredBefore, 0))) | ||
} else { | ||
cmd.Println(fmt.Sprintf("Nothing to delete for period %v-%v", time.Unix(req.ExpiredAfter, 0), time.Unix(req.ExpiredBefore, 0))) | ||
} | ||
}, | ||
} | ||
|
||
func init() { | ||
dataCleanACLsCmd.PersistentFlags().StringVarP(&cleanAclAfter, "after", "a", "", "Expiration date is greater than...") | ||
dataCleanACLsCmd.PersistentFlags().StringVarP(&cleanAclBefore, "before", "b", "240h", "Expiration date is lower than...") | ||
CleanCmd.AddCommand(dataCleanACLsCmd) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
* Copyright (c) 2019-2022. Abstrium SAS <team (at) pydio.com> | ||
* This file is part of Pydio Cells. | ||
* | ||
* Pydio Cells is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Pydio Cells is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with Pydio Cells. If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* The latest code can be found at <https://pydio.com>. | ||
*/ | ||
|
||
package migrations | ||
|
||
import ( | ||
"github.com/hashicorp/go-version" | ||
|
||
"github.com/pydio/cells/v4/common/utils/configx" | ||
) | ||
|
||
func init() { | ||
v, _ := version.NewVersion("4.1.99") | ||
add(v, getMigration(upgradeDefaultWebTheme)) | ||
} | ||
|
||
// upgradeDefaultWebTheme change preset theme value to material | ||
func upgradeDefaultWebTheme(conf configx.Values) error { | ||
|
||
theme := conf.Val("frontend", "plugin", "gui.ajax", "GUI_THEME") | ||
if theme.String() == "light" { | ||
_ = theme.Set("mui3") | ||
} | ||
|
||
return nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.