Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
LDEV-4440 Add a test library which does not reference Struts

After full LAMS migration to Spring MVC it will become

3rdParty.userlibraries

  1. … 66 more files in changeset.
Merge remote-tracking branch 'origin/master' into lams31

Conflicts:

lams_build/lib/lams/lams.jar

lams_central/src/java/org/lamsfoundation/lams/authoring/ObjectExtractor.java

lams_central/src/java/org/lamsfoundation/lams/authoring/service/AuthoringService.java

lams_gradebook/src/java/org/lamsfoundation/lams/gradebook/web/action/GradebookMonitoringAction.java

  1. … 5 more files in changeset.
LDEV-4293 Tune session log out

Make sure mapping login->session is cleared in certain situations.

Check if a session already exists for the given login. If so, invalidate

one of the sessions.

  1. … 2 more files in changeset.
LDEV-4293 Rewrite session invalidation mechanism

Server-side non-current session invalidation does not work well on

clustered WildFly 10. It breaks Infinispan distributed session cache and

makes a logged out user clear LAMS cookies, otherwise he/she gets a

blank screen. See WFLY-7281 and WFLY-7229.

So instead of invalidating a session we mark it for invalidation. The

next time the user tries to use it, the session gets invalidated and the

user gets an error screen (not a very clean solution, but more effective

than another filter which would nicely redirect the user to logout

screen).

This solution seems to work nicely if both browsers interact with the

same node. Since we use distributed session for failover rather than

replication, it should be OK.

    • -17
    • +6
    ./org/lamsfoundation/lams/web/SessionListener.java
  1. … 3 more files in changeset.
LDEV-4415 Lesson marks always recalculated after Live Edit

Also tries to respect any teacher modified lesson marks when

activity marks are changed by doing a 'take the old marks off

and add the new mark on' calculation for weighting.

  1. … 1 more file in changeset.
LDEV-4423 Additional portrait entries

  1. … 10 more files in changeset.
LDEV-4415 Gradebook calculations and UI support weighting

  1. … 13 more files in changeset.
LDEV-4415 Allow removing weights from saved LD

  1. … 1 more file in changeset.
LDEV-4427 System Admin can delete profile pictures

  1. … 5 more files in changeset.
LDEV-4419 Add widget for cropping portrait photos

Added widget that allows cropping the image to a standardised size for

webcam and image uploads (in order to make it squarish).

  1. … 2 more files in changeset.
LDEV-4293 Skip isSysAdmin check when there is no session

The code that checks if user is sysadmin depends on HTTP session being

present in SessionManager. It is normally present as the authentication

request goes through SsoHandler which initiates the session. It is not

the case, though, when session gets replicated and UniversalLoginModule

is accessed directly.

The fix skips the check in no session is present, which means that

sysadmin will need to authenticate same as regular user, which is OK for

this edge situation. Session failover still works.

LDEV-4415 Add front end for weighted outputs

  1. … 14 more files in changeset.
LDEV-4417 Popover portraits in Monitoring

Implemented in Assessment, Chat, Daco, Forum and Submit.

    • -30
    • +67
    ./org/lamsfoundation/lams/web/tag/PortraitTag.java
  1. … 73 more files in changeset.
LDEV-4417 Popover portraits in Monitoring

Implemented in Assessment, Chat, Daco, Forum and Submit.

    • -30
    • +67
    ./org/lamsfoundation/lams/web/tag/PortraitTag.java
  1. … 74 more files in changeset.
LDEV-4415 Add tool output weight. Rewrite activity evaluations.

Activity evaluations have been implemented as a list, even though always

only the first element is meaningful. They were rewritten as one-to-one

association with Activity. The primary key is activity ID now instead of

DB generated UID.

Weight column was added.

Server version was bumped so a filter can pick up activityEvaluations ->

evaluation field rename when importing older LDs.

A convention without date was used for server version as it seems good

enough.

Unnecessary versions of clients were removed from configuration table as

they server the abandoned Flash authoring.

  1. … 16 more files in changeset.
