Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions src/DIRAC/Core/Base/SQLAlchemyDB.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

Uses sqlalchemy
"""

import datetime
from urllib import parse as urlparse
from sqlalchemy import create_engine, desc, exc
Expand Down
7 changes: 4 additions & 3 deletions src/DIRAC/DataManagementSystem/DB/FTS3DB.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
""" Frontend to FTS3 MySQL DB. Written using sqlalchemy
"""
"""Frontend to FTS3 MySQL DB. Written using sqlalchemy"""

# We disable the no-member error because
# they are constructed by SQLAlchemy for all
# the objects mapped to a table.
# pylint: disable=no-member

import datetime
import errno
from urllib.parse import quote_plus

from sqlalchemy import (
BigInteger,
Expand Down Expand Up @@ -184,7 +185,7 @@ def __getDBConnectionInfo(self, fullname):
self.dbHost = dbParameters["Host"]
self.dbPort = dbParameters["Port"]
self.dbUser = dbParameters["User"]
self.dbPass = dbParameters["Password"]
self.dbPass = quote_plus(dbParameters["Password"])
self.dbName = dbParameters["DBName"]

def __init__(self, pool_size=15, url=None, parentLogger=None):
Expand Down
4 changes: 3 additions & 1 deletion src/DIRAC/RequestManagementSystem/DB/RequestDB.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
import errno
import random

from urllib.parse import quote_plus

from sqlalchemy import (
TEXT,
BigInteger,
Expand Down Expand Up @@ -198,7 +200,7 @@ def __getDBConnectionInfo(self, fullname):
self.dbHost = dbParameters["Host"]
self.dbPort = dbParameters["Port"]
self.dbUser = dbParameters["User"]
self.dbPass = dbParameters["Password"]
self.dbPass = quote_plus(dbParameters["Password"])
self.dbName = dbParameters["DBName"]

def __init__(self, parentLogger=None):
Expand Down
Loading