uportal-project / calendarportlet Goto Github PK
View Code? Open in Web Editor NEWJSR-168 portlet implementing calendar viewing in uPortal.
Home Page: https://wiki.jasig.org/display/PLT/Calendar+Portlet
License: Apache License 2.0
JSR-168 portlet implementing calendar viewing in uPortal.
Home Page: https://wiki.jasig.org/display/PLT/Calendar+Portlet
License: Apache License 2.0
The colors shown next to the time of an event do not match the color assigned to the calendar they are from.
jQuery 1.12 is a target version for uPortal 5.
Steps to reproduce:
Changing permissions on the calendar is not being reflected.
Everyone
.Clearing the cache does not appear to help.
GitHub integrated builds failing due to missing packages. Might be related to the jasig repo having been retired recently.
The version of Hibernate in CalendarPortlet did not have Oracle10gDialect.
CVEs for the current versions of Spring Core and HttpClient. Appears that some tests fail with a quick update of the Spring version number. Also, there are some comments in pom.xml about NOT upgrading HttpClient for a particular service.
To replicate, got to Calendar portlet, click on title to maximize and reveal "Calendar administration" link.
Try adding a calendar on this page, and no calendar is saved.
There's a mismatch between the form method and the (portlet) URL type.
Calendar Portlet has no caching and this fact impacts performance for high user counts.
Caches should be created for https://github.com/Jasig/CalendarPortlet/blob/455ea40513ded472d51980644cbe2c5b3ca5f725/src/main/java/org/jasig/portlet/calendar/dao/HibernateCalendarStore.java
Christian noted:
More broadly we probably want to migrate to the new maven package for httpclient
v3: https://mvnrepository.com/artifact/commons-httpclient/commons-httpclient (currently used)
v4: https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient
v5: https://mvnrepository.com/artifact/org.apache.httpcomponents.client5/httpclient5
In both our development version (v5.1.2) and the most recent "vanilla" version of uPortal and uPortal-start (v5.2.3), I can't add or edit calendars in the Calendar portlet (v2.6.0).
Steps to reproduce after deploying locally with uPortal-start:
No new calendar.
Does this happen for you? Could you see if others report the same behavior? It's easy to check if you have uPortal 5 running.
After much debugging I think I know what the problem is but I don't know how to resolve it.
On the "Edit calendar" page (editCalendarUrl.jsp), after entering a Calendar name and Calendar URL, when I click the "Save calendar" button, it's supposed to redirect to Action "editUrl" but it's not getting there because the request looks like this:
The _csrf parameter is encoding the ampersand as "&" instead of an "&" before the next parameter, "pP_action=editUrl" so in the browser (Chrome), the Query String Parameters list ends up looking like:
_csrf: 403fcb62-9a79-4a32-8874-3a09a1af64f0
amp;pP_action: editUrll
It looks like the "&" isn't getting decoded back to "&" so the second query parameter ends up being "&pP_action" which is likely not being recognized by Spring Portlet or uPortal or whatever processes "pP_action" as an action request.
I've put debug statements in EditUserHttpICalController on the showHttpCalendarForm and updateHttpCalendar methods and it never gets to the updateHttpCalendar method, suggesting that uPortal or the CalendarPortlet isn't decoding the "&" properly. I noticed that this is using Spring Web MVC 3.1.3.RELEASE which is pretty old.
I tried it with uPortal 5.2.3 and CalendarPortlet 2.6.0 using uPortal-start (./gradlew portalInit, ./gradlew tomcatDeploy, ./gradlew tomcatStart) as both admin and staff. Click on Calendar name in portlet header to expand to full screen and display Preferences (and Administration for admin user).
Latest fixes have highlighted an issue with session caching in Admin UI.
Example 1:
Example 2:
Flushing the EhCache does not correct this caching issue. This led me to believe it is in the Hibernate Session (as opposed to Http session). Transactions may not be set up correctly. Some experimentation with flushing and clearing the template in HibernateCalendarStore did not seem to help. Might be that the action request that does the updates but the call to get the calendar feeds is in the redirect. Also worth noting is that adding a new feed seems to manifest differently than deleting a feed!
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These problems occurred while renovating this repository. View logs.
These updates are currently rate-limited. Click on a checkbox below to force their creation now.
org.slf4j:jcl-over-slf4j
, org.slf4j:log4j-over-slf4j
, org.slf4j:jul-to-slf4j
, org.slf4j:slf4j-api
)org.jvnet.jaxb2_commons:jaxb2-basics
, org.jvnet.jaxb2_commons:jaxb2-basics-runtime
)org.jasig.resourceserver:resource-server-plugin
, org.jasig.resourceserver:resource-server-utils
, org.jasig.resourceserver:resource-server-content
)org.jvnet.jaxb2_commons:jaxb2-basics
, org.jvnet.jaxb2_commons:jaxb2-basics-runtime
)org.springframework:spring-test
, org.springframework:spring-orm
, org.springframework:spring-jdbc
, org.springframework:spring-aop
, org.springframework:spring-context-support
, org.springframework:spring-core
)org.springframework.ws:spring-ws-security
, org.springframework.ws:spring-ws-core
)Warning
Renovate failed to look up the following dependencies: Failed to look up maven package org.osaf:caldav4j
, Failed to look up maven package slide:jakarta-slide-webdavlib
.
Files affected: pom.xml
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
org.springframework.ws:spring-ws-security
, org.springframework.ws:spring-ws-core
).github/workflows/CI.yml
actions/checkout v3
actions/setup-java v3
pom.xml
org.jasig.parent:jasig-parent 41
com.googlecode.cernunnos:cernunnos 1.4.0
javax.script:groovy-engine 1.1
com.ibm.icu:icu4j 72.1
com.thoughtworks.xstream:xstream 1.4.20
commons-codec:commons-codec 1.15
commons-collections:commons-collections 3.2.2
org.apache.httpcomponents:httpclient 4.5.14
commons-httpclient:commons-httpclient 3.1
commons-io:commons-io 2.11.0
commons-lang:commons-lang 2.6
org.mnode.ical4j:ical4j 1.0.9
javax.servlet:jstl 1.2
javax.annotation:jsr250-api 1.0
javax.portlet:portlet-api 2.0
javax.servlet:javax.servlet-api 3.0.1
jcifs:jcifs 1.3.17
joda-time:joda-time 2.12.2
junit:junit 4.13.2
net.sourceforge.nekohtml:nekohtml 1.9.22
org.jasig.portal:uPortal-spring 5.13.1
org.jasig.portlet.courses:courses-portlet-dao 1.0.0-M3
org.jasig.portlet.utils:portlet-form-resources 1.0.0-M1
org.jasig.resourceserver:resource-server-content 1.3.1
org.jasig.resourceserver:resource-server-utils 1.3.1
org.jasig.portal:uportal-search-api 4.3.1
org.jasypt:jasypt-spring31 1.9.3
org.hibernate:hibernate-core 3.6.10.Final
org.hibernate:hibernate-tools 3.6.0.Final
com.fasterxml.jackson.core:jackson-core 2.14.2
com.fasterxml.jackson.core:jackson-databind 2.13.4.2
org.jasig.cas.client:cas-client-core 3.6.2
org.jvnet.jaxb2_commons:jaxb2-basics-runtime 0.6.0
org.mockito:mockito-core 1.10.19
org.osaf:caldav4j 0.7
org.owasp:antisamy 1.4
org.springframework:spring-core 4.3.30.RELEASE
org.springframework:spring-context 4.3.30.RELEASE
org.springframework:spring-context-support 4.3.30.RELEASE
org.springframework:spring-beans 4.3.30.RELEASE
org.springframework:spring-aop 4.3.30.RELEASE
org.springframework:spring-jdbc 4.3.30.RELEASE
org.springframework:spring-orm 4.3.30.RELEASE
org.springframework:spring-test 4.3.30.RELEASE
org.springframework:spring-web 4.3.30.RELEASE
org.springframework:spring-webmvc-portlet 4.3.30.RELEASE
org.springframework.ws:spring-ws-core 2.4.6.RELEASE
org.springframework.ws:spring-ws-security 2.4.6.RELEASE
rome:rome 1.0
slide:jakarta-slide-webdavlib 2.2pre1-httpclient-3.0
taglibs:standard 1.1.2
xalan:serializer 2.7.2
xerces:xercesImpl 2.12.2
org.slf4j:slf4j-api 2.0.6
org.slf4j:jul-to-slf4j 2.0.6
org.slf4j:log4j-over-slf4j 2.0.6
org.slf4j:jcl-over-slf4j 2.0.6
ch.qos.logback:logback-classic 1.3.5
org.hsqldb:hsqldb 2.3.2
javax.xml.bind:jaxb-api 2.3.1
jakarta.xml.ws:jakarta.xml.ws-api 2.3.3
com.sun.xml.ws:jaxws-rt 2.3.3
org.apache.portals.pluto:pluto-taglib 2.1.0-M3
org.apache.maven.plugins:maven-release-plugin 3.0.0-M7
org.apache.maven.scm:maven-scm-api 2.0.0-M3
org.apache.maven.scm:maven-scm-provider-gitexe 2.0.0-M3
org.apache.maven.plugins:maven-surefire-plugin 2.22.2
org.jasig.resourceserver:resource-server-plugin 1.3.1
com.sun.xml.bind:jaxb-impl 2.3.3
org.jvnet.jaxb2.maven2:maven-jaxb2-plugin 0.14.0
org.jvnet.jaxb2_commons:jaxb2-basics 0.6.0
org.jasig.portal.maven:uportal-maven-plugin 1.0.1
javax.servlet:javax.servlet-api 3.0.1
javax.portlet:portlet-api 2.0
rhino:js 1.7R2
org.codehaus.mojo:surefire-report-maven-plugin 2.0-beta-1
org.codehaus.mojo:cobertura-maven-plugin 2.7
org.codehaus.mojo:findbugs-maven-plugin 3.0.5
org.lesscss:lesscss-maven-plugin 1.3.3
org.apache.maven.plugins:maven-javadoc-plugin 3.4.1
org.apache.maven.plugins:maven-checkstyle-plugin 3.2.0
if you have a dead link if the other server never responds it does not time out, it will just endlessly retry the link. also many of the calendars out there are using ical format with the webcal:// protocal. and the calendar portlet does not recognize them.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.