Merge remote-tracking branch 'origin/master' into lams31

Multiple conflicts resolved with JSON replace and class move to

packages.

    • -1
    • +1
    ./org/lamsfoundation/lams/web/HomeAction.java
    • -0
    • +4
    ./org/lamsfoundation/lams/web/IndexAction.java
  1. … 27 more files in changeset.
LDEV-4374 Hide search widget if there is less than 10 courses

If the number of active courses that user has access to is less

than 10 - we don't display search widget.

    • -0
    • +4
    ./org/lamsfoundation/lams/web/IndexAction.java
  1. … 1 more file in changeset.
LDEV-4407 Move lams_contentrepository exceptions to the proper package

lams_contentrepository's exception classes were moved to

contentrepository.exception package.

(To access exceptions' earlier history use Eclipse's Show in History

feature or run 'git log --follow ./path/to/file')

    • -1
    • +1
    ./org/lamsfoundation/lams/web/HomeAction.java
  1. … 60 more files in changeset.
LDEV-4402 Substitute Gson and Apache JSON with Jackson

Jackson is a top JSON library shipped with WF10.

Apache JSON resides in an ancient library which we do not need for

anything else.

We use GSon only for serializing Java objects to JSON, which Jackson can

do too.

    • -20
    • +13
    ./org/lamsfoundation/lams/rest/RestServlet.java
    • -18
    • +13
    ./org/lamsfoundation/lams/web/HomeAction.java
    • -29
    • +32
    ./org/lamsfoundation/lams/web/IndexAction.java
  1. … 121 more files in changeset.
LDEV-4402 Remove Lucene library

It has only been used for Pedagogical Planner filter feature, which is

not used by clients anyway

  1. … 8 more files in changeset.
LDEV-4402 Remove obsolete XPP3 and XMLPull libraries

The libraries have been used by earlier versions of XStream. They are

not needed for latest XStream and Java 6+.

Deserialized classes must implement a no-arg constructor.

  1. … 12 more files in changeset.
LDEV-4398 Enlarge the smallest portrait size to 35px

Also accommodate for this change on main and profile pages.

  1. … 3 more files in changeset.
LDEV-4398 Use imgscalr library for image resizing

Besides, switch to using only PNG files in order to prevent image

quality loosing.

  1. … 1 more file in changeset.
LDEV-4395 Clean up comments and debugging

  1. … 1 more file in changeset.
LDEV-4395 Portrait tag and javascript to display portraits

A new tag and javascript file shows the user portraits in one of 4 sizes

and either square or round. If no portrait exists a generic coloured

user icon is used. Portraits shown in Forum and Noticeboard Comments.

    • -0
    • +199
    ./org/lamsfoundation/lams/web/tag/PortraitTag.java
  1. … 53 more files in changeset.
LDEV-4380 Replace portrait capturing Flash widget with WebRTC

In order to completely eradicate Flash, we can use WebRTC which seems to

be working OK in newer browsers.

  1. … 7 more files in changeset.
LDEV-4377 - Show timezones to select order alphabetically

    • -288
    • +292
    ./org/lamsfoundation/lams/web/ProfileAction.java
  1. … 1 more file in changeset.
LDEV-4367 Skins can be created

The SASS files are now configured to allow a new variable file to be

set up with different colours and for users to be able to switch

between skins.

    • -10
    • +37
    ./org/lamsfoundation/lams/web/tag/CssTag.java
  1. … 156 more files in changeset.
LDEV-4382 Allow NULL group UIID in Live Edit

Having NULL group UIID seems like a common situation. There is even an

old comment explaining why is that. Object extractor should be ready for

such situation.

    • -1691
    • +1691
    ./org/lamsfoundation/lams/authoring/ObjectExtractor.java
LDEV-4195 Fix class cast exception

Input for assigning course groups to lesson groups can be either

grouping or branching. We need to detect both situations, otherwise we

get class cast exceptions.

Also adjust layout.

  1. … 2 more files in changeset.