Skip to content

Commit d82b32c

Browse files
committed
Merge branch 'main' into ssl-enhancement
2 parents dc1b574 + eaa2bcb commit d82b32c

File tree

450 files changed

+331543
-396
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

450 files changed

+331543
-396
lines changed

THIRD_PARTY_LICENSES.txt

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,6 +1011,34 @@ DEALINGS IN THE SOFTWARE.
10111011

10121012
--------------------------------------------------------------------------------
10131013

1014+
Ace (Ajax.org Cloud9 Editor) 1.4.13
1015+
1016+
Copyright (c) 2010, Ajax.org B.V.
1017+
All rights reserved.
1018+
1019+
Redistribution and use in source and binary forms, with or without
1020+
modification, are permitted provided that the following conditions are met:
1021+
* Redistributions of source code must retain the above copyright
1022+
notice, this list of conditions and the following disclaimer.
1023+
* Redistributions in binary form must reproduce the above copyright
1024+
notice, this list of conditions and the following disclaimer in the
1025+
documentation and/or other materials provided with the distribution.
1026+
* Neither the name of Ajax.org B.V. nor the
1027+
names of its contributors may be used to endorse or promote products
1028+
derived from this software without specific prior written permission.
1029+
1030+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
1031+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
1032+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
1033+
DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
1034+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
1035+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
1036+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
1037+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1038+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
1039+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1040+
1041+
--------------------------------------------------------------------------------
10141042

10151043
Third Party Development Code Dependencies
10161044
=========================================
@@ -3443,5 +3471,3 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34433471

34443472

34453473
--------------------------------------------------------------------------------
3446-
3447-

documentation/1.0/content/release notes/_index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@ pre = "<b> </b>"
2525
error: Application auto-updater failed: ENOENT: no such file or directory, open '/opt/WebLogic Kubernetes Toolkit UI/resources/app-update.yml'
2626
error: Error: ENOENT: no such file or directory, open '/opt/WebLogic Kubernetes Toolkit UI/resources/app-update.yml'
2727
```
28+
29+
- The application is limited to working with archive files whose size is less than 2 GB.

documentation/staging/content/release notes/_index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,5 @@ pre = "<b> </b>"
3131
error: Application auto-updater failed: ENOENT: no such file or directory, open '/opt/WebLogic Kubernetes Toolkit UI/resources/app-update.yml'
3232
error: Error: ENOENT: no such file or directory, open '/opt/WebLogic Kubernetes Toolkit UI/resources/app-update.yml'
3333
```
34+
35+
- The application is limited to working with archive files whose size is less than 2 GB.

electron/app/js/appUpdater.js

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,17 @@ const i18n = require('./i18next.config');
1111
const { getLogger } = require('./wktLogging');
1212
const errorUtils = require('./errorUtils');
1313
const { sendToWindow } = require('./windowUtils');
14+
const osUtils = require('./osUtils');
1415

1516
let _isDevMode;
17+
let _supportsAutoUpdate;
1618
let _downloadWindow;
1719
let _installType;
1820

