Skip to content

Commit

Permalink
Merge pull request #15138 from iterate-ch/feature/GH-15137
Browse files Browse the repository at this point in the history
Fix #15137
  • Loading branch information
dkocher authored May 27, 2024
2 parents bf99585 + 310a91e commit b0a2ef1
Show file tree
Hide file tree
Showing 124 changed files with 13,656 additions and 10,401 deletions.
1 change: 1 addition & 0 deletions Changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Cyberduck
https://cyberduck.io/

8.9.0
- [Feature] Versioning of files edited in external application (#15137)
- [Feature] Resumable file uploads (ownCloud) (#15619)
- [Feature] Support authentication using SSH certificates (SFTP) (#15183)
- [Bugfix] Failure sharing file (ownCloud) (#15855, #15839)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ public TransferAction action(final Session<?> source,
@Override
public AbstractUploadFilter filter(final Session<?> session, final Session<?> destination, final TransferAction action, final ProgressListener listener) {
return super.filter(session, destination, action, listener).withOptions(new UploadFilterOptions(host)
.withTemporary(PreferencesFactory.get().getBoolean("queue.upload.file.temporary"))
.withPermission(PreferencesFactory.get().getBoolean("editor.upload.permissions.change")));
.withVersioning(PreferencesFactory.get().getBoolean("editor.upload.file.versioning"))
.withPermission(PreferencesFactory.get().getBoolean("editor.upload.permissions.change")));
}
};
this.listener = listener;
Expand All @@ -90,9 +90,9 @@ public Transfer run(final Session<?> session) throws BackgroundException {
log.debug(String.format("Run upload action for editor %s", editor));
}
final SingleTransferWorker worker
= new SingleTransferWorker(session, session, upload, new TransferOptions(),
= new SingleTransferWorker(session, session, upload, new TransferOptions(),
new TransferSpeedometer(upload), new DisabledTransferPrompt(), callback,
listener, new DisabledStreamListener(), new DisabledLoginCallback(), notification);
listener, new DisabledStreamListener(), new DisabledLoginCallback(), notification);
worker.run(session);
if(!upload.isComplete()) {
log.warn(String.format("File size changed for %s", file));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ public UploadFilterOptions withChecksum(boolean enabled) {
return this;
}

public UploadFilterOptions withVersioning(final boolean versioning) {
this.versioning = versioning;
return this;
}

@Override
public String toString() {
final StringBuilder sb = new StringBuilder("UploadFilterOptions{");
Expand Down
1 change: 1 addition & 0 deletions defaults/src/main/resources/default.properties
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ editor.bundleIdentifier=
editor.alwaysUseDefault=false
editor.upload.permissions.change=true
editor.upload.symboliclink.resolve=true
editor.upload.file.versioning=false

# Save bookmarks in ~/Library
favorites.save=true
Expand Down
Binary file modified i18n/src/main/resources/ar.lproj/Preferences.strings
Binary file not shown.
Binary file modified i18n/src/main/resources/ar.lproj/Preferences.strings.1
Binary file not shown.
438 changes: 260 additions & 178 deletions i18n/src/main/resources/ar.lproj/Preferences.xib

Large diffs are not rendered by default.

Binary file modified i18n/src/main/resources/bg.lproj/Preferences.strings
Binary file not shown.
Binary file modified i18n/src/main/resources/bg.lproj/Preferences.strings.1
Binary file not shown.
438 changes: 260 additions & 178 deletions i18n/src/main/resources/bg.lproj/Preferences.xib

Large diffs are not rendered by default.

Binary file modified i18n/src/main/resources/ca.lproj/Preferences.strings
Binary file not shown.
Binary file modified i18n/src/main/resources/ca.lproj/Preferences.strings.1
Binary file not shown.
438 changes: 260 additions & 178 deletions i18n/src/main/resources/ca.lproj/Preferences.xib

Large diffs are not rendered by default.

Binary file modified i18n/src/main/resources/cs.lproj/Preferences.strings
Binary file not shown.
Binary file modified i18n/src/main/resources/cs.lproj/Preferences.strings.1
Binary file not shown.
438 changes: 260 additions & 178 deletions i18n/src/main/resources/cs.lproj/Preferences.xib

Large diffs are not rendered by default.

Binary file modified i18n/src/main/resources/cy.lproj/Preferences.strings
Binary file not shown.
Binary file modified i18n/src/main/resources/cy.lproj/Preferences.strings.1
Binary file not shown.
438 changes: 260 additions & 178 deletions i18n/src/main/resources/cy.lproj/Preferences.xib

Large diffs are not rendered by default.

Binary file modified i18n/src/main/resources/da.lproj/Preferences.strings
Binary file not shown.
Binary file modified i18n/src/main/resources/da.lproj/Preferences.strings.1
Binary file not shown.
438 changes: 260 additions & 178 deletions i18n/src/main/resources/da.lproj/Preferences.xib

Large diffs are not rendered by default.

Binary file modified i18n/src/main/resources/de.lproj/Preferences.strings
Binary file not shown.
Binary file modified i18n/src/main/resources/de.lproj/Preferences.strings.1
Binary file not shown.
432 changes: 257 additions & 175 deletions i18n/src/main/resources/de.lproj/Preferences.xib

Large diffs are not rendered by default.

Binary file modified i18n/src/main/resources/el.lproj/Preferences.strings
Binary file not shown.
Binary file modified i18n/src/main/resources/el.lproj/Preferences.strings.1
Binary file not shown.
438 changes: 260 additions & 178 deletions i18n/src/main/resources/el.lproj/Preferences.xib

Large diffs are not rendered by default.

Binary file modified i18n/src/main/resources/en.lproj/Preferences.strings
Binary file not shown.
Binary file modified i18n/src/main/resources/en.lproj/Preferences.strings.1
Binary file not shown.
261 changes: 171 additions & 90 deletions i18n/src/main/resources/en.lproj/Preferences.xib

Large diffs are not rendered by default.

Binary file modified i18n/src/main/resources/es.lproj/Preferences.strings
Binary file not shown.
Binary file modified i18n/src/main/resources/es.lproj/Preferences.strings.1
Binary file not shown.
438 changes: 260 additions & 178 deletions i18n/src/main/resources/es.lproj/Preferences.xib

Large diffs are not rendered by default.

Binary file modified i18n/src/main/resources/et.lproj/Preferences.strings
Binary file not shown.
Binary file modified i18n/src/main/resources/et.lproj/Preferences.strings.1
Binary file not shown.
438 changes: 260 additions & 178 deletions i18n/src/main/resources/et.lproj/Preferences.xib

Large diffs are not rendered by default.

Binary file modified i18n/src/main/resources/fi.lproj/Preferences.strings
Binary file not shown.
Binary file modified i18n/src/main/resources/fi.lproj/Preferences.strings.1
Binary file not shown.
438 changes: 260 additions & 178 deletions i18n/src/main/resources/fi.lproj/Preferences.xib

Large diffs are not rendered by default.

Binary file modified i18n/src/main/resources/fr.lproj/Preferences.strings
Binary file not shown.
Binary file modified i18n/src/main/resources/fr.lproj/Preferences.strings.1
Binary file not shown.
438 changes: 260 additions & 178 deletions i18n/src/main/resources/fr.lproj/Preferences.xib

Large diffs are not rendered by default.

Binary file modified i18n/src/main/resources/he.lproj/Preferences.strings
Binary file not shown.
Binary file modified i18n/src/main/resources/he.lproj/Preferences.strings.1
Binary file not shown.
438 changes: 260 additions & 178 deletions i18n/src/main/resources/he.lproj/Preferences.xib

Large diffs are not rendered by default.

Binary file modified i18n/src/main/resources/hr.lproj/Preferences.strings
Binary file not shown.
Binary file modified i18n/src/main/resources/hr.lproj/Preferences.strings.1
Binary file not shown.
438 changes: 260 additions & 178 deletions i18n/src/main/resources/hr.lproj/Preferences.xib

Large diffs are not rendered by default.

Binary file modified i18n/src/main/resources/hu.lproj/Preferences.strings
Binary file not shown.
Binary file modified i18n/src/main/resources/hu.lproj/Preferences.strings.1
Binary file not shown.
438 changes: 260 additions & 178 deletions i18n/src/main/resources/hu.lproj/Preferences.xib

Large diffs are not rendered by default.

Binary file modified i18n/src/main/resources/it.lproj/Preferences.strings
Binary file not shown.
Binary file modified i18n/src/main/resources/it.lproj/Preferences.strings.1
Binary file not shown.
439 changes: 261 additions & 178 deletions i18n/src/main/resources/it.lproj/Preferences.xib

Large diffs are not rendered by default.

Binary file modified i18n/src/main/resources/ja.lproj/Preferences.strings
Binary file not shown.
Binary file modified i18n/src/main/resources/ja.lproj/Preferences.strings.1
Binary file not shown.
438 changes: 260 additions & 178 deletions i18n/src/main/resources/ja.lproj/Preferences.xib

Large diffs are not rendered by default.

Binary file modified i18n/src/main/resources/ka.lproj/Preferences.strings
Binary file not shown.
Binary file modified i18n/src/main/resources/ka.lproj/Preferences.strings.1
Binary file not shown.
436 changes: 259 additions & 177 deletions i18n/src/main/resources/ka.lproj/Preferences.xib

Large diffs are not rendered by default.

Binary file modified i18n/src/main/resources/ko.lproj/Preferences.strings
Binary file not shown.
Binary file modified i18n/src/main/resources/ko.lproj/Preferences.strings.1
Binary file not shown.
438 changes: 260 additions & 178 deletions i18n/src/main/resources/ko.lproj/Preferences.xib

Large diffs are not rendered by default.

Binary file modified i18n/src/main/resources/lv.lproj/Preferences.strings
Binary file not shown.
Binary file modified i18n/src/main/resources/lv.lproj/Preferences.strings.1
Binary file not shown.
438 changes: 260 additions & 178 deletions i18n/src/main/resources/lv.lproj/Preferences.xib

Large diffs are not rendered by default.

Binary file modified i18n/src/main/resources/nl.lproj/Preferences.strings
Binary file not shown.
Binary file modified i18n/src/main/resources/nl.lproj/Preferences.strings.1
Binary file not shown.
438 changes: 260 additions & 178 deletions i18n/src/main/resources/nl.lproj/Preferences.xib

Large diffs are not rendered by default.

Binary file modified i18n/src/main/resources/no.lproj/Preferences.strings
Binary file not shown.
Binary file modified i18n/src/main/resources/no.lproj/Preferences.strings.1
Binary file not shown.
438 changes: 260 additions & 178 deletions i18n/src/main/resources/no.lproj/Preferences.xib

Large diffs are not rendered by default.

Binary file modified i18n/src/main/resources/pl.lproj/Preferences.strings
Binary file not shown.
Binary file modified i18n/src/main/resources/pl.lproj/Preferences.strings.1
Binary file not shown.
474 changes: 286 additions & 188 deletions i18n/src/main/resources/pl.lproj/Preferences.xib

Large diffs are not rendered by default.

Binary file modified i18n/src/main/resources/pt_BR.lproj/Preferences.strings
Binary file not shown.
Binary file modified i18n/src/main/resources/pt_BR.lproj/Preferences.strings.1
Binary file not shown.
438 changes: 260 additions & 178 deletions i18n/src/main/resources/pt_BR.lproj/Preferences.xib

Large diffs are not rendered by default.

Binary file modified i18n/src/main/resources/pt_PT.lproj/Preferences.strings
Binary file not shown.
Binary file modified i18n/src/main/resources/pt_PT.lproj/Preferences.strings.1
Binary file not shown.
438 changes: 260 additions & 178 deletions i18n/src/main/resources/pt_PT.lproj/Preferences.xib

Large diffs are not rendered by default.

Binary file modified i18n/src/main/resources/ro.lproj/Preferences.strings
Binary file not shown.
Binary file modified i18n/src/main/resources/ro.lproj/Preferences.strings.1
Binary file not shown.
438 changes: 260 additions & 178 deletions i18n/src/main/resources/ro.lproj/Preferences.xib

Large diffs are not rendered by default.

Binary file modified i18n/src/main/resources/ru.lproj/Preferences.strings
Binary file not shown.
Binary file modified i18n/src/main/resources/ru.lproj/Preferences.strings.1
Binary file not shown.
438 changes: 260 additions & 178 deletions i18n/src/main/resources/ru.lproj/Preferences.xib

Large diffs are not rendered by default.

Binary file modified i18n/src/main/resources/sk.lproj/Preferences.strings
Binary file not shown.
Binary file modified i18n/src/main/resources/sk.lproj/Preferences.strings.1
Binary file not shown.
438 changes: 260 additions & 178 deletions i18n/src/main/resources/sk.lproj/Preferences.xib

Large diffs are not rendered by default.

Binary file modified i18n/src/main/resources/sl.lproj/Preferences.strings
Binary file not shown.
Binary file modified i18n/src/main/resources/sl.lproj/Preferences.strings.1
Binary file not shown.
438 changes: 260 additions & 178 deletions i18n/src/main/resources/sl.lproj/Preferences.xib

Large diffs are not rendered by default.

Binary file modified i18n/src/main/resources/sr.lproj/Preferences.strings
Binary file not shown.
Binary file modified i18n/src/main/resources/sr.lproj/Preferences.strings.1
Binary file not shown.
438 changes: 260 additions & 178 deletions i18n/src/main/resources/sr.lproj/Preferences.xib

Large diffs are not rendered by default.

Binary file modified i18n/src/main/resources/sv.lproj/Preferences.strings
Binary file not shown.
Binary file modified i18n/src/main/resources/sv.lproj/Preferences.strings.1
Binary file not shown.
438 changes: 260 additions & 178 deletions i18n/src/main/resources/sv.lproj/Preferences.xib

Large diffs are not rendered by default.

Binary file modified i18n/src/main/resources/ta_IN.lproj/Preferences.strings
Binary file not shown.
Binary file modified i18n/src/main/resources/ta_IN.lproj/Preferences.strings.1
Binary file not shown.
442 changes: 267 additions & 175 deletions i18n/src/main/resources/ta_IN.lproj/Preferences.xib

Large diffs are not rendered by default.

Binary file modified i18n/src/main/resources/th.lproj/Preferences.strings
Binary file not shown.
Binary file modified i18n/src/main/resources/th.lproj/Preferences.strings.1
Binary file not shown.
438 changes: 260 additions & 178 deletions i18n/src/main/resources/th.lproj/Preferences.xib

Large diffs are not rendered by default.

Binary file modified i18n/src/main/resources/tr.lproj/Preferences.strings
Binary file not shown.
Binary file modified i18n/src/main/resources/tr.lproj/Preferences.strings.1
Binary file not shown.
438 changes: 260 additions & 178 deletions i18n/src/main/resources/tr.lproj/Preferences.xib

Large diffs are not rendered by default.

Binary file modified i18n/src/main/resources/uk.lproj/Preferences.strings
Binary file not shown.
Binary file modified i18n/src/main/resources/uk.lproj/Preferences.strings.1
Binary file not shown.
438 changes: 260 additions & 178 deletions i18n/src/main/resources/uk.lproj/Preferences.xib

Large diffs are not rendered by default.

Binary file modified i18n/src/main/resources/zh_CN.lproj/Preferences.strings
Binary file not shown.
Binary file modified i18n/src/main/resources/zh_CN.lproj/Preferences.strings.1
Binary file not shown.
440 changes: 261 additions & 179 deletions i18n/src/main/resources/zh_CN.lproj/Preferences.xib

Large diffs are not rendered by default.

Binary file modified i18n/src/main/resources/zh_TW.lproj/Preferences.strings
Binary file not shown.
Binary file modified i18n/src/main/resources/zh_TW.lproj/Preferences.strings.1
Binary file not shown.
438 changes: 260 additions & 178 deletions i18n/src/main/resources/zh_TW.lproj/Preferences.xib

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,21 @@ public void defaultEditorCheckboxClicked(final NSButton sender) {
preferences.setProperty("editor.alwaysUseDefault", enabled);
}

@Outlet
private NSButton editorVersioningCheckbox;

public void setEditorVersioningCheckbox(final NSButton b) {
this.editorVersioningCheckbox = b;
this.editorVersioningCheckbox.setTarget(this.id());
this.editorVersioningCheckbox.setAction(Foundation.selector("editorVersioningCheckboxClicked:"));
this.editorVersioningCheckbox.setState(preferences.getBoolean("editor.upload.file.versioning") ? NSCell.NSOnState : NSCell.NSOffState);
}

public void editorVersioningCheckboxClicked(final NSButton sender) {
boolean enabled = sender.state() == NSCell.NSOnState;
preferences.setProperty("editor.upload.file.versioning", enabled);
}

@Outlet
private NSPopUpButton bookmarkSizePopup;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ internal interface IPreferencesView : IView
bool AlwaysUseDefaultEditor { set; get; }
bool ShowHiddenFiles { set; get; }
bool DoubleClickEditor { set; get; }
bool EnableVersioning { get; set; }
bool ReturnKeyRenames { set; get; }
bool InfoWindowShowsCurrentSelection { set; get; }
int BookmarkSize { set; get; }
Expand Down Expand Up @@ -155,6 +156,7 @@ internal interface IPreferencesView : IView
event VoidHandler DefaultEditorChangedEvent;
event VoidHandler RepopulateEditorsEvent;
event VoidHandler AlwaysUseDefaultEditorChangedEvent;
event VoidHandler EnableVersioningChangedEvent;
event VoidHandler ChmodDownloadChangedEvent;
event VoidHandler ChmodDownloadUseDefaultChangedEvent;
event VoidHandler ChmodDownloadTypeChangedEvent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ private PreferencesController(IPreferencesView view)
View.AlwaysUseDefaultEditorChangedEvent += View_AlwaysUseDefaultEditorChangedEvent;
View.ShowHiddenFilesChangedEvent += View_ShowHiddenFilesChangedEvent;
View.DoubleClickEditorChangedEvent += View_DoubleClickEditorChangedEvent;
View.EnableVersioningChangedEvent += View_EnableVersioningChangedEvent;
View.ReturnKeyRenamesChangedEvent += View_ReturnKeyRenamesChangedEvent;
View.InfoWindowShowsCurrentSelectionChangedEvent += View_InfoWindowShowsCurrentSelectionChangedEvent;
View.AlternatingRowBackgroundChangedEvent += View_AlternatingRowBackgroundChangedEvent;
Expand Down Expand Up @@ -823,6 +824,11 @@ private void View_DoubleClickEditorChangedEvent()
PreferencesFactory.get().setProperty("browser.doubleclick.edit", View.DoubleClickEditor);
}

private void View_EnableVersioningChangedEvent()
{
PreferencesFactory.get().setProperty("editor.upload.file.versioning", View.EnableVersioning);
}

private void View_ReturnKeyRenamesChangedEvent()
{
PreferencesFactory.get().setProperty("browser.enterkey.rename", View.ReturnKeyRenames);
Expand Down Expand Up @@ -978,6 +984,7 @@ private void Init()

PopulateAndSelectEditor();
View.AlwaysUseDefaultEditor = PreferencesFactory.get().getBoolean("editor.alwaysUseDefault");
View.EnableVersioning = PreferencesFactory.get().getBoolean("editor.upload.file.versioning");

#endregion

Expand Down
Loading

0 comments on commit b0a2ef1

Please sign in to comment.