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

Georchestra gn 4.2.7 build #265

Closed
wants to merge 940 commits into from

Conversation

f-necas
Copy link
Collaborator

@f-necas f-necas commented Nov 27, 2023

No description provided.

josegar74 and others added 30 commits May 23, 2023 09:53
Co-authored-by: archaeogeek <jo.k.cook@gmail.com>
Instead of having display above facets true/false options, user can now set the map placement with:
* results
* facets
* or not displayed.
Follow geonetwork/core-geonetwork#7007

The target/geonetwork folder contains the font awesome update but not the WAR due to packagingExcludes.
Currently HTML head description is set to an empty value. Google is
indexing the cookie warning in GeoNetwork case when no HTML head is found (probably because it is the first HTML text content found).

Use the service metadata configured for the main node (see admin >
settings > record to use for GetCapabilities) and same for portal.

If no service metadata record configured, default title and description
to node name (or site name for the main portal).

Follow up of:
* geonetwork/core-geonetwork@611be2a
* geonetwork/core-geonetwork#4758
…d (#7094)

* Display footer rss endpoint(s) when OGC API Records service is enabled

* Update rss endpoint in page head section

* Update rss opensearch endpoint in page head section

---------

Co-authored-by: François Prunayre <fx.prunayre@gmail.com>
Follow up of geonetwork/core-geonetwork#6954

Change `hibernate.hbm2ddl.auto` to `update` that was the value previously set when using `generateDdl=true` in Spring JPA.
* Workflow / Clarity each steps in the workflow and simplify extension

Define a configuration to define on a per profile basis which workflow
steps can be followed by other steps.

This makes easier to read the workflow menu setup and allows to extend
it more easily when adding new workflow steps.

* (core) Prevent approval of invalid records from editor if settings

* Workflow / Report status change type

Can be
* UPDATED
* UNCHANGED
* DELETED

Add placeholder method to apply side effect or check if user can
actually trigger the requested status change.

Co-authored-by: CMath04 <chaussier.mathieu@gmail.com>

* Refactored deletion/backup procedure, introduced purge instead

* Workflow / API / Return if status was modified or not. This can be useful client side to trigger action when the workflow did nothing or removed a record.

* Workflow / More precise error reporting so that user knows what to do exactly.

* Formatting.

* Formatting.

* Workflow / Avoid double validation on terminating editing session. Reindex record if status change

* Javadoc.

---------

Co-authored-by: CMath04 <chaussier.mathieu@gmail.com>
Co-authored-by: Joachim Nielandt <joachim.nielandt@vlaanderen.be>
…e to DRAFT when doing a rejection, not when creating a working copy
Follow-up of geonetwork/core-geonetwork#7094.

The targetUri property can be configured using multiple methods, not only as init parameter
in web.xml servlet's config but also as environment variable, system property or config.properties
entry. This change saves the targetUri value in a ServletContext attribute so it can be retrieved
from other servlets to check its value. Changed the value of <load-on-startup> servlet property
to init the attribute on server start.
Fix Sonarcloud warnings.
Follow up of geonetwork/core-geonetwork#5006

Test.
* enable workflow
* create a record
* publish (and approve)
* edit will create a draft
* cancel
* open record view
http://localhost:8080/srv/eng/catalog.search#/metadata/5692d7a3-949e-4f27-8fe0-0fa9efd3584e
* open draft view (even if not displayed in record view)
http://localhost:8080/srv/eng/catalog.search#/metadraf/5692d7a3-949e-4f27-8fe0-0fa9efd3584e
show a records which does not exist in db anymore (due to cancel) but was not properly removed from index.

Also note that if you save the new draft, the cancel will not remove it (looks to be expected in 5006).
…iguration of the online resources. Fixes #7103
…r information.

This allows to display a sort by a field in ascending and descending order, for example the metadata title
* Fix selection / filter Only my records

* Fix selection / filter Only my records: use setting to enable Only my records in the editor application, not in the search application
…h the case where no port is set in the settings manager
… that we can see the real error in the logs. (#7119)
* Allow multiple request matchers to decide if require CSRF token
* Fix a problem with the Keycloak configuration that was making the server
to require CSRF tokens for GN URLs that shouldn't be protected by CSRF.
To do this, now the GeonetworkCsrfSecurityRequestMatcher allows to be configured
with additional RequestMatchers, for example the KeycloakCsrfRequestMatcher.
If Keycloak security is enabled, then the KeycloakCsrfRequestMatcher is added to the
original GeoNetwork patterns listed in `config-security-core.xml`
The link for 'Installing from source code' is broken.  The label of Maintainer Guide is also incorrect and should be Installation Guide.
…ustom status (#7104)

* Core cleanup translation.

* Workflow / Remove magic numbers in label and avoid issue when using
custom status.

The status workflow index field contains 2 numbers concatenated - status of the record + status of the draft.
If using custom status, the concatenation of the number can match other status number eg. 111 can be 1+11 or 11+1 so we can't always get a label from that value.
Use status name instead of ids and rely on db translation as much as
possible (there is still room for improvements when custom status are
used).

Co-authored-by: Joachim Nielandt <joachim.nielandt@vlaanderen.be>

* Workflow / Add configuration for the list of status for which to start a
draft.

Co-authored-by: Joachim Nielandt <joachim.nielandt@vlaanderen.be>

* Workflow / Better build label.

Co-authored-by: Joachim Nielandt <joachim.nielandt@vlaanderen.be>

* Workflow / Record view / Use db translations.

* Workflow / Label improvement.

---------

Co-authored-by: Joachim Nielandt <joachim.nielandt@vlaanderen.be>
SuperOctocat and others added 28 commits October 16, 2023 13:49
* Fixed typos, formatting and numbering

* Fixed broken links in the Examples

* Renamed Readme.md to README.md
….2.x) (#7409)

* Update the links to documentation to https://docs.geonetwork-opensource.org/ in the sofware development pages

* Update software_development/README.md

Co-authored-by: Jody Garnett <jody.garnett@gmail.com>

---------

Co-authored-by: Jody Garnett <jody.garnett@gmail.com>
…e (#7440)

Ignore empty codelist value (but it is better to not leave empty
codelist value in encoded records).
request.getContextPath() for servlets in the root context, returns an empty string instead of /.
The browser doesn't receive the path, uses the request path for the cookie
* List styling for related records

Add a list styling to related records when the `data-layout="title"`

* No list styling when the related list is contained in the top of the page
* change label to "Access to the catalogue"

* french translation for iso19139
If button label is not empty, do not add unneeded space. This was more visible on mandatory elements.
* Batch edit access level for editor role

* comment description fix

* refactor user profile configuration level check to util class

* Move to UserUtil for profile configuration level check

* Update core/src/main/java/org/fao/geonet/util/UserUtil.java

Co-authored-by: Jose García <josegar74@gmail.com>

---------

Co-authored-by: Jose García <josegar74@gmail.com>
… are moved to the `overrides` directory (#7429)
* Add more db information to the site information page.
db product and version, driver product and version
db username, schema and database used.

* Changed db.product to db.type and remove DB from labels

* Capitalize U in Usename

* Update db properties to support cases with mismatch drivers that throw AbstractMethodError
* Check http links and update to https and more recent documentation as appropriate

* Replace external links to user manual with relative links between pages

* api docs no longer available, providing a list of valid profiles
…the http proxy is configured in Java system properties (#7325)

* Don't override proxy configuration when saving the settings, if the http proxy is configured in Java system properties

* Update core/src/main/java/org/fao/geonet/lib/ProxyConfiguration.java

Co-authored-by: François Prunayre <fx.prunayre@gmail.com>

---------

Co-authored-by: François Prunayre <fx.prunayre@gmail.com>
Avoid authenticated user to access more info than needed.
feat: signatures changed
@f-necas f-necas closed this Nov 27, 2023
@f-necas f-necas deleted the georchestra-gn-4.2.6-build branch November 27, 2023 14:42
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.