Genesys Backend issueshttps://gitlab.croptrust.org/genesys-pgr/genesys-server/-/issues2017-10-14T17:49:22+02:00https://gitlab.croptrust.org/genesys-pgr/genesys-server/-/issues/180Normalize class names in ..spring.config package2017-10-14T17:49:22+02:00Matija ObrezaNormalize class names in ..spring.config packageRemove `Spring` prefix from class names in `org.genesys2.spring.config` package.Remove `Spring` prefix from class names in `org.genesys2.spring.config` package.2.2Matija ObrezaMatija Obrezahttps://gitlab.croptrust.org/genesys-pgr/genesys-server/-/issues/179Article templates2021-02-15T09:52:04+01:00Matija ObrezaArticle templatesSome existing **global** articles are actually templates in the system.
Allow for editing of `Article#template` flag only for `ContentService#getDefaultLanguage`. If the flag changes, update all articles with the same `slug` to the sta...Some existing **global** articles are actually templates in the system.
Allow for editing of `Article#template` flag only for `ContentService#getDefaultLanguage`. If the flag changes, update all articles with the same `slug` to the state as set for default language.
Indexing and deleting from ES index was taken care of in 50bc2ad69438f27ae876e587eb526005f10f296e.2.5Maxym BorodenkoMaxym Borodenkohttps://gitlab.croptrust.org/genesys-pgr/genesys-server/-/issues/178Article slugs without dot2017-10-21T19:37:41+02:00Matija ObrezaArticle slugs without dotArticle slugs cannot contain `.` character because they cannot be submitted to Transifex for translation.
Genesys relies on some default articles from `src/main/resources/default-articles`. These should be renamed to not use the `.`, bu...Article slugs cannot contain `.` character because they cannot be submitted to Transifex for translation.
Genesys relies on some default articles from `src/main/resources/default-articles`. These should be renamed to not use the `.`, but `-` instead, and references in code to such articles must be CONSTANTS in ContentService -- there should be no String `"user.password-reset"` anywhere in the code.2.2Maxym BorodenkoMaxym Borodenkohttps://gitlab.croptrust.org/genesys-pgr/genesys-server/-/issues/177Logging fixed2017-10-18T09:56:46+02:00Matija ObrezaLogging fixedUsing string concatenation `"foo=" + bar + " x=" + x"` in logging is horribly bad. The SLF4J avoids that by creating the log message string on demand (if current log level must be logged).
Replace **ALL** loggers with `org.slf4j.Logger`...Using string concatenation `"foo=" + bar + " x=" + x"` in logging is horribly bad. The SLF4J avoids that by creating the log message string on demand (if current log level must be logged).
Replace **ALL** loggers with `org.slf4j.Logger` and make sure they are called `LOG`:
```java
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
...
Logger LOG = LoggerFactory.getLogger(...
```
Replace all string concatenation in calls to `LOG.info`, `LOG.debug`, etc. with message format logging:
```java
LOG.info("Test value=" + value + " other=" + other);
// must be
LOG.info("Test value={} other={}", value, other);
```2.2Maxym BorodenkoMaxym Borodenkohttps://gitlab.croptrust.org/genesys-pgr/genesys-server/-/issues/176Note on latest master2017-10-25T11:01:35+02:00Matija ObrezaNote on latest masterI've merged #174 . That has some major changes to Genesys and is deployed to https://sandbox.genesys-pgr.org
1. Create a `src/main/resources/genesys.properties` file with **your own** local configuration, especially the DB connection. ...I've merged #174 . That has some major changes to Genesys and is deployed to https://sandbox.genesys-pgr.org
1. Create a `src/main/resources/genesys.properties` file with **your own** local configuration, especially the DB connection. This file should not ever be committed to the repo.
1. That's it.
@all Say yes! If you have trouble running latest master let me know!
My `genesys.properties` has commented-out sections for testing against the mysql or against HSQL:
```.properties
#db.url=jdbc:mysql://localhost/sandbox?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
#db.driverClassName=com.mysql.jdbc.Driver
#db.username=root
#db.password=
db.url=jdbc:hsqldb:mem:genesys;sql.syntax_mys=true
db.driverClassName=org.hsqldb.jdbc.JDBCDriver
db.username=sa
db.password=
db.showSql=false
db.hbm2ddl=true
auto.createContent=true
hibernate.dialect=org.genesys.blocks.util.BetterHSQLDialect
```2.2Nina Tkachenkon.tkachenko@aimprosoft.comNina Tkachenkon.tkachenko@aimprosoft.comhttps://gitlab.croptrust.org/genesys-pgr/genesys-server/-/issues/175Genesys CI2017-10-06T11:51:42+02:00Matija ObrezaGenesys CIGenesys branches should automatically deploy to Docker so that testing can begin without clicking buttons.Genesys branches should automatically deploy to Docker so that testing can begin without clicking buttons.Matija ObrezaMatija Obrezahttps://gitlab.croptrust.org/genesys-pgr/genesys-server/-/issues/174OAuth Client Credentials Grant2017-10-06T20:21:06+02:00Matija ObrezaOAuth Client Credentials GrantImplement Client Credentials grant in Genesys to allow system-to-system communication. Test that permissions on institutes work.
Document the use of this grant type in the API docs `/docs/0/api`.Implement Client Credentials grant in Genesys to allow system-to-system communication. Test that permissions on institutes work.
Document the use of this grant type in the API docs `/docs/0/api`.2.2Matija ObrezaMatija Obrezahttps://gitlab.croptrust.org/genesys-pgr/genesys-server/-/issues/173Clear DOIs2017-10-06T11:07:03+02:00Matija ObrezaClear DOIsDOIs are in testing phase and data providers may provide test values.
Implement an admin operation to clear all accession DOIs from the database.
- Add the **Clear DOIs** button to `/admin`
- On submit, execute the action that clears t...DOIs are in testing phase and data providers may provide test values.
Implement an admin operation to clear all accession DOIs from the database.
- Add the **Clear DOIs** button to `/admin`
- On submit, execute the action that clears the DOI: `update Accession set doi = null where doi is not null`
No other GUI required.2.2https://gitlab.croptrust.org/genesys-pgr/genesys-server/-/issues/172"In Trust" descriptor2021-02-15T09:51:54+01:00Nora Castaneda-Alvarez"In Trust" descriptorDocument the `InTrust` descriptor, a Genesys extension to MCPD, at https://www.genesys-pgr.org/doc/0/basics#mcpd-genesysDocument the `InTrust` descriptor, a Genesys extension to MCPD, at https://www.genesys-pgr.org/doc/0/basics#mcpd-genesys2.5Matija ObrezaMatija Obrezahttps://gitlab.croptrust.org/genesys-pgr/genesys-server/-/issues/171Requesting germplasm JSP error2017-09-26T13:02:58+02:00Matija ObrezaRequesting germplasm JSP error1. Add ITC00002 to the list
1. Click "Request for germplasm"
```
javax.el.PropertyNotFoundException: Property 'acceNumb' not found on type org.genesys2.server.model.genesys.Accession
```1. Add ITC00002 to the list
1. Click "Request for germplasm"
```
javax.el.PropertyNotFoundException: Property 'acceNumb' not found on type org.genesys2.server.model.genesys.Accession
```Matija ObrezaMatija Obrezahttps://gitlab.croptrust.org/genesys-pgr/genesys-server/-/issues/170Article#template2017-10-19T09:32:12+02:00Matija ObrezaArticle#templateTemplates used by Genesys to send emails and display other information are using the `Article` entity. This automatically indexes their contents in Elasticsearch and also displays these templates to end users:
- https://sandbox.genesys-...Templates used by Genesys to send emails and display other information are using the `Article` entity. This automatically indexes their contents in Elasticsearch and also displays these templates to end users:
- https://sandbox.genesys-pgr.org/acn/search2?q=email§ion=article
- https://sandbox.genesys-pgr.org/content/smtp.email-verification
Add new property `boolean template` to `Article` entity.
Change Genesys code to:
- Not include in ES articles with `template == true`
- Only display such articles to users with roles ADMINISTRATOR and CONTENTMANAGER, return 404 otherwise
- Content of template articles is not HTML santitized2.2https://gitlab.croptrust.org/genesys-pgr/genesys-server/-/issues/169Move institute files to /wiews/INSTCODE2017-09-28T15:23:33+02:00Matija ObrezaMove institute files to /wiews/INSTCODEThe `InstituteFilesServiceImpl` now uses `/accessions/INSTCODE/acn/ACCENUMB` for accession image galleries. This makes it inconvenient to test permissions and support other institute files.
Change the path to `/wiews/INSTCODE/acn/ACCENU...The `InstituteFilesServiceImpl` now uses `/accessions/INSTCODE/acn/ACCENUMB` for accession image galleries. This makes it inconvenient to test permissions and support other institute files.
Change the path to `/wiews/INSTCODE/acn/ACCENUMB`.
At the same time, automatically create image galleries when a file is uploaded to `/wiews/INSTCODE/acn/ACCENUMB`.2.2Matija ObrezaMatija Obrezahttps://gitlab.croptrust.org/genesys-pgr/genesys-server/-/issues/168Upload repository metadata for institutes2017-12-23T09:22:08+01:00Matija ObrezaUpload repository metadata for institutesDepends on #167.
Allow ADMINISTRATOR and Institute ADMINISTRATOR to upload a CSV file with updated metadata for institute files.
Sample file as generated by #167 is attached: [ETH013_files_metadata__6_.csv](/uploads/e6a11f96b134c982382...Depends on #167.
Allow ADMINISTRATOR and Institute ADMINISTRATOR to upload a CSV file with updated metadata for institute files.
Sample file as generated by #167 is attached: [ETH013_files_metadata__6_.csv](/uploads/e6a11f96b134c9823826f2fc9eb6b6e6/ETH013_files_metadata__6_.csv)
The users will
1. Upload files to the server
1. Download metadata CSV and make local changes to the file
1. Upload modified CSV file
Genesys will update RepositoryFile metadata based on the `uuid` -- `version` can be ignored for now. Only the following fields will be updated from CSV:
* title
* subject
* description
* creator
* created
* rightsHolder
* accessRights
* license
* bibliographicCitation
2.3https://gitlab.croptrust.org/genesys-pgr/genesys-server/-/issues/167Download repository metadata2017-10-24T11:07:02+02:00Matija ObrezaDownload repository metadataAfter #166 is implemented, add function to download metadata for all repository files and its subclasses belonging to an institute.
Export data in CSV format, using `tab` as separator, `"` as quote char and `\` as escape char.
The func...After #166 is implemented, add function to download metadata for all repository files and its subclasses belonging to an institute.
Export data in CSV format, using `tab` as separator, `"` as quote char and `\` as escape char.
The function should be available to users with ADMINISTRATOR permissions on the institute record.2.2https://gitlab.croptrust.org/genesys-pgr/genesys-server/-/issues/166File management for institutes2017-10-14T17:49:22+02:00Matija ObrezaFile management for institutesAdd **Manage files** link to institute page, displayed for users with ADMIN permissions on the institute record. For [BEL084](https://sandbox.genesys-pgr.org/wiews/BEL084) the link would be https://sandbox.genesys-pgr.org/wiews/BEL084/fi...Add **Manage files** link to institute page, displayed for users with ADMIN permissions on the institute record. For [BEL084](https://sandbox.genesys-pgr.org/wiews/BEL084) the link would be https://sandbox.genesys-pgr.org/wiews/BEL084/files/
File management UI and most logic can be copied from existing https://sandbox.genesys-pgr.org/admin/r/files/ (accessible to ADMINISTRATORS).
Institute files are stored at repository paths:
- ~~`/accessions/INSTCODE`~~
- `/wiews/INSTCODE`
2.2https://gitlab.croptrust.org/genesys-pgr/genesys-server/-/issues/165Document file management with FTP2021-02-15T09:51:31+01:00Matija ObrezaDocument file management with FTPAdd **asciidoc** on managing files with FTP.Add **asciidoc** on managing files with FTP.2.5Matija ObrezaMatija Obrezahttps://gitlab.croptrust.org/genesys-pgr/genesys-server/-/issues/164Respect institute permissions2021-02-15T09:50:43+01:00Matija ObrezaRespect institute permissionsPermissions must be checked for navigation and files management through FTP.
Related to genesys-pgr/file-repository#22Permissions must be checked for navigation and files management through FTP.
Related to genesys-pgr/file-repository#222.5Matija ObrezaMatija Obrezahttps://gitlab.croptrust.org/genesys-pgr/genesys-server/-/issues/163Error editing repository item properties2017-09-28T15:23:33+02:00Matija ObrezaError editing repository item propertiesUpdating file metadata at https://sandbox.genesys-pgr.org/admin/r/edit?uuid=b9a68477-f212-46c3-9e9f-d7c4a136e280 throws:
```
not-null property references a null or transient value : org.genesys.filerepository.model.RepositoryImage.md5Su...Updating file metadata at https://sandbox.genesys-pgr.org/admin/r/edit?uuid=b9a68477-f212-46c3-9e9f-d7c4a136e280 throws:
```
not-null property references a null or transient value : org.genesys.filerepository.model.RepositoryImage.md5Sum
```2.2Maxym BorodenkoMaxym Borodenkohttps://gitlab.croptrust.org/genesys-pgr/genesys-server/-/issues/162Onboarding / Creating new account2019-11-20T17:25:50+01:00Gregor FrasOnboarding / Creating new account@mobreza
1. Is there really need to be special character(s) in user password? It seems to me that this "rule" is not so common so users can't use their "personal" passwords for Genesys which causes confusion with passwords and problems...@mobreza
1. Is there really need to be special character(s) in user password? It seems to me that this "rule" is not so common so users can't use their "personal" passwords for Genesys which causes confusion with passwords and problems with login.
2. Landing page after user registration is dead-end. We should consider what could be useful links or content on this page. What would we wanted for user to do after registration?
![1](/uploads/d8696a9ea636b31726eed27e445b8db7/1.jpg)
![2](/uploads/d290936f18f1f2cabd84ffc0ef448ad6/2.jpg)2.5Gregor FrasGregor Frashttps://gitlab.croptrust.org/genesys-pgr/genesys-server/-/issues/161HTTP error 5002017-09-26T13:07:08+02:00Aleksandr KirichenkoHTTP error 500**Steps:**
1. Go to browse page "https://sandbox.genesys-pgr.org/explore"
2. In the pagination field enter manually "0" value and click "Enter" key;
**Act.res.:** HTTP ERROR 500 was occurred. See attached videos
![recording_0002](/upl...**Steps:**
1. Go to browse page "https://sandbox.genesys-pgr.org/explore"
2. In the pagination field enter manually "0" value and click "Enter" key;
**Act.res.:** HTTP ERROR 500 was occurred. See attached videos
![recording_0002](/uploads/ab60c9bcd0bd1809ce438992d3fad245/recording_0002.gif)
![recording_0003](/uploads/0e0e0f08db29ba58ba0c884a1af74cfd/recording_0003.gif)
This applies to any pagination except Search.
# Error handling
Please use the /errors/500.jsp to render these errors.2.2Maxym BorodenkoMaxym Borodenko