Skip to content

Commit

Permalink
Merge pull request #5 from researchstudio-sat/fix__403_when_accessing…
Browse files Browse the repository at this point in the history
…_own_messages

Fix  403 when accessing own messages
  • Loading branch information
quasarchimaere authored Oct 14, 2019
2 parents 318a802 + 492678d commit 039ad29
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
/target/
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@
*/
package won.bot.debugbot.action;

import java.lang.invoke.MethodHandles;
import java.net.URI;

import org.apache.commons.lang3.StringUtils;
import org.apache.jena.query.Dataset;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import won.bot.debugbot.enums.HintType;
import won.bot.debugbot.event.AtomCreatedEventForDebugConnect;
import won.bot.debugbot.event.AtomCreatedEventForDebugHint;
Expand All @@ -39,9 +43,6 @@
import won.protocol.util.WonRdfUtils;
import won.protocol.vocabulary.WONMATCH;

import java.lang.invoke.MethodHandles;
import java.net.URI;

/**
* Creates an atom with the specified sockets. If no socket is specified, the chatSocket will be used.
*/
Expand Down Expand Up @@ -114,7 +115,7 @@ protected void doRun(Event event, EventListener executingListener) throws Except
atomModelWrapper.addSocket(atomURI + "#socket" + i, socket.toString());
i++;
}
final Dataset debugAtomDataset = atomModelWrapper.copyDataset();
final Dataset debugAtomDataset = atomModelWrapper.copyDatasetWithoutSysinfo();
final Event origEvent = event;
logger.debug("creating atom on won node {} with content {} ", wonNodeUri,
StringUtils.abbreviate(RdfUtils.toString(debugAtomDataset), 150));
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ botContext.impl=memoryBotContext

keystores.password=changeit
keystores.directory=${WON_KEYSTORE_DIR}
owner.fixedPrivateKeyAlias=

# keystore properties
keystore.password=${keystores.password}
Expand Down

0 comments on commit 039ad29

Please sign in to comment.