Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.2.0
-
Fix Version/s: None
-
Component/s: Site Generation Service
-
Labels:None
-
Environment:
QA SMB1
optus-ear-1.2.0-SNAPSHOT-p41-t20120411-175034-CI.ear
Description
removeSite functionality is NOT working.
SOAPUI Request:
SOAPUI Request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sit="http://www.thesearchagency.com/SiteGenerationService/">
<soapenv:Header/>
<soapenv:Body>
<sit:removeSiteRequest>
<header>
<requestID>1</requestID>
<retryID>1</retryID>
</header>
<customerID>CK Testing 005-0000000006</customerID>
</sit:removeSiteRequest>
</soapenv:Body>
</soapenv:Envelope>
SOAPUI Response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns2:removeSiteResponse xmlns:ns2="http://www.thesearchagency.com/SiteGenerationService/">
<header>
<requestID>1</requestID>
<retryID>1</retryID>
</header>
<result>
<resultCode>failure</resultCode>
<resultString>CustomerId [CK Testing 005-0000000006] Site has not been removed.</resultString>
</result>
</ns2:removeSiteResponse>
</soap:Body>
</soap:Envelope>
Jboss logs:
13:59:45,321 DEBUG [JdbcTemplate] Executing prepared SQL statement [select customerId,hostingServerID,domain,dateAssigned,status from hostingAssignments where customerId = ? ]
13:59:45,325 WARN [OptusSiteAdapter] Attempting to remove site [www.cust0-qa-domain.com] for customerId [CK Testing 005-0000000006].
13:59:45,364 INFO [OptusSiteAdapter] Removing Site from remote host...
13:59:45,364 INFO [OptusSiteAdapter] Removing Site www.cust0-qa-domain.com from Hosting Server null
13:59:45,364 INFO [OptusSiteAdapter] Remote Hosting Site Directory :/var/www/html/customer-sites/c/u/www.cust0-qa-domain.com
13:59:45,642 ERROR [OptusSiteAdapter] Authentication failed.
java.io.IOException: Authentication failed.
at com.thesearchagency.smb.service.site.adapter.OptusSiteAdapter.removeRemoteCopyOfSite(OptusSiteAdapter.java:158)
at com.thesearchagency.smb.service.site.adapter.OptusSiteAdapter.removeSite(OptusSiteAdapter.java:79)
at com.thesearchagency.smb.service.site.component.SiteServiceBD.removeSite(SiteServiceBD.java:119)
at com.thesearchagency.smb.service.site.binding.SiteServiceEJB.removeSite(SiteServiceEJB.java:50)
Proxy server's squid.conf shows :-
[root@optus-qa-mysql1 ~]# cat /etc/squid/squid.conf
hosts_file /etc/hosts
visible_hostname optus-qa-mysql1
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443
acl Safe_ports port 80
acl Safe_ports port 443
[root@optus-qa-mysql1 ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain
50.57.144.182 optus-qa-mysql1
50.57.178.216 www.optus-qa1.com www.optus-qa2.com www.optus-qa3.com www.optus-qa4.com www.optus-qa5.com www.optus-qa6.com
50.57.178.216 www.cust0-qa-domain.com www.cust1-qa-domain.com www.cust2-qa-domain.com www.cust3-qa-domain.com www.cust4-qa-domain.com