[LON-CAPA-users] problems with mass-enrollment at the domain level

Raeburn, Stuart raeburn at msu.edu
Thu Oct 15 09:57:08 EDT 2020


Itay,

Sadly a regression was introduced in LON-CAPA 2.11.2 which prevents bulk user information changes being made by a Domain Coordinator, using file upload, in the case where no role changes are being made for the users.

A couple of choices:

(a) Switch your session to a LON-CAPA server running either the LON-CAPA 2.11.1 release or a server running the 2.11.3 release candidate, e.g., testdrive.loncapa.net.

So, after login to your home server you could use:
loncapa.jce.ac.il/adm/switchserver?otherserver=testdrivel1

or

(b) Patch the /home/httpd/lib/perl/Apache/lonuserutils.pm file (rev. 1.183) on your own LON-CAPA server (running 2.11.2) with a small change, then reload Apache.

The required modification is shown in this code change commit from the lon-capa-cvs mailing list:
http://mail.lon-capa.org/pipermail/lon-capa-cvs/Week-of-Mon-20190909/028778.html

There is a rev. 1.183.2.1 version of lonuserutils.pm in the LON-CAPA source code repository, which is the 1.183 version modified with that required change. 

To replace 1.183 with 1.183.2.1, a server administrator with command line access to loncapa.jce.ac.il would do the following:

All on one line:

wget -O /home/httpd/lib/perl/Apache/lonuserutils.pm 'http://source.loncapa.org/cgi-bin/cvsweb.cgi/~checkout~/loncom/interface/lonuserutils.pm?rev=1.183.2.1;content-type=text/plain'

then

service httpd reload

I am not entirely sure option (a) will work for the jce domain, because although you server is part of the LON-CAPA network it looks as though access to standard web ports (80 and 443) is blocked from outside your campus network.  (A side effect of that blocking is that instructors in other domains cannot currently use any content published with system-wide rights of use by authors in the jce domain).

Stuart Raeburn
LON-CAPA Academic Consortium
________________________________________
From: LON-CAPA-users <lon-capa-users-bounces at mail.lon-capa.org> on behalf of Itay <itayf at nospammail.net>
Sent: Thursday, October 15, 2020 5:56 AM
To: Discussion list for LON-CAPA users
Subject: [LON-CAPA-users] problems with mass-enrollment at the domain level

Hi

As a domain coordinator I am failing to use the mass-enrollment mechanism.
Failure means that new students were not enrolled to the system, while no error/warning was produced.

Here is a minimal mock input file; the description below applies also to the real list of students.

11106,FakeUser,FakeNameA,FakeStudentF
11107,FakeUser,FakeNameB,FakeStudentG
11108,FakeUser,FakeNameC,FakeStudentH
11109,FakeUser,FakeNameD,FakeStudentI

I did the following steps:

1. As domain coordinator...
2. Menu >> User Management >> Upload Users List
3. Upload input file
4. Judging by the preview Lon-capa identifies the structure correctly.
5. Associate the columns with the correct fields, including username.
6. Adjust other parameters:
    * Select Local authentication
    * Keep default domain (our jce.ac.il)
    * Confirm Starting Date = today
    * Check 'no ending date'
    * Keep selection 'No role changes'
    * Keep *un*checked: 'Force change of existing ID' and 'Update ID in user's course(s)'.
7. Click 'Update Users'

Results:

The system think for a few minutes and displays the following message:
Adding/Modifying Users
Please be patient -- checking for institutional data ... done
Processed 0 users.
No roles added

As mentioned before, no error message is displayed.

New users are still not enrolled as demonstrated by searching for them in the system.

I would appreciate any help to resolve that issue.

Thanks in Advance.
Itay




More information about the LON-CAPA-users mailing list