[Building Sakai] sakai-dev Digest, Vol 65, Issue 21

Wilson, Kimberly wilsonk at mail.amc.edu
Tue Jul 22 12:54:49 PDT 2014


For my issue #2 below, Adrian Fish helped me find the files I needed to look at:

/reference/library/src/webapp/skins/neo-default/portalchat.css  for chat specific styles

/portal/portal-charon/charon/src/webapp/scripts/chat.js (or /portal/scripts/chat.js) for dynamic code

/portal/portal-render-engine-impl/pack/src/webapp/vm/neoskin/includePageBody.vm

.. the dom elements are all in here, prefixed with pc_ (portalchat)

And then I remembered we had decided not to use the pc_connections_wrapper and I changed the display to none, but left in some of the other styling which still affected the neochat for some reason, but when I took it out the whitespace issue went away!

Kim Wilson, MSCIS | Systems Analyst - Sakai & IS Academic Systems | Albany Medical Center | 518-264-1055
-----Original Message-----
From: sakai-dev-bounces at collab.sakaiproject.org [mailto:sakai-dev-bounces at collab.sakaiproject.org] On Behalf Of sakai-dev-request at collab.sakaiproject.org
Sent: Tuesday, July 22, 2014 3:00 PM
To: sakai-dev at collab.sakaiproject.org
Subject: sakai-dev Digest, Vol 65, Issue 21

Send sakai-dev mailing list submissions to
	sakai-dev at collab.sakaiproject.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
or, via email, send a message with subject or body 'help' to
	sakai-dev-request at collab.sakaiproject.org

You can reach the person managing the list at
	sakai-dev-owner at collab.sakaiproject.org

When replying, please edit your Subject line so it is more specific than "Re: Contents of sakai-dev digest..."


Today's Topics:

   1. hibernate session lifetime (Charles Hedrick)
   2. neoChat white space above users with over 10 users	in site
      (Wilson, Kimberly)
   3. upgrade JSF to 1.2 or 2.o (Liu, Peter)
   4. Integration of SAKAI in a Struts 2 project (Mohamed Abdelfadel)
   5. Requesting for help about Gradebook2 tool loading	issue in
      IE8 (Chaitanya Cheekate)
   6. Re: upgrade JSF to 1.2 or 2.o (JUAN JOS? MERO?O S?NCHEZ)
   7. Re: Question: Getting the user from the current	session
      (Steve Swinsburg)
   8. Re: V10 source code? (Steve Swinsburg)
   9. Sitestats (statistics) duplication (Adrian Fish)
  10. Table for groups (Jeremy O'Connor)
  11. Re: Integration of SAKAI in a Struts 2 project (Steve Swinsburg)
  12. Re: Table for groups (Steve Swinsburg)
  13. Sakai 10 vast amounts of email generated moving content
      between sites (Roger Brown)
  14. archiving classes (Brett Parker)
  15. Re: V10 source code? (Gregory Guthrie)
  16. Re: Sakai 10 vast amounts of email generated moving content
      between sites (Matthew Jones)
  17. Sakai 2.9.3 - Forum tool Groups not preventing students in
      Groups from seeing other Group forums (Wilson, Kimberly)
  18. Displaying files in browser in Sakai 2.9.3? (BJ Peter DeLaCruz)
  19. Re: Displaying files in browser in Sakai 2.9.3? (Matthew Jones)


----------------------------------------------------------------------

Message: 1
Date: Mon, 21 Jul 2014 15:43:19 -0400
From: Charles Hedrick <hedrick at rutgers.edu>
Subject: [Building Sakai] hibernate session lifetime
To: sakai dev <sakai-dev at collab.sakaiproject.org>
Message-ID: <9AFB811A-BB85-4B3B-BC80-14494C8A2ABF at rutgers.edu>
Content-Type: text/plain; charset=us-ascii

When is a hibernate transaction / session closed, using the normal Sakai Spring and RSF setup?



------------------------------

Message: 2
Date: Mon, 21 Jul 2014 19:57:56 +0000
From: "Wilson, Kimberly" <wilsonk at mail.amc.edu>
Subject: [Building Sakai] neoChat white space above users with over 10
	users	in site
To: "sakai-dev at collab.sakaiproject.org"
	<sakai-dev at collab.sakaiproject.org>
Message-ID:
	<A6B19A294BD71C468CADA777F2FA94BABE9AA12D at wexcmbx01v.AMCNT.AMC.EDU>
Content-Type: text/plain; charset="us-ascii"

We have Sakai 2.9.3 and have noticed when a course site has more than 10 users, in the chat window, a large white space, about the same size as the number of users on the site, appears above the heading "In this site" and moving the list of users down when more than 10 users are on the site.

If users drop off the site, the white space remains unless the page is refreshed.

I can't figure out why this is occurring.  Has anyone encountered this or have an idea what I need to look at?

Thanks!

Kim Wilson, MSCIS | Systems Analyst - Sakai & IS Academic Systems | Albany Medical Center | 518-264-1055



-----------------------------------------
CONFIDENTIALITY NOTICE: This email and any attachments may contain confidential information that is protected by law and is for the sole use of the individuals or entities to which it is addressed. If you are not the intended recipient, please notify the sender by replying to this email and destroying all copies of the communication and attachments. Further use, disclosure, copying, distribution of, or reliance upon the contents of this email and attachments is strictly prohibited. To contact Albany Medical Center, or for a copy of our privacy practices, please visit us on the Internet at www.amc.edu.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20140721/ebe9d791/attachment-0001.html 

------------------------------

Message: 3
Date: Mon, 21 Jul 2014 20:04:48 +0000
From: "Liu, Peter" <peter.liu at yale.edu>
Subject: [Building Sakai] upgrade JSF to 1.2 or 2.o
To: "jjmerono at um.es" <jjmerono at um.es>
Cc: "sakai-dev at collab.sakaiproject.org"
	<sakai-dev at collab.sakaiproject.org>
Message-ID: <CFF2EA9D.10D16%peter.liu at yale.edu>
Content-Type: text/plain; charset="windows-1252"

Hi Juan,

I am trying to upgrade the Signup tool to JSF 1.2 version and have some issues.  From the https://jira.sakaiproject.org/browse/SAK-20086, you have done a lot works there.  Could you please help me out why I have got  following errors:

I am working on the Current Sakai Trunk 11 and have made following changes:
 a) modified the the JSF tool with <version>1.2_15</version> for JSF top pom.xml.
 b) modified the web.xml file for Signup tool with (

<web-app xmlns="http://java.sun.com/xml/ns/javaee"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://java.sun.com/xml/ns/javaee  http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd"

version="2.5?>

)


