Aditya Toshniwal
d6400bbcae
Replace the generic exception class with a more specific one.
2020-08-07 12:37:00 +05:30
Aditya Toshniwal
45a03dd663
Fixed 'convention' related code smell reported by SonarQube.
2020-07-06 11:48:23 +05:30
Aditya Toshniwal
8c20f0c0d2
Some clumsy coding related fixes reported by SonarQube.
2020-06-12 15:24:17 +05:30
Aditya Toshniwal
1050c9857a
Fixed an issue when dumping servers from a desktop pgAdmin app by providing an option '--sqlite-path'. Fixes #5521
2020-06-01 11:22:38 +05:30
Khushboo Vashi
d68e6bd892
Remove Python2 modules.
...
refs #5443
2020-05-08 12:28:21 +05:30
Akshay Joshi
ad80217593
Remove Python2 references from the source code.
...
refs #5443
Initial patch: Neel Patel
2020-04-30 17:22:48 +05:30
Libor M
36a3d4e53b
Some more gettext() usage fixes:
...
- fixed `%` vs. `.format()`
- unified texts and usage `%s` vs. `{}`/`{0}`
- improved text sentences for translate
- added gettext for next texts
2020-04-20 11:19:09 +05:30
Aditya Toshniwal
31a929388b
Make changes to use gettext() function correctly.
2020-04-15 16:23:17 +05:30
Ashesh Vashi
a930c6617b
Merged adjustanct 'if' statements when allowed.
...
Also - removed the unused variables.
2020-04-14 18:43:04 +05:30
Libor M
6a9af07f7a
Fixed gettext usage:
...
- fixed gettext usage with .format() only for original text with %s
- fixed typos
- fixed translation yes/no buttons in the dialog.
- improved translating sentences without "connecting" words (eg. see web/pgadmin/dashboard/static/js/dashboard.js,
word 'cancel' needs to be translated in the Czech language as 'zrušit' but in another sentence as 'zrušení')
- added gettext for text translations.
2020-04-10 14:52:41 +05:30
Khushboo Vashi
f77aa3284f
Added LDAP authentication support. Fixes #2186
2020-04-06 15:57:05 +05:30
Dave Page
01c7636c75
Update copyright notices for 2020.
2020-01-02 14:43:50 +00:00
Dave Page
8cb239abcb
Rename some internal environment variables that could conflict with Kubernetes. Fixes #4999 .
2019-12-13 10:42:43 +05:30
Aditya Toshniwal
75ac259632
Fix issue where the user can not switch the UI language. It's a regression of #4348 . Fixes #4975
2019-12-05 14:34:44 +05:30
Aditya Toshniwal
c1c682402a
1) Further styling tweaks for Dark Theme.
...
2) Theme related code changes are removed from config.py and moved to miscellaneous under a new package - "themes".
2019-11-11 18:47:43 +05:30
Aditya Toshniwal
8180403f97
1) Added support for custom theme creation and selection. Fixes #4348 .
...
2) Added Dark(Beta) UI Theme option. Fixes #3741 .
3) Fix an issue where a black arrow-kind image is displaying at the background of browser tree images. Fixes #4171
Changes include:
1) New theme option in preferences - Miscellaneous -> Themes. You can select the theme from the dropdown.
It also has a preview of the theme just below the dropdown. Note that, a page refresh is needed to apply changes.
On saving, a dialog appears to ask for refresh.
2) You can create your own theme and submit to hackers. README is updated to help you create a theme. Theme will be available only after the bundle.
3) Correction of SASS variables at few places and few other CSS corrections.
4) Added iconfont-webpack-plugin, which will convert all the SVG files(monochrome) used as icons for buttons to font icons.
This will allow us to change the color of the icon by using CSS color property.
5) All the .css files will bundle into a separate file now- pgadmin.style.css. This will help reduce the size of
theme CSS files as CSS in .css files will not change with the change of SASS variables.
2019-11-07 18:51:03 +05:30
Aditya Toshniwal
f16498a8a7
Optimize Webpack to improve overall performance.
...
Changes include:
1) Remove underscore-string and sprintf-js packages as we were using only %s. Instead, added a function to do the same. Also changed gettext to behave like sprintf directly.
2) backgrid.sizeable.columns was not used anywhere, removed. @babel/polyfill is deprecated, replaced it with core-js.
3) Moved few css to make sure they get minified and bundled.
4) Added Flask-Compress to send static files as compressed gzip. This will reduce network traffic and improve initial load time for pgAdmin.
5) Split few JS files to make code reusable.
6) Lazy load few modules like leaflet, wkx is required only if geometry viewer is opened. snapsvg loaded only when explain plan is executed. This will improve sqleditor initial opening time.
Reviewed By: Khushboo Vashi
Fixes #4701
2019-10-10 12:05:28 +05:30
Aditya Toshniwal
bfca1e3ac8
Set the Werkzeug logger to the same log level as the rest of the app.
2019-08-08 15:36:22 +01:00
Murtuza Zabuawala
ee8fec6d7f
Allow enhanced cookie protection to be disabled for compatibility with dynamically addressed hosting environments. Fixes #4566
2019-08-06 09:21:31 +01:00
Dave Page
71919a4ce9
Prevent the "Please login to access this page" message displaying multiple times. Fixes #4306
2019-06-17 14:12:36 +01:00
Dave Page
13704a4f34
Disable upgrade checks whilst testing.
2019-06-03 11:35:59 -04:00
Aditya Toshniwal
91075cc3f5
Disable the master password in test mode (for now).
2019-05-31 10:19:04 -04:00
Aditya Toshniwal
dfa892d2a2
1. Added Master Password to increase the security of saved passwords. Fixes #4184
...
2. In server(web) mode, update all the saved server credentials when user password is changed. Fixes #3377
2019-05-28 12:00:18 +05:30
Khushboo Vashi
6f0eafb223
Fixed CSRF security vulnerability issue. per Alvin Lindstam. Fixes #4217
...
Initial patch by: Khushboo Vashi
Modified by: Ashesh Vashi and Murtuza Zabuawala
2019-05-28 10:59:51 +05:30
Dave Page
ea4dbd31e8
Don't try to set permissions on Windows. It won't work anyway. Fixes #4276
2019-05-20 13:53:08 +01:00
Dave Page
d728ee7436
Ensure sanity of the permissions on the storage and session directories and the config database. Fixes #4182
2019-04-17 16:57:34 +01:00
Akshay Joshi
c4ea1a56bc
Fixed typo in logging.raiseException, it is 'raiseExceptions'. Fixes #3933
2019-03-25 11:36:18 +05:30
Khushboo Vashi
546161ab1a
Fix an issue with stdout redirection on Windows, and remove code added in a failed attempt to resolve a Windows regression test issue.
2019-03-19 15:55:34 +00:00
Khushboo Vashi
31e17f025b
Attempt to fix the Windows regression test weirdness.
2019-03-18 09:30:08 +00:00
Akshay Joshi
bbeb395beb
Ignore exceptions in the logger. Fixes #3933
2019-02-28 13:22:12 +00:00
Dave Page
f72dcc23ea
Allow X-FRAME-OPTIONS to be set in config.py. Default to SAMEORIGIN. Fixes #3439
...
DENY cannot be supported without breaking the debugger and query tool.
2019-02-12 16:17:14 +00:00
Cyril Jouve
a1ce6d9513
Remove another Python 2.6 hack
2019-02-07 10:32:40 +00:00
Akshay Joshi
22d458b01e
Close connections gracefully when the user logs out of pgAdmin. Fixes #3942
2019-02-06 13:17:52 +00:00
Navnath Gadakh
5fdc1ffb38
Exclude HTTPExceptions from the all_exception_handler as they should be returned as-is. Fixes #3961
2019-02-04 10:31:47 +00:00
Aditya Toshniwal
1f29859040
Improve application level exception handling for unhandled exceptions.
2019-01-23 12:49:05 +05:30
Murtuza Zabuawala
e23d307c56
Update copyright notices for 2019
2019-01-02 15:54:12 +05:30
Aditya Toshniwal
943fc25f60
Make the setup process more robust against aborted executions. Fixes #3830
2018-12-21 10:30:49 +00:00
Harshal Dhumal
822d384746
Purge connections from the cache on logout. Fixes #3703
2018-10-17 12:42:41 +01:00
Akshay Joshi
7144db7f5a
Cleanup session files periodically. Fixes #3674
2018-10-09 11:34:13 +01:00
Aditya Toshniwal
ff87cf5544
Correctly handle "values" in web/pgadmin/__init__.py -> strip_version_number which can be None in some cases and will cause exception when None
2018-08-16 09:23:58 +01:00
Aditya Toshniwal
cb8a288f85
Added version number for URL's to ensure that files are only cached on a per-version basis. Fixes #2136 .
2018-08-06 15:21:10 +05:30
Aditya Toshniwal
82d77c4608
Don't create a session when the /misc/ping test endpoint is called. Fixes #3371
2018-07-05 11:12:03 +01:00
Akshay Joshi
83f9d8a547
Minor fix to handle auto-discovery of servers with no port recorded.
2018-06-21 16:34:33 -04:00
Murtuza Zabuawala
be055ce57d
Update Python and JS modules. Fixes #3154
2018-04-04 10:47:01 +01:00
Khushboo Vashi
413709fc78
Simplify cookie domain/path settings, per discussion. Instead of trying to be smart, just let the user specify them in the config, e.g.
...
COOKIE_DEFAULT_DOMAIN = None
SESSION_COOKIE_DOMAIN = None
2018-03-23 10:14:02 +00:00
Dave Page
c8b456d464
PEP8 fixes
2018-03-20 14:02:56 +00:00
Khushboo Vashi
4942c938ac
Fix an error on exit caused by the cookie path patch.
2018-03-20 13:55:06 +00:00
Khushboo Vashi
534f1f35fe
Appropriately set the cookie path. Fixes #3197
2018-03-19 17:09:19 +00:00
Dave Page
93d44d5643
Revert "Ensure the cookie domain and path are properly set. Fixes #3197 "
...
This reverts commit 9c4edb4a28 .
Jenkins really doesn't like this.
2018-03-15 14:54:14 -04:00
Khushboo Vashi
9c4edb4a28
Ensure the cookie domain and path are properly set. Fixes #3197
2018-03-15 13:59:29 -04:00