Skip to content

Commit 126e4b1

Browse files
committed
12.0.3.0-r1 update
1 parent 7931877 commit 126e4b1

File tree

8 files changed

+376
-48
lines changed

8 files changed

+376
-48
lines changed

ApplyIFixes.sh

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,38 @@
11
#!/bin/bash
22

3-
#Check if any iFix's are to be applied.
3+
# Check if any iFix's are to be applied.
44

55
if [ -z $1 ]; then
66
echo "No iFix's being used skipping this phase."
7-
exit 0 #No iFix specified
8-
else #Create array of iFix's to loop through by removing commas from input.
7+
exit 0 # No iFix specified
8+
else # Create array of iFix's to loop through by removing commas from input.
99
IFIX_LIST_ARRAY=$(echo $1 | tr ',' ' ')
1010
echo "iFix's being applied: ${IFIX_LIST_ARRAY}"
1111
fi
1212

13-
for ifixlink in $IFIX_LIST_ARRAY
13+
for ifixlink in $IFIX_LIST_ARRAY
1414
do
15-
#Make temporary fix directory
16-
mkdir ./fix
17-
cd fix
18-
19-
#Download and unzip iFix tar file.
15+
# Make temporary fix directory
16+
mkdir ./fix
17+
cd fix
18+
19+
# Download and unzip iFix tar file.
2020
curl -Ls $ifixlink | tar -xz
21-
22-
#Execute install command
21+
22+
# Execute install command
2323
ifixname="${ifixlink##*/}"
24-
ifixname="${ifixname%.tar*}"
25-
24+
ifixname="${ifixname%.tar*}"
25+
2626
./mqsifixinst.sh /opt/ibm/ace-12 install $ifixname
27-
28-
#Delete directory
27+
28+
# Delete directory
2929
cd ..
3030
rm -rf ./fix
31-
31+
3232
rm -rf /opt/ibm/ace-12/fix-backups.12.0.1.0
3333
rm /opt/ibm/ace-12/mqsifixinst.log
3434
rm /opt/ibm/ace-12/mqsifixinst.sh
35-
35+
36+
# We explicitly screen out /tools and TransformationAdvisor, so let's make sure to clean up after any iFixes that put them back
37+
rm -rf /opt/ibm/ace-12/tools /opt/ibm/ace-12/server/bin/TADataCollector.sh /opt/ibm/ace-12/server/transformationAdvisor
3638
done

CHANGELOG.md

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,39 @@
11
# Change log
22

3+
## 12.0.3.0-r2
4+
5+
**Updates**
6+
7+
* Improved the logging for metrics when authentication is not enabled
8+
* Includes IT39515
9+
* Includes IT39573
10+
11+
## 12.0.3.0-r1
12+
13+
**Updates**
14+
15+
* Fix bug with capitlisation on "insecureSsl" for barAuth json
16+
317
## 11.0.0.6.1 (2019-11-20)
418

5-
**Breaking changes**:
6-
* None
19+
**Updates**:
720

8-
**Other changes**:
921
* Updated kubectl to version v1.16.0
1022
* Updated MQ to version 9.1.3.0-r3
1123
* Added support for hostname and port overrides when routes are defined
1224
* Created ACE roles for five different access levels: admin, operator, viewer, editor, and audit
1325

1426
## 11.0.0.6 (2019-10-30)
1527

16-
**Breaking changes**:
17-
* None
28+
**Changes**:
1829

19-
**Other changes**:
2030
* Updated to use the 11.0.0.6 build
2131
* Support metrics when Integration Server is using TLS
2232

2333
## 11.0.0.5.1 (2019-09-24)
2434

25-
**Breaking changes**:
26-
* None
35+
**Updates**:
2736

28-
**Other changes**:
2937
* New image that includes an MQ client
3038
* Supports MQ 9.1.3 images
3139
* Support for defining custom ports
@@ -36,10 +44,12 @@
3644
## 11.0.0.5 (2019-07-05)
3745

