Skip to content

Commit 8d752b7

Browse files
author
attdevsupport
committed
Production Fixes
1 parent 1834766 commit 8d752b7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+1626
-3414
lines changed

RESTFul/IMMN/Csharp/app1/Default.aspx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ For more information contact developer.support@att.com
121121
{ %>
122122
<div class="successWide">
123123
<strong>SUCCESS:</strong>
124-
messageId: <%=sendMessageSuccessResponse.ToString() %>
124+
<%=sendMessageSuccessResponse.ToString() %>
125125
</div>
126126
<% } %>
127127
<% if (!string.IsNullOrEmpty(sendMessageErrorResponse))

RESTFul/IMMN/Csharp/app1/Default.aspx.cs

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public partial class MIM_App1 : System.Web.UI.Page
3434
/// Access token variables - temporary
3535
/// </summary>
3636
private string apiKey, authCode, authorizeRedirectUri, secretKey, accessToken,
37-
scope, refreshToken, refreshTokenExpiryTime, accessTokenExpiryTime, bypassSSL;
37+
scope, refreshToken, refreshTokenExpiryTime, accessTokenExpiryTime;
3838

3939
/// <summary>
4040
/// Maximum number of addresses user can specify
@@ -74,7 +74,7 @@ public partial class MIM_App1 : System.Web.UI.Page
7474