21+
/* global process */
1922
function initializeAutoUpdater(logger, isDevMode) {
2023
_isDevMode = isDevMode;
24+
_supportsAutoUpdate = !(osUtils.isLinux() && !process.env.APPIMAGE);
2125
autoUpdater.logger = logger;
2226
autoUpdater.autoDownload = false;
2327
autoUpdater.autoInstallOnAppQuit = true;
@@ -44,7 +48,7 @@ function registerAutoUpdateListeners() {
4448
// if the application is current with the latest version, or an error occurs, the Promise resolves to null.
4549
// if notifyOnFailures is true, dialogs are displayed when no result is provided.
4650
async function getUpdateInformation(notifyOnFailures) {
47-
if (!_isDevMode) {
51+
if (!_isDevMode && _supportsAutoUpdate) {
4852
try {
4953
const checkResult = await autoUpdater.checkForUpdates();
5054
const releaseName = checkResult.updateInfo.releaseName;
@@ -79,8 +83,13 @@ async function getUpdateInformation(notifyOnFailures) {
7983
// Only show the prompt if the user used the menu to trigger checkForUpdates()
8084
// If triggered on startup, no need to display...
8185
//
82-
dialog.showErrorBox(i18n.t('auto-updater-disabled-dev-mode-title'),
83-
i18n.t('auto-updater-disabled-dev-mode-message'));
86+
if (_isDevMode) {
87+
dialog.showErrorBox(i18n.t('auto-updater-disabled-dev-mode-title'),
88+
i18n.t('auto-updater-disabled-dev-mode-message'));
89+
} else {
90+
dialog.showErrorBox(i18n.t('auto-updater-disabled-unsupported-title'),
91+
i18n.t('auto-updater-disabled-unsupported-message'));
92+
}
8493
}
8594

8695
return null;

electron/app/js/imageBuilderUtils.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,11 @@ async function doLogin(imageBuilderExe, options) {
7979

8080
if (options.host) {
8181
args.push(options.host);
82+
} else {
83+
// podman does not always default to docker hub when logging in without a host.
84+
args.push('docker.io');
8285
}
86+
8387
if (options.username) {
8488
args.push('-u', options.username);
8589
}

electron/app/js/kubectlUtils.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,8 @@ async function getOperatorLogs(kubectlExe, operatorNamespace, options) {
199199
}
200200

201201
async function getOperatorVersionFromDomainConfigMap(kubectlExe, domainNamespace, options) {
202-
const args = [ 'get', 'configmap', 'weblogic-scripts-cm', '-n', domainNamespace, '-o', 'jsonpath={.metadata.labels.weblogic\\.operatorVersion}'];
202+
const args = [ 'get', 'configmap', 'weblogic-scripts-cm', '-n', domainNamespace, '-o',
203+
'jsonpath={.metadata.labels.weblogic\\.operatorVersion}'];
203204

204205
const httpsProxyUrl = getHttpsProxyUrl();
205206
const bypassProxyHosts = getBypassProxyHosts();

electron/app/js/promptUtils.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ async function showAboutDialog(wktApp, parentWindow) {
117117
const MIN_HEIGHT = 120; // needs to be smaller than content height
118118

119119
return new Promise((resolve, reject) => {
120-
121120
let promptWindow = new BrowserWindow({
122121
width: WIDTH,
123122
height: HEIGHT,
@@ -131,9 +130,6 @@ async function showAboutDialog(wktApp, parentWindow) {
131130
skipTaskbar: true,
132131
alwaysOnTop: false,
133132
useContentSize: true,
134-
modal: Boolean(parentWindow), // false causes problems with app menu appearing
135-
autoHideMenuBar: true,
136-
menuBarVisible: false,
137133
webPreferences: {
138134
nodeIntegration: false,
139135
contextIsolation: true,
@@ -142,10 +138,7 @@ async function showAboutDialog(wktApp, parentWindow) {
142138
preload: preloadFile
143139
},
144140
});
145-
146-
// hide app menu for various platforms
147-
promptWindow.setMenu(null);
148-
promptWindow.removeMenu();
141+
// hide app menu for Windows and Linux
149142
promptWindow.setMenuBarVisibility(false);
150143

151144
const getOptionsListener = event => {

electron/app/js/wdtArchive.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ function getEntryTypes() {
2323
extensions: ['ear', 'war'],
2424
pathPrefix: 'wlsdeploy/applications/'
2525
},
26+
'applicationDeploymentPlan': {
27+
name: i18n.t('wdt-archiveType-applicationDeploymentPlan'),
28+
subtype: 'file',
29+
extensions: ['xml'],
30+
pathPrefix: 'wlsdeploy/applications/'
31+
},
2632
'atpWallet': {
2733
name: i18n.t('wdt-archiveType-atpWallet'),
2834
subtype: 'file',
@@ -40,6 +46,16 @@ function getEntryTypes() {
4046
subtype: 'emptyDir',
4147
pathPrefix: 'wlsdeploy/coherence/'
4248
},
49+
'customFile': {
50+
name: i18n.t('wdt-archiveType-customFile'),
51+
subtype: 'file',
52+
pathPrefix: 'wlsdeploy/custom/'
53+
},
54+
'customDirectory': {
55+
name: i18n.t('wdt-archiveType-customDirectory'),
56+
subtype: 'dir',
57+
pathPrefix: 'wlsdeploy/custom/'
58+
},
4359
'domainBin': {
4460
name: i18n.t('wdt-archiveType-domainBin'),
4561
subtype: 'file',

electron/app/js/wktWindow.js

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -922,8 +922,28 @@ async function chooseFromFileSystem(targetWindow, options, joinListChar) {
922922
}
923923

924924
async function executeAppQuit() {
925-
for (const window of BrowserWindow.getAllWindows()) {
926-
sendToWindow(window, 'start-app-quit');
925+
const windows = BrowserWindow.getAllWindows();
926+
getLogger().debug('Quit called with %d window(s) open', windows.length);
927+
if (windows.length > 0) {
928+
for (const window of windows) {
929+
// Only send the start-app-quit message to full-fledged project windows.
930+
// Any other windows aren't listening for the start-app-quit message
931+
// and therefore, will never respond with window-app-close message.
932+
//
933+
if (Object.prototype.hasOwnProperty.call(window,'isReady')) {
934+
getLogger().debug('sending start-app-quit to window id %d', window.id);
935+
sendToWindow(window, 'start-app-quit');
936+
} else {
937+
getLogger().debug('skipping start-app-close message for window id %d', window.id);
938+
window.close();
939+
}
940+
}
941+
} else {
942+
// If Quit is called with no open windows, just quit. This handles the case where,
943+
// on MacOS, the About Window is the last window open. It is a special dialog window
944+
// that is not included in the BrowserWindow.getAllWindows()...
945+
//
946+
app.quit();
927947
}
928948
}
929949

@@ -1047,18 +1067,6 @@ async function promptUserForOkOrCancelAnswer(targetWindow, title, message) {
10471067
});
10481068
}
10491069

1050-
function getCheckForAppUpdatesMenuItem() {
1051-
let checkForAppUpdatesMenuItem;
1052-
const menu = Menu.getApplicationMenu();
1053-
if (menu) {
1054-
const helpMenu = menu.items.find(item => item.id === 'help');
1055-
if (helpMenu && helpMenu.submenu) {
1056-
checkForAppUpdatesMenuItem = helpMenu.submenu.items.find(item => item.id === 'checkForAppUpdates');
1057-
}
1058-
}
1059-
return checkForAppUpdatesMenuItem;
1060-
}
1061-
10621070
// Arguments added here should be passed to the browser's window.process.argv array.
10631071
function _getAdditionalArguments() {
10641072
let extraArgs = [];
@@ -1081,7 +1089,6 @@ module.exports = {
10811089
closeWindow,
10821090
createNetworkWindow,
10831091
createWindow,
1084-
getCheckForAppUpdatesMenuItem,
10851092
initialize,
10861093
isSingleWindow,
10871094
setTitleFileName,

electron/app/locales/en/electron.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@
104104
"auto-updater-install-question": "Update the application now or on exit?",
105105
"auto-updater-disabled-dev-mode-title": "Auto-Updater Disabled",
106106
"auto-updater-disabled-dev-mode-message": "Auto-Updater is disabled when running in development mode.",
107+
"auto-updater-disabled-unsupported-title": "Auto-Updater Not Supported",
108+
"auto-updater-disabled-unsupported-message": "Auto-Updater is not supported on Linux when not running from the AppImage executable.",
107109

108110
"dialog-chooseArchiveFile": "Select an Archive File",
109111
"dialog-chooseModelFile": "Select a Model File",
@@ -329,8 +331,11 @@
329331
"wdt-archiveType-opssWallet": "OPSS Wallet",
330332
"wdt-archiveType-applicationFile": "Application File",
331333
"wdt-archiveType-applicationDir": "Application Directory",
334+
"wdt-archiveType-applicationDeploymentPlan": "Application Deployment Plan",
332335
"wdt-archiveType-classpathLibrary": "Classpath Library",
333336
"wdt-archiveType-coherenceStore": "Coherence Store Directory",
337+
"wdt-archiveType-customFile": "Custom File",
338+
"wdt-archiveType-customDirectory": "Custom Directory",
334339
"wdt-archiveType-domainBin": "Domain Script",
335340
"wdt-archiveType-domainLibrary": "Domain Library",
336341
"wdt-archiveType-nodeManagerFile": "Node Manager File",

0 commit comments

Comments
 (0)