3846
**Breaking changes**:
47+
3948
* When using MQ, the UID of the mqm user is now 888. You need to run the container with an entrypoint of `runmqserver -i` under the root user to update any existing files.
4049
* MQSC files supplied will be verified before being run. Files containing invalid MQSC will cause the container to fail to start
4150

42-
**Other changes**:
51+
**Updates**:
52+
4353
* Security fixes
4454
* Web console added to production image
4555
* Container built on RedHat host (UBI)
@@ -49,20 +59,16 @@
4959

5060
## 11.0.0.3 (2019-02-04)
5161

52-
**Breaking changes**:
53-
NONE
54-
5562
**Other changes**:
63+
5664
* Provides samples for building image with MQ Client
5765
* Code to generate RHEL based images
5866
* Fix for overriding the hostname and port for RestAPI in the UI / Swagger Docs.
5967

6068
## 11.0.0.2 (2018-11-20)
6169

62-
**Breaking changes**:
63-
NONE
70+
**Updates**:
6471

65-
**Other changes**:
6672
* Updated to support 11.0.0.2 runtime
6773
* Updated to support ICP platform
6874

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,13 @@ Update the Dockerfile such that
100100
- IFIX_TAR is the name of the iFix download file. This must be located in the same directory as the Dockerfile
101101
- USER must be updated to match the ID of the ace user
102102

103-
To build the image use a command such as the following `docker build -f Dockerfile --tag myregistry.com/ace/ace-server-prod:12.0.2.0-ACE-LinuxX64-TFIT38649 .`
103+
To build the image use a command such as the following:
104104

105-
The resulting image should then be used using the same options as the original base image
105+
```bash
106+
docker build -f Dockerfile --tag myregistry.com/ace/ace-server-prod:12.0.2.0-ACE-LinuxX64-TFIT38649 .
107+
```
108+
109+
The resulting inage should then be used using the same options as the original base image
106110

107111
## Usage
108112

git.commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
UPDATEME

internal/configuration/configuration.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -542,8 +542,8 @@ func downloadBASIC_AUTH(log logger.LoggerInterface, basedir string, barAuthParse
542542
}
543543