The jsp-api version has been changed to 2.1.


After the tomcat (tomcat 7) has started and navigate into the Signup tool main page, it gives the following errors:



Any idea about this? and it might be some wrong jar files issues.


Thanks a lot!

Peter


org.sakaiproject.portal.api.PortalHandlerException: org.sakaiproject.tool.api.ToolException: org.apache.jasper.JasperException: Unable to convert string "#{msgs.add_new_event}" to class "javax.el.ValueExpression" for attribute "value": Property Editor not registered with the PropertyEditorManager
    at org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCharonPortal.java:909)
caused by: org.sakaiproject.tool.api.ToolException: org.apache.jasper.JasperException: Unable to convert string "#{msgs.add_new_event}" to class "javax.el.ValueExpression" for attribute "value": Property Editor not registered with the PropertyEditorManager
    at org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1583)
caused by: org.apache.jasper.JasperException: Unable to convert string "#{msgs.add_new_event}" to class "javax.el.ValueExpression" for attribute "value": Property Editor not registered with the PropertyEditorManager
    at org.apache.jasper.runtime.JspRuntimeLibrary.getValueFromPropertyEditorManager(JspRuntimeLibrary.java:873)
    at org.apache.jsp.signup.signupMeetings_jsp._jspx_meth_sakai_005ftool_005fbar_005fitem_005f0(signupMeetings_jsp.java:450)
    at org.apache.jsp.signup.signupMeetings_jsp._jspx_meth_sakai_005ftool_005fbar_005f0(signupMeetings_jsp.java:410)
    at org.apache.jsp.signup.signupMeetings_jsp._jspx_meth_h_005fform_005f0(signupMeetings_jsp.java:368)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20140721/ba5025fa/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signup-lib-jar-WEB-INF.png
Type: image/png
Size: 159529 bytes
Desc: signup-lib-jar-WEB-INF.png
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20140721/ba5025fa/attachment-0001.png 

------------------------------

Message: 4
Date: Mon, 21 Jul 2014 23:33:53 +0100
From: Mohamed Abdelfadel <sc.med.abdelfadel at gmail.com>
Subject: [Building Sakai] Integration of SAKAI in a Struts 2 project
To: sakai-dev at collab.sakaiproject.org
Message-ID:
	<CADRMi9+SX7ZTXJN7oRa1_+70d2DGsrst+-J5h2obRGOAuYAqzw at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hello,
I'm a student, and I'm working on a project for Human resources management.
I'm workin with Struts 2 framework, and I should work also with an LMS, in the purpose to make tests to the employees. we are 3 persons in the team, and we have 2 months to make this project (ie: until  September).
is sakai a good choice to do that?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20140721/c9bffd9f/attachment-0001.html 

------------------------------

Message: 5
Date: Tue, 22 Jul 2014 10:19:46 +0530
From: Chaitanya Cheekate <chaitanya.cheekate at vidyayug.com>
Subject: [Building Sakai] Requesting for help about Gradebook2 tool
	loading	issue in IE8
To: sakai-dev at collab.sakaiproject.org
Message-ID:
	<CABMwxn+vGqz6ZYJ_G4i6amyxPE2Qu4bYz3VSPq--5adcxUQ73Q at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hello,

I am trying to fix the the issue: Gradebook2  tool is not loading in IE8(without compatibility view) when i set the property
sakai.X-UA-Compatible=IE=EmulateIE9

When I enable compatibility view this tool is loading properly even though I set the property sakai.X-UA-Compatible=IE=EmulateIE9

Also this tool is loading properly when I disable the property
sakai.X-UA-Compatible=IE=EmulateIE9

Sakai version : 2.9.3
Gradebook2 tool : 1.9.0

I would like to request for suggestions to fix this issue.


--
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20140722/02a6d7a8/attachment-0001.html 

------------------------------

Message: 6
Date: Tue, 22 Jul 2014 09:14:23 +0200
From: JUAN JOS? MERO?O S?NCHEZ <jjmerono at um.es>
Subject: Re: [Building Sakai] upgrade JSF to 1.2 or 2.o
To: "Liu, Peter" <peter.liu at yale.edu>
Cc: "sakai-dev at collab.sakaiproject.org"
	<sakai-dev at collab.sakaiproject.org>
Message-ID: <53CE0F4F.7010600 at um.es>
Content-Type: text/plain; charset="iso-8859-1"


Hi Peter,

     At first sight jstl-1.1.2.jar is in shared/lib (you should remove it from WEB-INF/lib), and also try to add el-ri.jar in your WEB-INF/lib and remove commons-el.jar.

         <dependency>
             <groupId>com.sun.el</groupId>
             <artifactId>el-ri</artifactId>
             <version>1.0</version>
         </dependency>

     We are using facelets with richfaces so our jsf 1.2 tools are slightly different, but I hope this can help.

Thanks !!