7575
protected void Page_Load(object sender, EventArgs e)
7676
{
77-
BypassCertificateError();
77+
this.BypassCertificateError();
7878
this.ReadConfigFile();
7979

8080
if ((Session["cs_rest_appState"] == "GetToken") && (Request["Code"] != null))
@@ -796,19 +796,13 @@ private void GetMessageContentByIDnPartNumber(string accTok, string endP, string
796796

797797
}
798798

799-
private static void BypassCertificateError()
799+
private void BypassCertificateError()
800800
{
801-
string bypassSSL = ConfigurationManager.AppSettings["IgnoreSSL"];
802-
803-
if ((!string.IsNullOrEmpty(bypassSSL))
804-
&& (string.Equals(bypassSSL, "true", StringComparison.OrdinalIgnoreCase)))
805-
{
806-
ServicePointManager.ServerCertificateValidationCallback +=
807-
delegate(Object sender1, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors)
808-
{
809-
return true;
810-
};
811-
}
801+
ServicePointManager.ServerCertificateValidationCallback +=
802+
delegate(object sender1, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors)
803+
{
804+
return true;
805+
};
812806
}
813807

814808
protected void SetRequestSessionVariables()

RESTFul/IMMN/Csharp/app1/Web.config

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
<customErrors mode="Off"></customErrors>
1111
</system.web>
1212
<appSettings>
13-
<!-- Set this parameter value to "true", if you need to bypass the SSL certificate. Default FALSE -->
14-
<add key="IgnoreSSL" value="false"/>
15-
13+
1614
<!-- This is mandatory parameter, set the value as per your registered application
1715
'API key' field value. -->
1816
<add key="api_key" value=""/>

RESTFul/IMMN/Java/app1/src/main/webapp/WEB-INF/immn.jsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ For more information contact developer.support@att.com
107107
<option value="att.gif">att.gif</option>
108108
</select>
109109
</label>
110-
<button id="sendMessage" name="sendMessage" type="submit" class="submit">Send Message</button>
110+
<button id="sendMessage" type="submit" class="submit">Send Message</button>
111111
</div>
112112
</form>
113113
<c:if test="${not empty immnError}">

RESTFul/IMMN/PHP/app1/index.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@
7878
<h2>Send Messages:</h2>
7979
<form method="post" action="index.php" name="msgContentForm" >
8080
<div class="inputFields">
81-
<?php if (isset($_SESSION['Address'])) { ?>
82-
<input placeholder="Address" name="Address" type="text"
83-
value="<?php echo htmlspecialchars($_SESSION['Address']); ?>" />
81+
<?php if (isset($_SESSION['address'])) { ?>
82+
<input placeholder="Address" name="address" type="text"
83+
value="<?php echo htmlspecialchars($_SESSION['address']); ?>" />
8484
<?php } else { ?>
85-
<input placeholder="Address" name="Address" type="text" />
85+
<input placeholder="Address" name="address" type="text" />
8686
<?php } ?>
8787
<?php if (isset($_SESSION['checkbox']) && $_SESSION['checkbox'] == true) { ?>
8888
<label>Group: <input name="groupCheckBox" type="checkbox" checked /></label>

RESTFul/IMMN/PHP/app1/src/Controller/IMMNController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,15 @@ public function handleRequest() {
5656
}
5757

5858
public function handleSendMessage() {
59-
$vnames = array('sendMessage', 'Address', 'message', 'subject',
59+
$vnames = array('sendMessage', 'address', 'message', 'subject',
6060
'attachment', 'groupCheckBox');
6161
$this->copyToSession($vnames);
6262
if (!isset($_SESSION['sendMessage'])) {
6363
return;
6464
}
6565

6666
try {
67-
$addr = $this->convertAddresses($_SESSION['Address']);
67+
$addr = $this->convertAddresses($_SESSION['address']);
6868
$msg = $_SESSION['message'];
6969
$subject = $_SESSION['subject'];
7070
$attachment = $_SESSION['attachment'];

RESTFul/IMMN/PHP/app1/style/common.css

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -199,11 +199,6 @@ h2 {
199199
margin-bottom: 1.2833%;
200200
}
201201

202-
.note {
203-
font-style: italic;
204-
font-size: 0.8em;
205-
}
206-
207202
/* APP SPECIFIC CSS */
208203
#msgHeaderForm {
209204
float: left;
@@ -214,10 +209,6 @@ h2 {
214209
float: right;
215210
width: 50%;
216211
}
217-
218-
#kvp select {
219-
width: 100%
220-
}
221212
/* END APP SPECIFIC CSS */
222213

223214
/* End of layout styles */
@@ -340,7 +331,7 @@ h2 {
340331
width: 100%;
341332
}
342333
#msgContentForm {
343-
float: none;
334+
float: right;
344335
width: 100%;
345336
}
346337
/* END APP SPECIFIC MEDIA QUERY CSS */

RESTFul/IMMN/Ruby/app1/Gemfile

Lines changed: 0 additions & 14 deletions
This file was deleted.

RESTFul/IMMN/Ruby/app1/Gemfile.lock

Lines changed: 0 additions & 53 deletions
This file was deleted.

RESTFul/IMMN/Ruby/app1/README

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -83,27 +83,23 @@
8383
- rake: compiling tool used to make att-codekit
8484
- yard: documentation tool used by att-codekit
8585

86-
The easiest way to install the required gems is to use bundler.
87-
88-
First make sure you have bundler installed:
89-
gem install bundler
90-
91-
Then inside the directory which this README resides run:
92-
bundle install
86+
To install these gems open up a terminal window and invoke:
87+
88+
gem install sinatra sinatra-contrib rest-client json rake yard
9389

9490
On a *nix based system you may need to raise your access privliges, such as
9591
prefixing the command with sudo or logging in as root by running su.
9692

9793
** Installing the att-codekit library
98-
Note: this is only required if you are **not** using bundler and are using ruby 1.9+
94+
Note: required for ruby 1.9+ and suggested for 1.8
9995

10096
The code kit library can be installed by using our hosted gem file.
10197

102-
gem sources --add http://ldev.code-api-att.com:8808
98+
gem sources --add http://ldev.code-apt-att.com:8808
10399
gem install att-codekit
104100

105101
Note that the codekit is under heavy development and is using a semantic
106-
versioning scheme. Non-backwards compatible changes **will** increase the
102+
versioning scheme. Non-backwards compatible changes _will_ increase the
107103
major version number.
108104

109105

0 commit comments

Comments
 (0)