544544
var tr *http.Transport
545-
// Allow insecure if InsecureSsl is set
546-
if (barAuthParsed.Path("credentials.InsecureSsl").Data() != nil) && (barAuthParsed.Path("credentials.InsecureSsl").Data().(string) == "true") {
545+
// Allow insecure if insecureSsl is set
546+
if (barAuthParsed.Path("credentials.insecureSsl").Data() != nil) && (barAuthParsed.Path("credentials.insecureSsl").Data().(string) == "true") {
547547
tr = &http.Transport{
548548
MaxIdleConns: 10,
549549
IdleConnTimeout: 30 * time.Second,
@@ -553,7 +553,7 @@ func downloadBASIC_AUTH(log logger.LoggerInterface, basedir string, barAuthParse
553553
RootCAs: rootCAs,
554554
},
555555
}
556-
log.Println("InsecureSsl set so accepting/ignoring all server SSL certificates ")
556+
log.Println("insecureSsl set so accepting/ignoring all server SSL certificates ")
557557
} else {
558558
tr = &http.Transport{
559559
MaxIdleConns: 10,

internal/configuration/techConnectorsConfiguration.go

Lines changed: 31 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,10 @@ var buildJDBCPolicies = func(log logger.LoggerInterface, basedir string, jdbcAcc
227227
var supportedDBs = map[string]string{
228228
"IBM Db2 Linux, UNIX, or Windows (LUW) - client managed": "db2luw",
229229
"IBM Db2 Linux, UNIX, or Windows (LUW) - IBM Cloud": "db2cloud",
230-
"IBM Db2 for i": "db2i",
231-
"Oracle": "oracle",
232-
"PostgreSQL": "postgresql",
230+
"IBM Db2 for i": "db2i",
231+
"Oracle": "oracle",
232+
"PostgreSQL": "postgresql",
233+
"Microsoft SQL Server": "sqlserver",
233234
}
234235

235236
policyDirName := basedir + string(os.PathSeparator) + workdirName + string(os.PathSeparator) + "overrides" + string(os.PathSeparator) + "gen.jdbcConnectorPolicies"
@@ -373,27 +374,50 @@ func getJDBCPolicyAttributes(log logger.LoggerInterface, dbType, hostname, port,
373374
var err error
374375
switch dbType {
375376
case "db2luw", "db2cloud":
376-
jdbcURL = "jdbc:db2://" + hostname + ":" + port + "/" + dbName + ":user=[user];password=[password];loginTimeout=40"
377+
jdbcURL = "jdbc:db2://" + hostname + ":" + port + "/" + dbName + ":user=[user];password=[password]"
377378
jdbcClassName = classNames["DB2NativeDriverClassName"]
378379
jdbcType4DataSourceName = classNames["DB2NativeDataSourceClassName"]
379380
endDemiliter = ";"
380381
case "db2i":
381-
jdbcURL = "jdbc:ibmappconnect:db2://" + hostname + ":" + port + ";DatabaseName=" + dbName + ";user=[user];password=[password];loginTimeout=40"
382+
jdbcURL = "jdbc:ibmappconnect:db2://" + hostname + ":" + port + ";DatabaseName=" + dbName + ";user=[user];password=[password]"
382383
jdbcClassName = classNames["DB2DriverClassName"]
383384
jdbcType4DataSourceName = classNames["DB2DataSourceClassName"]
384385
case "oracle":
385-
jdbcURL = "jdbc:ibmappconnect:oracle://" + hostname + ":" + port + ";DatabaseName=" + dbName + ";user=[user];password=[password];loginTimeout=40;FetchDateAsTimestamp=false"
386+
jdbcURL = "jdbc:ibmappconnect:oracle://" + hostname + ":" + port + ";user=[user];password=[password]"
387+
388+
if !strings.Contains(strings.ToLower(additonalParams), "servicename=") && !strings.Contains(strings.ToLower(additonalParams), "sid=") {
389+
jdbcURL = jdbcURL + ";DatabaseName=" + dbName
390+
}
391+
392+
if !strings.Contains(strings.ToLower(additonalParams), "fetchdateastimestamp=") {
393+
jdbcURL = jdbcURL + ";FetchDateAsTimestamp=false"
394+
}
395+
386396
jdbcClassName = classNames["OracleDriverClassName"]
387397
jdbcType4DataSourceName = classNames["OracleDataSourceClassName"]
398+
case "sqlserver":
399+
jdbcURL = "jdbc:ibmappconnect:sqlserver://" + hostname + ":" + port + ";DatabaseName=" + dbName + ";user=[user];password=[password]"
400+
401+
if !strings.Contains(strings.ToLower(additonalParams), "authenticationmethod=") {
402+
jdbcURL = jdbcURL + ";AuthenticationMethod=userIdPassword"
403+
}
404+
405+
jdbcClassName = classNames["SqlServerDriverClassName"]
406+
jdbcType4DataSourceName = classNames["SqlServerDataSourceClassName"]
388407
case "postgresql":
389-
jdbcURL = "jdbc:ibmappconnect:postgresql://" + hostname + ":" + port + ";DatabaseName=" + dbName + ";user=[user];password=[password];loginTimeout=40"
408+
jdbcURL = "jdbc:ibmappconnect:postgresql://" + hostname + ":" + port + ";DatabaseName=" + dbName + ";user=[user];password=[password]"
390409
jdbcClassName = classNames["PostgresDriveClassName"]
391410
jdbcType4DataSourceName = classNames["PostgresDataSourceClassName"]
392411
default:
393412
err = errors.New("Unsupported database type: " + dbType)
394413
return nil, err
395414
}
396415

416+
// default timeout
417+
if !strings.Contains(strings.ToLower(additonalParams), "logintimeout=") {
418+
jdbcURL = jdbcURL + ";loginTimeout=40"
419+
}
420+
397421
if additonalParams != "" {
398422
jdbcURL = jdbcURL + ";" + additonalParams
399423
}

0 commit comments

Comments
 (0)