Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jan 30 2019 16:19

    andyHa on 12.4.1

    (compare)

  • Jan 30 2019 16:19

    andyHa on master

    Delays the creation of a part i… Merge pull request #179 from sc… (compare)

  • Jan 30 2019 16:19
    andyHa closed #179
  • Jan 29 2019 13:17
    andyHa opened #179
  • Jan 29 2019 13:17

    andyHa on InstantiationFixx

    Delays the creation of a part i… (compare)

  • Jan 25 2019 15:56

    andyHa on 12.4

    (compare)

  • Jan 25 2019 15:48

    sabieber on KeepRunning

    (compare)

  • Jan 25 2019 15:48

    sabieber on master

    Adds a flag which lets all dock… Merge pull request #178 from sc… (compare)

  • Jan 25 2019 15:48
    sabieber closed #178
  • Jan 25 2019 15:34
    andyHa opened #178
  • Jan 25 2019 15:34

    andyHa on KeepRunning

    Adds a flag which lets all dock… (compare)

  • Jan 25 2019 13:42

    Tobsucht on FastBackgroundLoops

    (compare)

  • Jan 25 2019 13:42

    Tobsucht on master

    Reduces the default wait interv… Merge pull request #177 from sc… (compare)

  • Jan 25 2019 13:42
    Tobsucht closed #177
  • Jan 25 2019 13:18
    andyHa opened #177
  • Jan 25 2019 13:18

    andyHa on FastBackgroundLoops

    Reduces the default wait interv… (compare)

  • Jan 22 2019 08:30

    andyHa on rm

    (compare)

  • Jan 22 2019 08:30

    andyHa on 12.3

    (compare)

  • Jan 22 2019 08:06

    andyHa on master

    Performs refactroings suggested… Simplifies array handling. Simplifies a convoluted block o… and 4 more (compare)

  • Jan 22 2019 08:06
    andyHa closed #176
amazia gur
@amaziagur
hi, i added s3ninja to my project (java/spring/gradle base) and im trying to figure out how to run it from the code (for tests)
can you please direct me to an example
?
Andreas Haufler
@andyHa
You’d have to start the sirius framework
Andreas Haufler
@andyHa
something along the lines of Sirius.start(Setup.createAndStartEnvironment(Setup.class.getClassloader()))
tiwanpunit
@tiwanpunit
hi, is "parsii" thread safe?
Andreas Haufler
@andyHa
it should be
expression doesn’t do that much
but even the underlying scope uses a ConcurrentHashMap for looking up variables
therefore you should be fine
tiwanpunit
@tiwanpunit
thank you
Andreas Haufler
@andyHa
no worries
Sampathkumar
@sampathkumarpsk_twitter
Hi, Is it possible to compile before evaluation to get a list of variables? Its a dynamic expression I want to evaluate
Andreas Haufler
@andyHa
yep
create an empty Scope
use Parser.parse(expr, myScope)
an then myScope.getLocalNames() should yield all variables in the expression
Lokesh Chandra
@Lokeshima_twitter
Hi
I am trying to do integration testing using the s3ninja + eclipse on my windows, and I have downloaded the source code from here: https://github.com/scireum/s3ninja
I am trying to set up the project on Eclipse but it is showing errors in pom.xml file
Can anyone here help me
Andreas Haufler
@andyHa
what errors are reported?
Lokesh Chandra
@Lokeshima_twitter
image.png
@andyHa Please see this error
Andreas Haufler
@andyHa
hm
have you tried invoke maven in the console
Lokesh Chandra
@Lokeshima_twitter
yes
Andreas Haufler
@andyHa
it looks like eclipse doesn’t like our checkstyle config
you could probably just ignore it (2nd quickfix)
Lokesh Chandra
@Lokeshima_twitter
ok trying that will get back to you
Thanks
Lokesh Chandra
@Lokeshima_twitter
Hey @andyHa
Andreas Haufler
@andyHa
?
Lokesh Chandra
@Lokeshima_twitter
Can you please giude me how can I do testing using s3ninja?
As I already know that it needs to be installed on linux machine. So I have already done that, but what's next?
Andreas Haufler
@andyHa
well it depends on what you’re trying to achive
you can start it embedded in your tests
our keep it running on a machine and delete everything every once in a while
Lokesh Chandra
@Lokeshima_twitter
Well I am trying to test when writing on s3 if it fails due to any reason then my code should do automatic retry using the aws automatic retry option.
The code is already implemented but I am unable to test it. Can you please how can integrate it with my code?
Andreas Haufler
@andyHa
s3ninja cannot simulate failures currently
this would / could be achieved using a mocking framework
you could mock the aws libraries and thrown an artificial exception
and check of the expected recovery
Lokesh Chandra
@Lokeshima_twitter
ok can you give me the relevant link for the same
if you have it handy
Andreas Haufler
@andyHa
try googleing for „spock framework“ which is what we use in s3ninja and sirius-kernel and the like
or generally „mocking in unittests"
there are plenty of libraries to help you
Lokesh Chandra
@Lokeshima_twitter
ok sure and many thanks for helping me out
Andreas Haufler
@andyHa
no worries
draim
@draim
Hi!
To start with, I'd like to say that S3Ninja is a great project! After struggling a while I was able to connect from a C# .NET Core project to S3Ninja locally. However, when I try to PUT an object I get HTTP 403 back. Do you have any idea of why this happens? Error messsage goes like this:
"Amazon.S3.AmazonS3Exception: Error making request with Error Code Unauthorized and Http Status Code Unauthorized. No further error information was returned by the service." (followed by a pretty long AWS SDK + Microsoft Kestrel/IIS stack trace I guess you're not interested in)
I've browsed the source code for S3Ninja and I can't see that a HTTP 403 is returned anywhere in S3Controller.java.
The Access Log shows my request with the Result column specifying "REJECTED" and some time taken.
I did set the accesskey and secretkey specifically in the config file and this is reflected when browsing http://localhost:9444.
I'm also sure I use these matching credentials when connecting, also setting ForcePathStyle = true together with UseHttp = true in the config section for the client.
Any help appreciated!
Andreas Haufler
@andyHa
hi
2 possible things...
1) there are actually many AWS SDKs with different auth schemes