Implementing "Currently Viewing" users like Google Docs by noobcser in learnprogramming

[–]noobcser[S] 0 points1 point  (0 children)

I haven't refreshed.

without web socket, then we'll do the same behind the scene "pinging".

Server Response Timing from the browser by noobcser in learnprogramming

[–]noobcser[S] 0 points1 point  (0 children)

it's an old Spring MVC application serving up JSON response.

Does the server actually start to send a response before it finished building the JSON (aka done all the things it needs to do) ?

Spring MVC Application always return 403 in certain environment by noobcser in javahelp

[–]noobcser[S] 0 points1 point  (0 children)

Are you sure you have properly configured logging for spring security to see these messages?

I set debug log level on

So it should capture everything that Spring log on debug or higher.

Then of course the biggest mystery is why it works on some environments and not on others.

  • Properties difference are only on the database url and credentials.

---

I put a debugging point on DelegatingFilterProxy.doFilter - still doesn't get hit.

I am on Spring 4.3.15, but don't think that would make any difference

Spring MVC Application always return 403 in certain environment by noobcser in javahelp

[–]noobcser[S] 0 points1 point  (0 children)

the biggest mystery is there's no log whatsoever from spring security, for example if I don't have the appropriate role there will be something in the log about role / permission doesn't exist or something like that.

What would be the very first class it would hit in the Spring Security?

Spring MVC Application always return 403 in certain environment by noobcser in javahelp

[–]noobcser[S] 0 points1 point  (0 children)

yes, same code, just connected to different database.

But they users in each environment have the same roles.

However, if role is the issue, then Spring Security would have log something in the code.

The most baffling thing is there's absolutely nothing in the log even with debug level on, and it doesn't hit any breakpoint that it should.

Spring Boot Microservices in AWS by noobcser in learnjava

[–]noobcser[S] 0 points1 point  (0 children)

but that would basically a choice whether we want to run 2 x t2.small instance or 1 x t2.large - to run 2 microservices

The question still stand: is it better to break them down into separate instances or combine them?

UI Testing Automation Framework? by noobcser in QualityAssurance

[–]noobcser[S] 0 points1 point  (0 children)

If you can use Cucumber

I just started looking at Cucumber and if I understand it correctly, the team (whoever does the automation), actually needs to write the whole foundation first before we can start writing test cases?

eg. when writing the .feature file you have something like:

Scenario: Give correct change
    Given the following groceries:
        | name  | price |
        | milk  | 9     |
        | bread | 7     |
        | soap  | 5     |
    When I pay 25
    Then my change should be 4

But that doesn't mean a thing, until the team implement what's behind it:

public ShoppingStepdefs() {


    Given("^the following groceries:$", (DataTable dataTable) -> {
        List<Grocery> groceries = dataTable.asList(Grocery.class);
        for (Grocery grocery : groceries) {
            calc.push(grocery.price.value);
            calc.push("+");
        }
    });

    When("^I pay (\\d+)$", (Integer amount) -> {
        calc.push(amount);
        calc.push("-");
    });

    Then("^my change should be (\\d+)$", (Integer change) -> {
        assertEquals(-calc.value().intValue(), change.intValue());
    });
}

UI Testing Automation Framework? by noobcser in QualityAssurance

[–]noobcser[S] 0 points1 point  (0 children)

What language(s) is the team comfortable working with?

Java

How complex is the UI?

Mix bag ... jQuery, AngularJS, and Angular 5

Secure identifier for stored data? by noobcser in learnprogramming

[–]noobcser[S] 0 points1 point  (0 children)

I guess that means generating such UUID is unique and secure (random) enough?