Compare commits

...

6 Commits
master ... v3.0

Author SHA1 Message Date
Adolfo Gómez García
e7216e8a24 updated user interface 2022-05-17 16:42:37 +02:00
Adolfo Gómez García
48557f96e4 Fixed assignement of new services if pool is at 100% usage 2021-11-30 12:18:15 +01:00
Adolfo Gómez García
263071750c Fixed logs removal 2021-09-02 13:23:04 +02:00
Adolfo Gómez García
4fed22d39d Merge branch 'v3.0' of github.com:dkmstr/openuds into v3.0 2021-08-25 12:49:08 +02:00
Adolfo Gómez García
24687fda2e Fixed configjs so disabled custom auths works in all cases 2021-08-25 12:48:54 +02:00
Adolfo Gómez García
51b0cec536 Upgraded git signatures outdated for RDP (thanks Dani por the report ;-) ) 2021-08-19 12:55:30 +02:00
9 changed files with 43 additions and 37 deletions

View File

@ -153,7 +153,7 @@ class LogManager:
"""
owner_type = transDict.get(type(wichObject), None)
if owner_type:
if owner_type is not None:
self.__clearLogs(owner_type, wichObject.id)
else:
logger.debug('Requested clearLogs for a type of object not covered: %s', wichObject)

View File

@ -669,6 +669,12 @@ class UserServiceManager:
# Sort pools related to policy now, and xtract only pools, not sort keys
# Remove "full" pools (100%) from result and pools in maintenance mode, not ready pools, etc...
pools: typing.List[ServicePool] = [p[1] for p in sorted(sortPools, key=lambda x: x[0]) if p[1].usage() < 100 and p[1].isUsable()]
poolsFull: typing.List[ServicePool] = [
p[1]
for p in sorted(sortPools, key=lambda x: x[0])
if p[1].usage() == 100 and p[1].isUsable()
]
logger.debug('Pools: %s', pools)
@ -687,7 +693,7 @@ class UserServiceManager:
try:
alreadyAssigned: UserService = UserService.objects.filter(
deployed_service__in=pools,
deployed_service__in=pools+poolsFull,
state__in=State.VALID_STATES,
user=user,
cache_level=0

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,12 +1,5 @@
// "Fake" javascript file for translations
// Typescript
gettext("Warning");
gettext("Service is in maintenance and cannot be executed");
gettext("Errors found");
gettext("Invalid error string");
gettext("We use cookies to track usage and preferences");
gettext("I Understand");
gettext("Learn more");
gettext("Service is in maintenance");
gettext("This service is currently not accessible due to schedule restrictions.");
gettext("Launcher");
@ -24,29 +17,14 @@ gettext("Error launching service");
gettext("Please wait until the service is launched.");
gettext("Please, tray again in a few moments.");
gettext("Error launching service");
gettext("Invalid error string");
gettext("Errors found");
gettext("Warning");
gettext("Service is in maintenance and cannot be executed");
gettext("We use cookies to track usage and preferences");
gettext("I Understand");
gettext("Learn more");
// HTML
gettext("You can access UDS Open Source code at");
gettext("UDS has been developed using these components:");
gettext("If you find that we missed any component, please let us know");
gettext("UDS Client");
gettext("Download UDS client for your platform");
gettext("Legacy clients are only provided for old operating system support. Try to avoid them.");
gettext("Username");
gettext("Password");
gettext("Authenticator");
gettext("Login");
gettext("Downloads");
gettext("Always download the UDS actor matching your platform");
gettext("Legacy actors are only provided for old operating system support. Try to avoid them.");
gettext("An error has occurred");
gettext("Return");
gettext("UDS Service launcher");
gettext("The service you have requested is being launched.");
gettext("Please, note that reloading this page will not work.");
gettext("To relaunch service, you will have to do it from origin.");
gettext("If the service does not launchs automatically, probably you dont have the UDS Client installed");
gettext("You can obtain it from the");
gettext("UDS Client download page");
gettext("Release service");
gettext("Reset service");
gettext("Connections");
@ -69,3 +47,25 @@ gettext("UDS Client");
gettext("About");
gettext("UDS Client");
gettext("About");
gettext("You can access UDS Open Source code at");
gettext("UDS has been developed using these components:");
gettext("If you find that we missed any component, please let us know");
gettext("UDS Client");
gettext("Download UDS client for your platform");
gettext("Legacy clients are only provided for old operating system support. Try to avoid them.");
gettext("Downloads");
gettext("Always download the UDS actor matching your platform");
gettext("Legacy actors are only provided for old operating system support. Try to avoid them.");
gettext("An error has occurred");
gettext("Return");
gettext("UDS Service launcher");
gettext("The service you have requested is being launched.");
gettext("Please, note that reloading this page will not work.");
gettext("To relaunch service, you will have to do it from origin.");
gettext("If the service does not launchs automatically, probably you dont have the UDS Client installed");
gettext("You can obtain it from the");
gettext("UDS Client download page");
gettext("Username");
gettext("Password");
gettext("Authenticator");
gettext("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LDrXgHnzLj9g83wmx2KX0r6lWrTJZbHCHt9Rh36S16/1q10Zv3Av3uX8bwZ9xAE5otz4MD/KDY7pd2xL1BV1EeNHfQmhh5cQRUI3d5OtOhAyDpPXcuEqDFPkVQMNHgnrb8xp6AtiQ0T3FBLIb7NMdV7cnfzAH7ZGVQ9LJDOsVovlE4BYKAMZf0o3fR/31EvpDhhL3zB0OH1us/Yk2nkttsl6ZxuGL2dmnxL82Or5SfvlvsMyuIuDBJQLRrb9uXla4rFUv6No3ttLJk3GJNjw+PJKftYJKYPrZetq3lGK1Qckowi8ew0QZ2hT4m4Jo82/19uLzPpv5e1J6REDcUIex9SLtYv/dev5HulwNSUs1MjENGh7RJX+HNZ2VvRCHm5z9obl/kzPF9v4KuhPdaqfmNvGJOGrR6SR7G5zKIG4fWgAOmFu6lnVbTKlLb5nkrXUVOjujgjv8QUavGLXdOtezg83lIgkeEL8xJi1sFN4hMREqRHlKHb7mH6Bh4/FRMFbBiz0ozTOkknpUnUY00Qwwd9IfyScnvbYhKm/rLKxZfa/MnlqtESzd8fYQgDR5Ug9HsxMhNae6215aX8QbncHuauc41D0LLoMyJ4i+z2efvnhXK5AM/buzss=

View File

@ -65,7 +65,7 @@ urlpatterns = [
# Login/logout
path(r'uds/page/login', uds.web.views.modern.login, name='page.login'),
re_path(r'^uds/page/login/(?P<tag>[a-zA-Z0-9-]+)$', uds.web.views.modern.login, name='page.login.tag'),
re_path(r'^uds/page/login/(?P<tag>[a-zA-Z0-9_-]+)$', uds.web.views.modern.login, name='page.login.tag'),
path(r'uds/page/logout', uds.web.views.modern.logout, name='page.logout'),

View File

@ -98,7 +98,7 @@ def udsJs(request: 'HttpRequest') -> str:
if tag and authenticators: # Refilter authenticators, visible and with this tag if required
authenticators = [x for x in authenticators if x.small_name == tag or (tag == 'disabled' and x.getType().isCustom() is False)]
if not authenticators:
if not authenticators and tag != 'disabled':
try:
authenticators = [Authenticator.objects.order_by('priority')[0]]
except Exception: # There is no authenticators yet...