Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

calendar v8 2 1 x #47

Open
wants to merge 65 commits into
base: branch_9_5_x
Choose a base branch
from

Conversation

gallardo
Copy link

Make calendar v8 compile and upgrade calendar view to use fullcalendar v2.3.1.

aZahner and others added 30 commits June 18, 2014 16:29
… the same way adding it at the v8 version of the module. Only difference: reconstruction of the configuration file (in CmsCsvExportBean.java) is adjusted. Details: - Added CSV-Export configuration facility - Renamed CmsCvsExportBean to CmsCsvExportBean and adjusted calls - Refactored CmsCsvExportBean"

This reverts commit 9a18a24.
… webforms in the V8-version. Details: - Renaming of CmsCvsExportBean.java to CmsCsvExportBean.java and necessary adjustments in the calling JSPs. - new option for the configuration in the form.xsd - added handling for the new option to CmsForm.java - a lot of refactoring in CmsCsvExportBean.java - increased version number to 2.2.0"

This reverts commit 5726d9a.
Using gradle 2.1 the build script fails with the following message:

    [Fatal Error] SerialDateWidget.gwt.xml:2:10: DOCTYPE is disallowed when the feature "http://apache.org/xml/features/disallow-doctype-decl" set to true.

The build script uses the default XmlParser. This is 'a non-validating and non-namespace-aware XmlParser which does not allow DOCTYPE declarations in documents'. Correcting it to use a parser that does allow DOCTYPE declarations still tries to fetch an external DTD and fails with a:

    [Fatal Error] SerialDateWidget.gwt.xml:2:172: External DTD: Failed to read external DTD 'gwt-module.dtd', because 'http' access is not allowed due to restriction set by the accessExternalDTD property.


Setting the `load-external-dtd` feature to false fixes the failure.
...erroneously copied when creating patch
Groovy < 2.1.9 doesnt have the XmlParser(boolean,boolean,boolean) constructor. For these groovy versions, the default XmlParser() returns an appropriate parser that needs not be tuned.
opencms-core has extended interface I_CmsResourceCollector with a new
method signature. This commit is a workaround to allow compiling the
outdated alkacon-oamp sources.
With Java 8, the build fails with the message `Execution failed for task ':javadoc_com.alkacon.opencms.calendar'`. This patch ignores javadoc errors during the build for Java 8+.

Log follows (warnings skipped):
````
[...]/alkacon-oamp/com.alkacon.opencms.calendar/src/com/alkacon/opencms/calendar/CmsSerialDateSelectWidget.java:64: error: unknown tag: layout
 * <code><layout element="Change" widget="SerialDateSelectWidget" configuration="property:calendar.startdate|count:25" /></code>.<p>
         ^

[...]
:javadoc_com.alkacon.opencms.calendar
1 error
22 warnings
:javadoc_com.alkacon.opencms.calendar FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':javadoc_com.alkacon.opencms.calendar'.
````
With Java 8 the compilation breaks with an "incompatible types" error.

Error log follows:

````
alkacon-oamp/com.alkacon.opencms.v8.comments/src/com/alkacon/opencms/v8/comments/CmsCommentsAccess.java:1019: error: incompatible types: Object cannot be converted to Entry<String,String[]>
            for (Map.Entry<String, String[]> entry : CmsRequestUtil.createParameterMap(req.getParameterMap()).entrySet()) {
                                                                                                                      ^
Note: [...]/alkacon-oamp/com.alkacon.opencms.v8.comments/src/com/alkacon/opencms/v8/comments/CmsCommentsAccess.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
:compileComAlkaconOpencmsV8CommentsJava FAILED
````
Delete default group "Projectmanagers"
Delete default group "Projectmanagers"
Update and fix fullcalendar client code.
Use existing localization from fullcalendar.js + moment.js.
Comment out qtip code: doesn't work properly.
Following error is thrown during the gwt_ build:

Execution failed for task ':gwt_com.alkacon.opencms.v8.calendar'.
> Cannot convert the provided notation to a File or URI: true.
  The following types/formats are supported:
    - A String or CharSequence path, e.g 'src/main/java' or '/usr/include'
    - A String or CharSequence URI, e.g 'file:/usr/include'
    - A File instance.
    - A URI or URL instance.
@gallardo
Copy link
Author

I have tried to change as little as possible to avoid breaking existing code. There are still some quirks regarding the ADE editor for serial dates.

Please, be aware that I'm not an OpenCms expert and I could have broken some OpenCms patterns that I'm not aware of. Be cautious if importing these changes into production code.

@gallardo gallardo changed the title Branch 9 5 x v8 calendar 2 1 x calendar v8 2 1 x Apr 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants