Skip to content
Permalink
Browse files
JUDDI-919 reducing log out and attempting to fix the build, looks lik…
…e it's due to auth token timeouts
  • Loading branch information
spyhunter99 committed Feb 16, 2015
1 parent 5994cd0 commit be1878f7da4246ddbbf880eb1e59635c686cf644
Showing 7 changed files with 17 additions and 17 deletions.
@@ -1017,11 +1017,11 @@ public void setPublisherAssertions(String authInfo,
// First, identify all previous assertions that need to be removed
List<org.apache.juddi.model.PublisherAssertion> existingAssertions = FindPublisherAssertionByBusinessQuery.select(em, businessKeysFound, null);

logger.info(">>>> Existing assertions " + existingAssertions.size() + ", inbound set " + publisherAssertion.value.size());
logger.debug(">>>> Existing assertions " + existingAssertions.size() + ", inbound set " + publisherAssertion.value.size());
List<org.apache.juddi.model.PublisherAssertion> deleteMe = diff(publisherAssertion.value, existingAssertions);
logger.info(">>>> DIFF size is " + deleteMe.size());
logger.debug(">>>> DIFF size is " + deleteMe.size());
for (org.apache.juddi.model.PublisherAssertion del : deleteMe) {
logger.info(">>>> PROCESSING " + del.getBusinessEntityByFromKey().getEntityKey() + " " + del.getBusinessEntityByToKey().getEntityKey());
logger.debug(">>>> PROCESSING " + del.getBusinessEntityByFromKey().getEntityKey() + " " + del.getBusinessEntityByToKey().getEntityKey());
boolean from = false;
if (del.getFromCheck() != null) {
del.getFromCheck().equalsIgnoreCase("true");
@@ -1040,10 +1040,10 @@ public void setPublisherAssertions(String authInfo,
MappingModelToApi.mapPublisherAssertion(del, api);

if (!to && !from) {
logger.info(">>>> DELETE ME " + del.getBusinessEntityByFromKey().getEntityKey() + " " + del.getBusinessEntityByToKey().getEntityKey());
logger.debug(">>>> DELETE ME " + del.getBusinessEntityByFromKey().getEntityKey() + " " + del.getBusinessEntityByToKey().getEntityKey());
em.remove(del);
} else {
logger.info(">>>> MERGING ME " + del.getBusinessEntityByFromKey().getEntityKey() + " " + del.getBusinessEntityByToKey().getEntityKey());
logger.debug(">>>> MERGING ME " + del.getBusinessEntityByFromKey().getEntityKey() + " " + del.getBusinessEntityByToKey().getEntityKey());
del.setFromCheck(from ? "true" : "false");
del.setToCheck(to ? "true" : "false");
del.setModified(new Date());
@@ -153,9 +153,9 @@

<token>
<!-- Time in minutes to expire tokes after inactivity-->
<Timeout>15</Timeout>
<Timeout>30</Timeout>
<!-- As of 3.1.5 Duration of time for tokens to expire, regardless of inactivity -->
<Expiration>15</Expiration>
<Expiration>30</Expiration>
<!-- As of 3.2, when set to true, tokens can only be used from the same IP address they were issued to -->
<enforceSameIPRule>true</enforceSameIPRule>
</token>
@@ -149,9 +149,9 @@

<token>
<!-- Time in minutes to expire tokes after inactivity-->
<Timeout>15</Timeout>
<Timeout>30</Timeout>
<!-- As of 3.1.5 Duration of time for tokens to expire, regardless of inactivity -->
<Expiration>15</Expiration>
<Expiration>30</Expiration>
<!-- As of 3.2, when set to true, tokens can only be used from the same IP address they were issued to -->
<enforceSameIPRule>true</enforceSameIPRule>
</token>
@@ -156,9 +156,9 @@

<token>
<!-- Time in minutes to expire tokes after inactivity-->
<Timeout>15</Timeout>
<Timeout>30</Timeout>
<!-- As of 3.1.5 Duration of time for tokens to expire, regardless of inactivity -->
<Expiration>15</Expiration>
<Expiration>30</Expiration>
<!-- As of 3.2, when set to true, tokens can only be used from the same IP address they were issued to -->
<enforceSameIPRule>true</enforceSameIPRule>
</token>
@@ -153,9 +153,9 @@

<token>
<!-- Time in minutes to expire tokes after inactivity-->
<Timeout>15</Timeout>
<Timeout>30</Timeout>
<!-- As of 3.1.5 Duration of time for tokens to expire, regardless of inactivity -->
<Expiration>15</Expiration>
<Expiration>30</Expiration>
<!-- As of 3.2, when set to true, tokens can only be used from the same IP address they were issued to -->
<enforceSameIPRule>true</enforceSameIPRule>
</token>
@@ -156,9 +156,9 @@

<token>
<!-- Time in minutes to expire tokes after inactivity-->
<Timeout>15</Timeout>
<Timeout>30</Timeout>
<!-- As of 3.1.5 Duration of time for tokens to expire, regardless of inactivity -->
<Expiration>15</Expiration>
<Expiration>30</Expiration>
<!-- As of 3.2, when set to true, tokens can only be used from the same IP address they were issued to -->
<enforceSameIPRule>true</enforceSameIPRule>
</token>
@@ -156,9 +156,9 @@

<token>
<!-- Time in minutes to expire tokes after inactivity-->
<Timeout>15</Timeout>
<Timeout>30</Timeout>
<!-- As of 3.1.5 Duration of time for tokens to expire, regardless of inactivity -->
<Expiration>15</Expiration>
<Expiration>30</Expiration>
<!-- As of 3.2, when set to true, tokens can only be used from the same IP address they were issued to -->
<enforceSameIPRule>true</enforceSameIPRule>
</token>

0 comments on commit be1878f

Please sign in to comment.