El 21/07/2014 22:04, Liu, Peter escribi?:
> Hi Juan,
>
> I am trying to upgrade the Signup tool to JSF 1.2 version and have 
> some issues.  From the https://jira.sakaiproject.org/browse/SAK-20086,
> you have done a lot works there.  Could you please help me out why I 
> have got  following errors:
>
> I am working on the Current Sakai Trunk 11 and have made following
> changes:
>  a) modified the the JSF tool with <version>1.2_15</version> for JSF 
> top pom.xml.
>  b) modified the web.xml file for Signup tool with (
>
> <web-appxmlns="http://java.sun.com/xml/ns/javaee"
>
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd"
>
> version="2.5">
>
> )
>
>
> The jsp-api version has been changed to 2.1.
>
>
> After the tomcat (tomcat 7) has started and navigate into the Signup 
> tool main page, it gives the following errors:
>
>
>
> Any idea about this? and it might be some wrong jar files issues.
>
>
> Thanks a lot!
>
> Peter
>
>
> org.sakaiproject.portal.api.PortalHandlerException: org.sakaiproject.tool.api.ToolException: org.apache.jasper.JasperException: Unable to convert string "#{msgs.add_new_event}" to class "javax.el.ValueExpression" for attribute "value": Property Editor not registered with the PropertyEditorManager
>      at 
> org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCh
> aronPortal.java:909) caused by: 
> org.sakaiproject.tool.api.ToolException: org.apache.jasper.JasperException: Unable to convert string "#{msgs.add_new_event}" to class "javax.el.ValueExpression" for attribute "value": Property Editor not registered with the PropertyEditorManager
>      at 
> org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(Skinn
> ableCharonPortal.java:1583) caused by: 
> org.apache.jasper.JasperException:Unable to convert string "#{msgs.add_new_event}" to class "javax.el.ValueExpression" for attribute "value": Property Editor not registered with the PropertyEditorManager
>      at org.apache.jasper.runtime.JspRuntimeLibrary.getValueFromPropertyEditorManager(JspRuntimeLibrary.java:873)
>      at org.apache.jsp.signup.signupMeetings_jsp._jspx_meth_sakai_005ftool_005fbar_005fitem_005f0(signupMeetings_jsp.java:450)
>      at org.apache.jsp.signup.signupMeetings_jsp._jspx_meth_sakai_005ftool_005fbar_005f0(signupMeetings_jsp.java:410)
>      at 
> org.apache.jsp.signup.signupMeetings_jsp._jspx_meth_h_005fform_005f0(s
> ignupMeetings_jsp.java:368)
>   
>
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20140722/27222234/attachment-0001.html 

------------------------------

Message: 7
Date: Tue, 22 Jul 2014 18:26:01 +1000
From: Steve Swinsburg <steve.swinsburg at gmail.com>
Subject: Re: [Building Sakai] Question: Getting the user from the
	current	session
To: Michael Mertins <mertins at zedat.fu-berlin.de>
Cc: sakai-dev <sakai-dev at collab.sakaiproject.org>
Message-ID:
	<CAPyxfbGZWwdKO0NHO+VdPRPedyRwSndGyndeAyZzxMfiz4tNmA at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

search for the sakai maven archetype and build an example project. Have a look at the dependency injection. Note I  your example you are already doing some dependency work via the component manager.

The developer helper service is pretty lightweight,  you want to use the actual api. The archetype may already do this for you.

You also want to look at the sakai programmer manual.

Cheers
Steve

sent from my mobile device
On 20/07/2014 9:28 AM, "Michael Mertins" <mertins at zedat.fu-berlin.de> wrote:

> Hi Sergio,
>
> for information on how to get the Service, please see the 
> documentation
> here:
> (you'll find the service you are looking for by scrolling down there)
>
>
> https://confluence.sakaiproject.org/display/SAKDEV/Entity+Provider+and
> +Broker+Usage
>
> I usually just inject the service in my webprojects. There are great 
> Maven archetypes for Wicket and Spring MVC made by Steve Swinsburg. 
> Highly recommended.
>
> Best enthusiastic wishes,
>
> Michael
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to
> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of 
> "unsubscribe"
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20140722/145ccc80/attachment-0001.html 

------------------------------

Message: 8
Date: Tue, 22 Jul 2014 18:32:43 +1000
From: Steve Swinsburg <steve.swinsburg at gmail.com>
Subject: Re: [Building Sakai] V10 source code?
To: Gregory Guthrie <guthrie at mum.edu>
Cc: sakai-dev <sakai-dev at collab.sakaiproject.org>
Message-ID:
	<CAPyxfbELns5-9-eEVtX4HXw_22V9isi0bp4eVj7_+weXTD33kg at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

That's not the top level of sakai 2.8 that is every top level folder and every sub level folder flattened into one list. You must have reorganized it and written a new pom otherwise it wouldn't build.

Msub is for other organisations to store sakai code, basically just a repo for local mods that people may want to share.

sent from my mobile device
On 21/07/2014 11:22 PM, "Gregory Guthrie" <guthrie at mum.edu> wrote:

> The 2.8 files:  (http://pastebin.com/jiquDX0A)
>    331 top level folders,
>    52340  files,  22790  folders,  5262355  lines,  406305897  bytes.
>
> The 2.10 files:
>    78 top level folders,
>    43984  files,  15490  folders,  5766885  lines,  454630509  bytes.
>
> Looks like comparable sizes, perhaps just reorganized? (Gosh - this is 
> a lot of code!)
>
> Is there some central index or listing (& descriptions) of various 
> tools and add-ons?
> I see lots of interesting things around (e.g. Duke, "toolkits" for 
> adding members), but how to install or add them, and what they do, etc.
> A "Sakai shopping mall"?!
>
> Looking at this: https://source.sakaiproject.org/svn/msub/
> I didn't see any documentation or descriptions.
> -------------------------------------------
> From: Steve Swinsburg [mailto:steve.swinsburg at gmail.com]
> Sent: Sunday, July 20, 2014 11:05 PM
> To: Gregory Guthrie
> Cc: Aaron Zeckoski; sakai-dev at collab.sakaiproject.org
> Subject: Re: [Building Sakai] V10 source code?
>
> Only core tools and services whip with a release. Gradually more are 
> added as they pass various criteria, some are removed if they are no 
> longer supported/used etc.
>
> If you want to run additional tools you need to go and check them out 
> individually and build as per their own instructions. If you had a 
> bunch of tools from 2.8 previously, then you'll need to migrate them 
> over for Sakai 10.
>
> However 331 top level items sounds like you are in the wrong place. I 
> can't think of 331 modules for Sakai. Would be good if you can give a 
> listing?
> cheers,
> Steve
>
> On Sun, Jul 20, 2014 at 11:32 PM, Gregory Guthrie <guthrie at mum.edu> wrote:
> From (
> https://confluence.sakaiproject.org/pages/viewpage.action?pageId=93028
> 745
> ):
>       svn co 
> https://source.sakaiproject.org/svn/sakai/tags/sakai-10.0/
> sakai-10.0
>
> Then I see that I have to go add things for evaluation, or other tools 
> before building - yes?
>    (https://source.sakaiproject.org/contrib/)
> This certainly makes sense in that these are optional, but this is a 
> pretty big collection of things, some developmental, some testing, etc.
> Is there any index of major (popular?) tools that are recommended to 
> install?
>
> For example, rubrics (irubric), do I need to get and install this to 
> use rubrics?
> I think that major vendors (rSmart, Unicon, Longsight, ...) have a 
> bunch of add-in tools on their "standard" distributions, is this a 
> good starting lace for someone to do their own local build?
>
> This is an svn of code only, is there a corresponding set of 
> documentation and descriptions?
>
> Thanks.
> -------------------------------------------
> > -----Original Message-----
> > From: Aaron Zeckoski [mailto:azeckoski at unicon.net]
> > Sent: Sunday, July 20, 2014 4:03 AM
> > Subject: Re: [Building Sakai] V10 source code?
> >
> > Sakai 10 should have come from here:
> > https://source.sakaiproject.org/svn/sakai/tags/sakai-10.0/
> >
> > or here:
> > https://source.sakaiproject.org/svn/sakai/branches/sakai-10.x
> >
> > The count of root items sounds about right to me. What URL did you
> checkout from?
> > -AZ
> >
> > On Sun, Jul 20, 2014 at 12:37 AM, Gregory Guthrie <guthrie at mum.edu>
> wrote:
> > > I did the standard ?svc co? of V10, and it downloaded a directory 
> > > structure with 77 items at the top level ? previous 2.8 version 
> > > had
> > > 331 items ? did I get the whole thing, and it is just structured
> differently?
> > >
> > > And does this include various add-ins, or do I have to fetch them
> separately?
> > >
> > > For example evaluation came with 2.8, but it looks like I have to
> fetch it separately?
> > >
> > > And all of the newer added webservices and various other features, 
> > > are these in the main branch?
> > >
> > > -------------------------------------------
> > >
> > --
> > Aaron Zeckoski - Software Architect - http://tinyurl.com/azprofile
> _______________________________________________
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20140722/c2751505/attachment-0001.html 

------------------------------

Message: 9
Date: Tue, 22 Jul 2014 10:39:33 +0100
From: Adrian Fish <adrian.r.fish at gmail.com>
Subject: [Building Sakai] Sitestats (statistics) duplication
To: sakai-dev <sakai-dev at collab.sakaiproject.org>
Message-ID:
	<CAM0rk3HRKS1OSAymAXxeKy3QxvpriLcMfSWh9=V8L96jZKEPtA at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Does anybody know why there is a special report action for Resources in SiteStats? It seems to me to be duplication as you appear able to build exactly the same report by specifying the resources tool and the events you want to log.

The two methods of creating resources reports lead to different data in the report definition and I'm wondering whether I'm missing something. Perhaps the Resources action does have some distinct behaviour?

Any insight most welcome :)

Cheers,
Adrian.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20140722/3a3fa41f/attachment-0001.html 

------------------------------

Message: 10
Date: Tue, 22 Jul 2014 11:42:47 +0200
From: "Jeremy O'Connor" <joconnor at uwc.ac.za>
Subject: [Building Sakai] Table for groups
To: "sakai-dev at sakaiproject.org" <sakai-dev at sakaiproject.org>
Message-ID: <53CE4E370200008B0001229A at uwc.ac.za>
Content-Type: text/plain; charset=US-ASCII

Hi

Which table is used for groups (groups within a site)?

--
Jeremy O'Connor



------------------------------

Message: 11
Date: Tue, 22 Jul 2014 20:54:55 +1000
From: Steve Swinsburg <steve.swinsburg at gmail.com>
Subject: Re: [Building Sakai] Integration of SAKAI in a Struts 2
	project
To: Mohamed Abdelfadel <sc.med.abdelfadel at gmail.com>
Cc: sakai-dev <sakai-dev at collab.sakaiproject.org>
Message-ID:
	<CAPyxfbFFYo1YdFOTbb3OVe9+gkO12CqP6WgiOEJ8ibPs1xUU8Q at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

The best thing to do is try it. Write a simple Web app,  then add in the Web.xml bits and tool registration and see if struts2 plays well. Thats all you need to turn a webapp into a sakai tool.We have apps written in many Java frameworks.

Regards
Steve

sent from my mobile device
On 22/07/2014 8:33 AM, "Mohamed Abdelfadel" <sc.med.abdelfadel at gmail.com>
wrote:

> Hello,
> I'm a student, and I'm working on a project for Human resources 
> management. I'm workin with Struts 2 framework, and I should work also 
> with an LMS, in the purpose to make tests to the employees. we are 3 
> persons in the team, and we have 2 months to make this project (ie: until  September).
> is sakai a good choice to do that?
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to
> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of 
> "unsubscribe"
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20140722/19263c7c/attachment-0001.html 

------------------------------

Message: 12
Date: Tue, 22 Jul 2014 21:01:48 +1000
From: Steve Swinsburg <steve.swinsburg at gmail.com>
Subject: Re: [Building Sakai] Table for groups
To: "Jeremy O'Connor" <joconnor at uwc.ac.za>
Cc: "sakai-dev at sakaiproject.org" <sakai-dev at sakaiproject.org>
Message-ID:
	<CAPyxfbHz_7+SjrBgcmKUs5W1fmYDhMNwLvWMdss9OvrRijQc2w at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi Jeremy,

sakai_site_group holds the group definition.
sakai_realm holds the realm key for that group (format is site/siteid/group/groupid).
sakai_realm_rl_gr holds the users in that realm and their role (therefore the users in the group)

As has been mentioned a lot on list lately, don't modify the tables directly. Queries are ok, but writes definitely not. Use the API.

cheers,
Steve




On Tue, Jul 22, 2014 at 7:42 PM, Jeremy O'Connor <joconnor at uwc.ac.za> wrote:

> Hi
>
> Which table is used for groups (groups within a site)?
>
> --
> Jeremy O'Connor
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to
> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of 
> "unsubscribe"
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20140722/6158aa49/attachment-0001.html 

------------------------------

Message: 13
Date: Tue, 22 Jul 2014 11:05:02 +0000
From: Roger Brown <roger.brown at uct.ac.za>
Subject: [Building Sakai] Sakai 10 vast amounts of email generated
	moving content between sites
To: "sakai-dev at collab.sakaiproject.org"
	<sakai-dev at collab.sakaiproject.org>
Message-ID:
	<CDE30AFCA7C54049B4513EBEB4231A078C1B67F9 at SRVWINEXC004.wf.uct.ac.za>
Content-Type: text/plain; charset="windows-1252"


Hi All

If you go to Resources and "Copy Content from My Other Sites" an email is generated to users in the maintain role for each item copied.

>From the catalina log for http://nightly2.sakaiproject.org:8081 copying resources from one site to another.



2014-07-22 06:49:22,225  INFO Thread-24 org.sakaiproject.email.impl.BasicEmailService - sendToUsers: users: [Sakai Administrator<> joe soap<joe at soap.com> ] headers: [MIME-Version: 1.0, Content-Type: multipart/alternative; boundary="======sakai-multi-part-boundary======", Subject: [ mercury site - New Resource ] twoColumn.xml, From: "10.x on HSQLDB"<no-reply at localhost>, To: "mercury site"<no-reply at localhost>] message:
This message is for MIME-compliant mail readers.

--======sakai-multi-part-boundary======
Content-Type: text/plain

A new resource has been added to the "mercury site" site at 10.x on HSQLDB (http://nightly2.sakaiproject.org:8081/portal)

Location: site "mercury site" > Resources  > system > twoColumn.xml

Description: twoColumn layout file


Resource: twoColumn.xml http://nightly2.sakaiproject.org:8081/access/content/group/mercury/system/twoColumn.xml

----------------------
This automatic notification message was sent by 10.x on HSQLDB (http://nightly2.sakaiproject.org:8081/portal) from the mercury site site.
You can modify how you receive notifications at My Workspace > Preferences.

--======sakai-multi-part-boundary======
Content-Type: text/html

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<html>  <head><title>[ mercury site - New Resource ] twoColumn.xml</title></head>  <body><p>A new resource has been added to the "mercury site" site at <a href="http://nightly2.sakaiproject.org:8081/portal">10.x on HSQLDB</a> </p><p>
Location: site "mercury site" > Resources  > system > <a href="http://nightly2.sakaiproject.org:8081/access/content/group/mercury/system/twoColumn.xml">twoColumn.xml</a>
</p><p>
Description: twoColumn layout file
</p><p>
<hr/><br/>
This automatic notification message was sent by 10.x on HSQLDB (<a href="http://nightly2.sakaiproject.org:8081/portal" >http://nightly2.sakaiproject.org:8081/portal</a>) from the mercury site site.<br/> You can modify how you receive notifications at My Workspace > Preferences.</p>  </body></html>

--======sakai-multi-part-boundary======--


2014-07-22 06:49:22,410  INFO Thread-25 org.sakaiproject.email.impl.BasicEmailService - sendToUsers: users: [Sakai Administrator<> joe soap<joe at soap.com> ] headers: [MIME-Version: 1.0, Content-Type: multipart/alternative; boundary="======sakai-multi-part-boundary======", Subject: [ mercury site - New Resource ] Simplehtml.jpg, From: "10.x on HSQLDB"<no-reply at localhost>, To: "mercury site"<no-reply at localhost>] message:
This message is for MIME-compliant mail readers.

--======sakai-multi-part-boundary======
Content-Type: text/plain

A new resource has been added to the "mercury site" site at 10.x on HSQLDB (http://nightly2.sakaiproject.org:8081/portal)

Location: site "mercury site" > Resources  > system > Simplehtml.jpg

Description: simpleRichText layout preview

etc
etc
etc


We are definitely seeing this in production deployment of sakai 10.

I think this must be a bug because I can't see a configuration item for automatically sending email on the addition of COPIED content. No email sent out on the upload of a new resource.

If it is configurable please let me know where the options is, else I'll open a JIRA.

Cheers

Roger









Roger Brown
Learning Technologies Operations Manager Centre for Innovation in Learning and Teaching (formerly CET and HAEDSU)
7.58 PD Hahn Building Upper Campus
University of Cape Town
Email/IM/XMPP roger.brown at uct.ac.za
Skype rjg.brown
Tel:+27(21) 650 4425
________________________________
UNIVERSITY OF CAPE TOWN

This e-mail is subject to the UCT ICT policies and e-mail disclaimer published on our website at http://www.uct.ac.za/about/policies/emaildisclaimer/ or obtainable from +27 21 650 9111. This e-mail is intended only for the person(s) to whom it is addressed. If the e-mail has reached you in error, please notify the author. If you are not the intended recipient of the e-mail you may not use, disclose, copy, redirect or print the content. If this e-mail is not related to the business of UCT it is sent by the sender in the sender's individual capacity.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20140722/6146fbbe/attachment-0001.html 

------------------------------

Message: 14
Date: Tue, 22 Jul 2014 07:16:52 -0500
From: "Brett Parker" <brparke1 at wsc.edu>
Subject: [Building Sakai] archiving classes
To: <sakai-dev at collab.sakaiproject.org>
Message-ID: <53CE0FE40200006500088A77 at hermes.wsc.edu>
Content-Type: text/plain; charset="us-ascii"

Greetings,
 
We have been using Sakai for many years and looking for a way to save/archive classes so we can look to reduce the size of the database.  We are currently running 2.9 maintenance branch.  I see with Administrator access there is a tool for this.  I would prefer to put this ability in the hands of our faculty so they can choose which of their classes they want to save.  Is there anything out there or anyone done anything to provide this functionality to the instructors?
 
Thanks.
 
Brett
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20140722/8957934f/attachment-0001.html 

------------------------------

Message: 15
Date: Tue, 22 Jul 2014 07:50:55 -0500
From: Gregory Guthrie <guthrie at mum.edu>
Subject: Re: [Building Sakai] V10 source code?
To: Steve Swinsburg <steve.swinsburg at gmail.com>
Cc: sakai-dev <sakai-dev at collab.sakaiproject.org>
Message-ID:
	<08EF9DA445C4B5439C4733E1F35705BA03CC4A4B2D99 at MAIL.cs.mum.edu>
Content-Type: text/plain; charset="utf-8"

Thanks ? while I am not now sure where I svn?ed it from, that?s all I did ? I didn?t do any re-organization or mods.
And I did not write any new pom.
?It?s a mystery?, but in the past so not of much importance or relevance.
-------------------------------------------

From: Steve Swinsburg [mailto:steve.swinsburg at gmail.com]
Sent: Tuesday, July 22, 2014 3:33 AM
To: Gregory Guthrie
Cc: Aaron Zeckoski; sakai-dev
Subject: RE: [Building Sakai] V10 source code?
That's not the top level of sakai 2.8 that is every top level folder and every sub level folder flattened into one list. You must have reorganized it and written a new pom otherwise it wouldn't build.
Msub is for other organisations to store sakai code, basically just a repo for local mods that people may want to share.
sent from my mobile device
On 21/07/2014 11:22 PM, "Gregory Guthrie" <guthrie at mum.edu> wrote:
The 2.8 files: ?(http://pastebin.com/jiquDX0A) ? ?331 top level folders, ? ?52340 ?files, ?22790 ?folders, ?5262355 ?lines, ?406305897 ?bytes.

The 2.10 files:
? ?78 top level folders,
? ?43984 ?files, ?15490 ?folders, ?5766885 ?lines, ?454630509 ?bytes.

Looks like comparable sizes, perhaps just reorganized? (Gosh - this is a lot of code!)

Is there some central index or listing (& descriptions) of various tools and add-ons?
I see lots of interesting things around (e.g. Duke, "toolkits" for adding members), but how to install or add them, and what they do, etc.
A "Sakai shopping mall"?!

Looking at this: https://source.sakaiproject.org/svn/msub/
I didn't see any documentation or descriptions.
-------------------------------------------


------------------------------

Message: 16
Date: Tue, 22 Jul 2014 09:17:48 -0400
From: Matthew Jones <matthew at longsight.com>
Subject: Re: [Building Sakai] Sakai 10 vast amounts of email generated
	moving content between sites
To: Roger Brown <roger.brown at uct.ac.za>
Cc: "sakai-dev at collab.sakaiproject.org"
	<sakai-dev at collab.sakaiproject.org>
Message-ID:
	<CACz7-HRycOXiWvamf5b-XCheXupg7X+vgBsGYwdOAuEgqbt2nQ at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Here looks like the ticket that describes what you're talking about

https://jira.sakaiproject.org/browse/SAK-26000
  - Sending when restoring (new feature for 10) was fixed in
https://jira.sakaiproject.org/browse/KNL-1160

But it looks like the rest of this ticket was a regression against one of the 10 qa's that was never fixed.
https://jira.sakaiproject.org/browse/SAK-25936


On Tue, Jul 22, 2014 at 7:05 AM, Roger Brown <roger.brown at uct.ac.za> wrote:

>
> Hi All
>
> If you go to Resources and "Copy Content from My Other Sites" an email 
> is generated to users in the maintain role for each item copied.
>
> >From the catalina log for http://nightly2.sakaiproject.org:8081 
> >copying
> resources from one site to another.
>
>
> 2014-07-22 06:49:22,225  INFO Thread-24 org.sakaiproject.email.impl.BasicEmailService - sendToUsers: users: [Sakai Administrator<> joe soap<joe at soap.com> ] headers: [MIME-Version: 1.0, Content-Type: multipart/alternative; boundary="======sakai-multi-part-boundary======", Subject: [ mercury site - New Resource ] twoColumn.xml, From: "10.x on HSQLDB"<no-reply at localhost>, To: "mercury site"<no-reply at localhost>] message:
> This message is for MIME-compliant mail readers.
>
> --======sakai-multi-part-boundary======
> Content-Type: text/plain
>
> A new resource has been added to the "mercury site" site at 10.x on 
> HSQLDB (http://nightly2.sakaiproject.org:8081/portal)
>
> Location: site "mercury site" > Resources  > system > twoColumn.xml
>
> Description: twoColumn layout file
>
>
> Resource: twoColumn.xml 
> http://nightly2.sakaiproject.org:8081/access/content/group/mercury/sys
> tem/twoColumn.xml
>
> ----------------------
> This automatic notification message was sent by 10.x on HSQLDB (http://nightly2.sakaiproject.org:8081/portal) from the mercury site site.
> You can modify how you receive notifications at My Workspace > Preferences.
>
> --======sakai-multi-part-boundary======
> Content-Type: text/html
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
>     "http://www.w3.org/TR/html4/loose.dtd">
> <html>  <head><title>[ mercury site - New Resource ] 
> twoColumn.xml</title></head>  <body><p>A new resource has been added 
> to the "mercury site" site at <a 
> href="http://nightly2.sakaiproject.org:8081/portal">10.x on HSQLDB</a> 
> </p><p>
> Location: site "mercury site" > Resources  > system > <a 
> href="http://nightly2.sakaiproject.org:8081/access/content/group/mercu
> ry/system/twoColumn.xml">twoColumn.xml</a>
> </p><p>
> Description: twoColumn layout file
> </p><p>
> <hr/><br/>
> This automatic notification message was sent by 10.x on HSQLDB (<a 
> href="http://nightly2.sakaiproject.org:8081/portal" 
> >http://nightly2.sakaiproject.org:8081/portal</a>) from the mercury 
> site site.<br/> You can modify how you receive notifications at My 
> Workspace > Preferences.</p>  </body></html>
>
> --======sakai-multi-part-boundary======--
>
>
> 2014-07-22 06:49:22,410  INFO Thread-25 org.sakaiproject.email.impl.BasicEmailService - sendToUsers: users: [Sakai Administrator<> joe soap<joe at soap.com> ] headers: [MIME-Version: 1.0, Content-Type: multipart/alternative; boundary="======sakai-multi-part-boundary======", Subject: [ mercury site - New Resource ] Simplehtml.jpg, From: "10.x on HSQLDB"<no-reply at localhost>, To: "mercury site"<no-reply at localhost>] message:
> This message is for MIME-compliant mail readers.
>
> --======sakai-multi-part-boundary======
> Content-Type: text/plain
>
> A new resource has been added to the "mercury site" site at 10.x on 
> HSQLDB (http://nightly2.sakaiproject.org:8081/portal)
>
> Location: site "mercury site" > Resources  > system > Simplehtml.jpg
>
> Description: simpleRichText layout preview
>
> etc
> etc
> etc
>
>
> We are definitely seeing this in production deployment of sakai 10.
>
> I think this must be a bug because I can't see a configuration item 
> for automatically sending email on the addition of COPIED content. No 
> email sent out on the upload of a new resource.
>
> If it is configurable please let me know where the options is, else 
> I'll open a JIRA.
>
> Cheers
>
> Roger
>
>
>
>
>
>
>
>
>
> Roger Brown
> Learning Technologies Operations Manager Centre for Innovation in 
> Learning and Teaching (formerly CET and HAEDSU)
> 7.58 PD Hahn Building Upper Campus
> University of Cape Town
> Email/IM/XMPP roger.brown at uct.ac.za
> Skype rjg.brown
> Tel:+27(21) 650 4425
>  ------------------------------
> UNIVERSITY OF CAPE TOWN
>
> This e-mail is subject to the UCT ICT policies and e-mail disclaimer 
> published on our website at 
> http://www.uct.ac.za/about/policies/emaildisclaimer/ or obtainable 
> from +27
> 21 650 9111. This e-mail is intended only for the person(s) to whom it 
> is addressed. If the e-mail has reached you in error, please notify 
> the author. If you are not the intended recipient of the e-mail you 
> may not use, disclose, copy, redirect or print the content. If this 
> e-mail is not related to the business of UCT it is sent by the sender 
> in the sender's individual capacity.
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to
> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of 
> "unsubscribe"
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20140722/15368089/attachment-0001.html 

------------------------------

Message: 17
Date: Tue, 22 Jul 2014 16:47:48 +0000
From: "Wilson, Kimberly" <wilsonk at mail.amc.edu>
Subject: [Building Sakai] Sakai 2.9.3 - Forum tool Groups not
	preventing students in Groups from seeing other Group forums
To: "sakai-dev at collab.sakaiproject.org"
	<sakai-dev at collab.sakaiproject.org>
Message-ID:
	<A6B19A294BD71C468CADA777F2FA94BABE9AA528 at wexcmbx01v.AMCNT.AMC.EDU>
Content-Type: text/plain; charset="us-ascii"

We have been getting several sakai errors related to forums in the past couple of weeks:

Instructors have created groups in the forum tool, added students to the groups, set permissions and added forums to the specific groups.
Students in the groups are still able to see the forums set to be viewed by other groups.

There are also problems with permission changes not being saved and creating errors.

Here's some snippets from the errors.  If anyone can help  or wants more details, please let me know, or if I should add more detail to an existing jira:

#1:

caused by: org.sakaiproject.tool.api.ToolException: javax.servlet.ServletException: #{ForumTool.processActionSaveTemplateOrganization}: javax.faces.el.EvaluationException: java.lang.NullPointerException

    at org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1487)

caused by: javax.servlet.ServletException: #{ForumTool.processActionSaveTemplateOrganization

DiscussionForumTool.processActionSaveTemplateOrganization(DiscussionForumTool.java:935


Tool Placement:

No Placement



Requested URL:https://sakai.amc.edu/portal/tool/9687e844-f23b-4f9a-9800-f1bee68e160c/discussionForum/area/dfTemplateOrganize



#2:

caused by: org.sakaiproject.tool.api.ToolException: javax.servlet.ServletException: #{ForumTool.processActionSaveTemplateOrganization}: javax.faces.el.EvaluationException: java.lang.NullPointerException at:

org.sakaiproject.component.app.messageforums.dao.hibernate.BaseForumImpl.getTopics(BaseForumImpl.java:112)

at
MessageForumsForumManagerImpl.saveDiscussionForum(MessageForumsForumManagerImpl.java:899)

Requested URL:https://sakai.amc.edu/portal/tool/9687e844-f23b-4f9a-9800-f1bee68e160c/discussionForum/area/dfTemplateOrganize



#3:

caused by: org.sakaiproject.tool.api.ToolException: javax.servlet.ServletException: #{ForumTool.processActionSaveTemplateOrganization}: javax.faces.el.EvaluationException: java.lang.NullPointerException

    at org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1487)
caused by: javax.servlet.ServletException: #{ForumTool.processActionSaveTemplateOrganization}: javax.faces.el.EvaluationException: java.lang.NullPointerException



Requested URL:https://sakai.amc.edu/portal/tool/9687e844-f23b-4f9a-9800-f1bee68e160c/discussionForum/area/dfTemplateOrganize



#4:

caused by: org.sakaiproject.tool.api.ToolException: javax.servlet.ServletException: Error testing property 'body' in bean of type null

    at org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1487)

caused by: javax.servlet.ServletException: Error testing property 'body' in bean of type null

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)

caused by: javax.faces.el.PropertyNotFoundException: Error testing property 'body' in bean of type null

    at com.sun.faces.el.PropertyResolverImpl.getType(PropertyResolverImpl.java:362)

Requested URL:https://sakai.amc.edu/portal/tool/b3930040-b72b-46cf-ab76-e90e3d7df172/dfMessageReply



#5:
HibernateOptimisticLockingFailureException: Object of class [org.sakaiproject.component.app.messageforums.dao.hibernate.DBMembershipItemImpl] with identifier [62042]: optimistic locking failed; nested exception is org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect):

Requested URL:https://sakai.amc.edu/portal/tool/9687e844-f23b-4f9a-9800-f1bee68e160c/discussionForum/area/dfTemplateSettings

I found this jira, but it's been Closed and Cannot reproduce:
Forum message delete failure due to HibernateOptimisticLockingFailureException
https://jira.sakaiproject.org/browse/SAK-25185

We already have the files indicated by Beth in the above Jira and are still getting that error.

Kim Wilson, MSCIS | Systems Analyst - Sakai & IS Academic Systems | Albany Medical Center | 518-264-1055



-----------------------------------------
CONFIDENTIALITY NOTICE: This email and any attachments may contain confidential information that is protected by law and is for the sole use of the individuals or entities to which it is addressed. If you are not the intended recipient, please notify the sender by replying to this email and destroying all copies of the communication and attachments. Further use, disclosure, copying, distribution of, or reliance upon the contents of this email and attachments is strictly prohibited. To contact Albany Medical Center, or for a copy of our privacy practices, please visit us on the Internet at www.amc.edu.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20140722/fd60b855/attachment-0001.html 

------------------------------

Message: 18
Date: Tue, 22 Jul 2014 08:41:30 -1000
From: BJ Peter DeLaCruz <bjpeter2008 at gmail.com>
Subject: [Building Sakai] Displaying files in browser in Sakai 2.9.3?
To: sakai-dev <sakai-dev at collab.sakaiproject.org>
Message-ID:
	<CALYM3FtYu7Vwgeh_9NTfjnTcGgZ-aBDwtw400C-Es4dsf2xuwA at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi,

When a user clicks on a PDF file that he or she uploaded to the Drop Box tool, the browser will download the file rather than display it inside the browser. I changed content.html.forcedownload to true and added the following types to sakai.properties, but the browser will still download the file:

# Force browser to download rather than render inline any file served from content hosting with a content-type of text/html.
# Default=true
content.html.forcedownload=false

#mime.types
content.mime.inline.count=22
content.mime.inline.1=video/quicktime
content.mime.inline.2=audio/mpeg
content.mime.inline.3=audio/basic
content.mime.inline.4=application/mathematica
content.mime.inline.5=application/xml
content.mime.inline.6=application/xsl
content.mime.inline.7=application/xsd
content.mime.inline.8=application/xhtml+xml
content.mime.inline.9=application/xslt+xml
content.mime.inline.10=application/xml-dtd
content.mime.inline.11=application/xml-external-parsed-entity
content.mime.inline.12=image/svg+xml
content.mime.inline.13=application/mathematica
content.mime.inline.14=text/xml-external-parsed-entity
content.mime.inline.15=audio/mp3
content.mime.inline.16=application/java-archive
content.mime.inline.17=audio/mp4
content.mime.inline.18=video/mp4
content.mime.inline.19=audio/ogg
content.mime.inline.20=video/ogg
content.mime.inline.21=image/jpeg
content.mime.inline.22=application/pdf

I also tried clicking on a JPG file, and I got the same results. The browser would download it instead of display it inside the browser. This behavior happens in Chrome, Firefox, and IE.

Thanks,
BJ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20140722/64df17c8/attachment-0001.html 

------------------------------

Message: 19
Date: Tue, 22 Jul 2014 14:53:12 -0400
From: Matthew Jones <matthew at longsight.com>
Subject: Re: [Building Sakai] Displaying files in browser in Sakai
	2.9.3?
To: BJ Peter DeLaCruz <bjpeter2008 at gmail.com>
Cc: sakai-dev <sakai-dev at collab.sakaiproject.org>
Message-ID:
	<CACz7-HT78X41hsxk7Kr0=quoXjiq+ibwLpcTTxJvVqsfSBA+Ww at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

My first guess would be that the mime type on the pdf file was wrong.

Check what it is in Actions->Edit Details. (File Type) It should be something with pdf. Some browsers incorrectly identify the file when uploading so it downloads wrong. This was fixed in 10 by always detecting the file type in KNL-101, but there's a few outstanding minor issues around that feature that are expected to be fixed on that by 10.1.


On Tue, Jul 22, 2014 at 2:41 PM, BJ Peter DeLaCruz <bjpeter2008 at gmail.com>
wrote:

> Hi,
>
> When a user clicks on a PDF file that he or she uploaded to the Drop 
> Box tool, the browser will download the file rather than display it 
> inside the browser. I changed content.html.forcedownload to true and 
> added the following types to sakai.properties, but the browser will 
> still download the file:
>
> # Force browser to download rather than render inline any file served 
> from content hosting with a content-type of text/html.
> # Default=true
> content.html.forcedownload=false
>
> #mime.types
> content.mime.inline.count=22
> content.mime.inline.1=video/quicktime
> content.mime.inline.2=audio/mpeg
> content.mime.inline.3=audio/basic
> content.mime.inline.4=application/mathematica
> content.mime.inline.5=application/xml
> content.mime.inline.6=application/xsl
> content.mime.inline.7=application/xsd
> content.mime.inline.8=application/xhtml+xml
> content.mime.inline.9=application/xslt+xml
> content.mime.inline.10=application/xml-dtd
> content.mime.inline.11=application/xml-external-parsed-entity
> content.mime.inline.12=image/svg+xml
> content.mime.inline.13=application/mathematica
> content.mime.inline.14=text/xml-external-parsed-entity
> content.mime.inline.15=audio/mp3
> content.mime.inline.16=application/java-archive
> content.mime.inline.17=audio/mp4
> content.mime.inline.18=video/mp4
> content.mime.inline.19=audio/ogg
> content.mime.inline.20=video/ogg
> content.mime.inline.21=image/jpeg
> content.mime.inline.22=application/pdf
>
> I also tried clicking on a JPG file, and I got the same results. The 
> browser would download it instead of display it inside the browser. 
> This behavior happens in Chrome, Firefox, and IE.
>
> Thanks,
> BJ
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to
> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of 
> "unsubscribe"
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20140722/891ec6ee/attachment-0001.html 

------------------------------

_______________________________________________
sakai-dev mailing list
sakai-dev at collab.sakaiproject.org
http://collab.sakaiproject.org/mailman/listinfo/sakai-dev


End of sakai-dev Digest, Vol 65, Issue 21
*****************************************


-----------------------------------------
CONFIDENTIALITY NOTICE: This email and any attachments may contain confidential information that is protected by law and is for the sole use of the individuals or entities to which it is addressed. If you are not the intended recipient, please notify the sender by replying to this email and destroying all copies of the communication and attachments. Further use, disclosure, copying, distribution of, or reliance upon the contents of this email and attachments is strictly prohibited. To contact Albany Medical Center, or for a copy of our privacy practices, please visit us on the Internet at www.amc.edu.


More information about the sakai-dev mailing list