Comments (4)
Proposed fix in #7048
from mapserver.
@PPazderski - thanks for looking into this.
MSSQL uses both pwd
and password
for connections depending on the database driver used.
One option could be to replace both the password and the keyword which I think would solve the issue. For example:
\SQL2019;DATABASE=msautotest;pwd=Password12!;uid=sa;
Would become something like:
\SQL2019;DATABASE=msautotest;***************;uid=sa;
This would then skip any subsequent replacements. It could also stop at a linebreak if no delimiter is found, although if the above approach is used I'm not sure if that would still be necessary.
from mapserver.
Also it does look like mysql connections in OGR use a comma separator so that combination should also probably be included.
https://gdal.org/drivers/vector/mysql.html#layer-creation-options
from mapserver.
One option could be to replace both the password and the keyword which I think would solve the issue.
Unfortunately that would not work. Imagine the case with a space in password for MSSQL. With the current code plus replacing the password=
it would first replace the password until the space in the password plus the key but then the second replacement for MSSQL with semicolon delimiter would not apply anymore. E.g.
\SQL2019;DATABASE=msautotest;password=Password with space;uid=sa;
would become
\SQL2019;DATABASE=msautotest;***************** with space;uid=sa;
and the second msRedactString
not find any password=
anymore. When changing the order the same would apply for a postgis password containing a semicolon.
from mapserver.
Related Issues (20)
- Whitespace in EXPRESSIONS added to SLD Filters
- Antimeridian BBOXes not supported by the OGC Features API
- Failing Windows CI Test test_rq_10 HOT 5
- Authentication of users and access to data based on S3 keys provided through Run-time Substitution. HOT 3
- PHPScript HOT 2
- Using LAYER CLASS filters for MVT tiles rendering HOT 6
- ability to use non existing properties in (FI) templates HOT 5
- Segfault when Mapfile includes a missing file HOT 3
- data loss on getmap requests when vector data is reprojected EPSG:2056 to EPSG:4326 HOT 6
- In under certain conditions Mapserver segfault error geos_ts_c.cpp HOT 2
- Posgresql returns in response all products in database, even if BBOX parameter is passed
- undefined symbol: msCGIWriteLog when calling any mapserver command HOT 2
- Web metadata ows_schemas_location is not respected for OGC API Features, and appears to not be documented HOT 3
- Memory corruption in msUpdate...FromString
- Parser IO error is ignored if map include is a directory
- Mapserver unable to read config file HOT 2
- erroneous extra outlines when using WIDTH based on an attribute HOT 4
- centerline function causes GEOS errors HOT 8
- `msOGRFileOpen: Spatialite support in GPKG not enabled` with LogLevel `DEBUG 0` HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mapserver.