Skip to content
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

CB-5578 DM: Ability to remove custom certificate #2899

Open
wants to merge 31 commits into
base: devel
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 17 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
6546249
CB-5578 handles url for redirect after custom domain is being deleted
sergeyteleshev Sep 5, 2024
7a08dcd
CB-5578 reverts isValidUrl
sergeyteleshev Sep 5, 2024
1d262ce
CB-5578 pr fixes
sergeyteleshev Sep 5, 2024
9f503c6
Merge branch 'devel' into CB-5578-dm-ability-to-remove-custom-certifi…
kseniaguzeeva Sep 12, 2024
974cf4f
Merge branch 'devel' into CB-5578-dm-ability-to-remove-custom-certifi…
kseniaguzeeva Sep 13, 2024
27a6137
CB-5578 fixes for QA
sergeyteleshev Sep 13, 2024
2b9fa0e
Merge branch 'devel' into CB-5578-dm-ability-to-remove-custom-certifi…
sergeyteleshev Sep 16, 2024
6d3eddd
Merge branch 'devel' into CB-5578-dm-ability-to-remove-custom-certifi…
sergeyteleshev Sep 18, 2024
04fbe91
Merge branch 'devel' into CB-5578-dm-ability-to-remove-custom-certifi…
sergeyteleshev Sep 19, 2024
60c543e
CB-5578 fixes for redirect on server url in custom certificate deletion
sergeyteleshev Sep 19, 2024
c3306b4
Merge branch 'devel' into CB-5578-dm-ability-to-remove-custom-certifi…
sergeyteleshev Sep 24, 2024
b27b153
CB-5578 fix import
sergeyteleshev Sep 24, 2024
897ea42
CB-5578 creates isValidServer file
sergeyteleshev Sep 24, 2024
1f537bb
CB-5578 allow any protocol server url but redirect on https only
sergeyteleshev Sep 25, 2024
ec36317
CB-5578 fix error message in details popup
sergeyteleshev Sep 25, 2024
fc9305e
Merge remote-tracking branch 'origin/devel' into CB-5578-dm-ability-t…
yagudin10 Sep 25, 2024
2eb78a6
СB-removes unneeded tranlsation
sergeyteleshev Sep 25, 2024
3d4ed40
CB-5578 pr fixes
sergeyteleshev Sep 25, 2024
6fb0691
Merge branch 'devel' into CB-5578-dm-ability-to-remove-custom-certifi…
sergeyteleshev Sep 25, 2024
27bdb2a
Merge branch 'devel' into CB-5578-dm-ability-to-remove-custom-certifi…
sergeyteleshev Sep 27, 2024
67b71ff
Merge branch 'devel' into CB-5578-dm-ability-to-remove-custom-certifi…
sergeyteleshev Sep 27, 2024
7ecb695
CB-5578 dm fix for deletion of custom certificate
sergeyteleshev Sep 27, 2024
cec5b98
CB-5578 fix get https url helper
sergeyteleshev Sep 27, 2024
6a47f6f
CB-5578 cleanup
sergeyteleshev Sep 27, 2024
115053e
Merge branch 'devel' into CB-5578-dm-ability-to-remove-custom-certifi…
EvgeniaBzzz Sep 30, 2024
72af51a
Merge branch 'devel' into CB-5578-dm-ability-to-remove-custom-certifi…
kseniaguzeeva Oct 1, 2024
963a24e
Merge branch 'devel' into CB-5578-dm-ability-to-remove-custom-certifi…
sergeyteleshev Oct 1, 2024
2c6be4c
Merge branch 'devel' into CB-5578-dm-ability-to-remove-custom-certifi…
sergeyteleshev Oct 2, 2024
5eb9105
CB-5578 adds status message for custom certificate deletion
sergeyteleshev Oct 2, 2024
9ef3694
CB-5578 sends server url without protocol while custom certificate de…
sergeyteleshev Oct 2, 2024
7f58d3f
CB-5578 pr fixes
sergeyteleshev Oct 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@ import { ErrorModel, type IErrorInfo } from './ErrorModel.js';

function DisplayErrorInfo({ error }: { error: IErrorInfo }) {
const styles = useS(style);
const translate = useTranslate();

return (
<>
<div className={s(styles, { property: true })}>
{error.isHtml ? <Iframe srcDoc={error.message} /> : <div className={s(styles, { message: true })}>{error.message}</div>}
{error.isHtml ? <Iframe srcDoc={error.message} /> : <div className={s(styles, { message: true })}>{translate(error.message)}</div>}
</div>
{error.stackTrace && (
<div className={s(styles, { property: true })}>
Expand Down
1 change: 1 addition & 0 deletions webapp/packages/core-blocks/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export * from './CommonDialog/CommonDialog/CommonDialogFooter.js';
export * from './CommonDialog/CommonDialog/CommonDialogHeader.js';
export * from './CommonDialog/CommonDialog/CommonDialogWrapper.js';
export * from './CommonDialog/ConfirmationDialog.js';
export { default as ConfirmationDialogStyles } from './CommonDialog/ConfirmationDialog.module.css';
export * from './CommonDialog/ConfirmationDialogDelete.js';
export * from './CommonDialog/RenameDialog.js';
export * from './CommonDialog/DialogsPortal.js';
Expand Down
15 changes: 15 additions & 0 deletions webapp/packages/core-utils/src/getHttpsUrl.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
* CloudBeaver - Cloud Database Manager
* Copyright (C) 2020-2024 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0.
* you may not use this file except in compliance with the License.
*/

export function getHttpsUrl(url: string): string {
if (url.startsWith('http://')) {
return url.replace('http://', 'https://');
}

return url;
}
2 changes: 2 additions & 0 deletions webapp/packages/core-utils/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ export * from './TextTools.js';
export * from './throttle.js';
export * from './uuid_.js';
export * from './isValidUrl.js';
export * from './isValidServerUrl.js';
export * from './getHttpsUrl.js';
export * from './isImageFormat.js';
export * from './getCookies.js';
export * from './getUniqueName.js';
Expand Down
12 changes: 12 additions & 0 deletions webapp/packages/core-utils/src/isValidServerUrl.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* CloudBeaver - Cloud Database Manager
* Copyright (C) 2020-2024 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0.
* you may not use this file except in compliance with the License.
*/
const SERVER_URL_REGEXP = /^(https?:\/\/)?(localhost|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})(:\d+)?(\/.*)?$/i;

export function isValidServerUrl(value: string): boolean {
return SERVER_URL_REGEXP.test(value);
}
1 change: 1 addition & 0 deletions webapp/packages/core-website/src/WebsiteLinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* you may not use this file except in compliance with the License.
*/
export class WebsiteLinks {
static ROOT_PAGE = 'https://dbeaver.com/';
static DATA_EDITOR_DOCUMENTATION_PAGE = 'https://dbeaver.com/docs/cloudbeaver/Data-editor/';
static SQL_EDITOR_DOCUMENTATION_PAGE = 'https://dbeaver.com/docs/cloudbeaver/SQL-Editor/';
static SERVER_CONFIGURATION_RESOURCE_QUOTAS_PAGE = 'https://dbeaver.com/docs/cloudbeaver/Server-configuration/#resource-quotas';
Expand Down