Search found 191 matches

by luis
Wed Sep 09, 2020 11:16 am
Forum: Installation & Configuration issues
Topic: Admin Login Require PIN - How Can I Set Login PIN from SSH?
Replies: 4
Views: 183

Re: Admin Login Require PIN - How Can I Set Login PIN from SSH?

So the problem is really that the access password of the global default configuration's main channel was changed. To fix it, run the following SQL: update channel_configurations set access_password_id = ( select p.id from password_types p where p.internal_name = 'login' ) where channel_id = ( select...
by luis
Wed Sep 02, 2020 1:41 pm
Forum: Bug - problem reporting
Topic: Search user : key words with an apostrophe '
Replies: 1
Views: 141

Re: Search user : key words with an apostrophe '

Many special characters are actually ignored and handled as spaces.
So, searching for 'tits is the same as tits.
Also, searching for p'tits is the same as p tits, which is the OR of either p or tits, ranking higher the matches with both of them.
by luis
Fri Jul 10, 2020 8:01 am
Forum: Scripting & Webservices issues
Topic: How can i write log entries by a script?
Replies: 5
Views: 1771

Re: How can i write log entries by a script?

Use the errorLogService.create method: https://documentation.cyclos.org/4.13/scripting-api-docs/org/cyclos/impl/messaging/ErrorLogServiceLocal.html#create-java.lang.String-java.lang.String-org.cyclos.entities.access.Channel-org.cyclos.entities.users.BasicUser- It has 4 parameters. The service / meth...
by luis
Mon Jul 06, 2020 4:37 pm
Forum: Scripting & Webservices issues
Topic: How can a script translate text?
Replies: 5
Views: 1664

Re: How can a script translate text?

You will need the https://documentation.cyclos.org/4.13/scripting-api-docs/org/cyclos/impl/contentmanagement/TranslationHandler.html available under translationHandler in scripts. All message keys are organized per 'submodule', and are static classes generated into a container class per module: http...
by luis
Mon Jul 06, 2020 11:47 am
Forum: Scripting & Webservices issues
Topic: How can a script translate text?
Replies: 5
Views: 1664

Re: How can a script translate text?

Cyclos has 2 kinds of translations: application translation and data translation. Application translation can translate "static" text used by the application, but is based on a set of predefined keys. It is not possible to define custom keys to translate. Data translation can translate data created ...
by luis
Mon Jul 06, 2020 11:39 am
Forum: Scripting & Webservices issues
Topic: How can i write log entries by a script?
Replies: 5
Views: 1771

Re: How can i write log entries by a script?

By "log file of the corresponding network" you mean the services log? It is not possible to directly log to that file from script, it is very specific for logging service calls. To log in Tomcat's catalina.out, you can use Log4j2, like this: import org.apache.logging.log4j.LogManager def logger = Lo...
by luis
Thu Jul 02, 2020 2:30 pm
Forum: Bug - problem reporting
Topic: Recurring Payments
Replies: 4
Views: 1517

Re: Recurring Payments

One of the changes in 4.13 is that scheduled payments menu now shows both scheduled payment installments and recurring payment occurrences. It is more important for users to known that an installment is due this week than to know that a recurring payment of 12 occurrences was performed 10 months ago...
by luis
Thu May 28, 2020 7:53 am
Forum: Scripting & Webservices issues
Topic: How to debug in Eclipse?
Replies: 7
Views: 2150

Re: How to debug in Eclipse?

"Module" is a concept that appeared in Java 9. Cyclos up to 4.13 is built in Java 8, which is a LTS (long term support). The current Java LTS is version 11, and it is planned that Cyclos 4.14, whose development should start soon, will switch to it. For now you do need to set version 8 in your projec...
by luis
Fri May 22, 2020 11:52 am
Forum: Scripting & Webservices issues
Topic: How to debug in Eclipse?
Replies: 7
Views: 2150

Re: How to debug in Eclipse?

If you follow the steps in the README, you actually won't see a place to select a main class. Instead, you'll right click the RunScript.groovy and select Run As > Groovy Script. The servlet-api JAR is really missing in the README. This will be fixed on 4.13. In the meantime, you can download it from...
by luis
Thu Feb 27, 2020 10:00 am
Forum: Bug - problem reporting
Topic: Problem when migrate storage to Amazon S3
Replies: 1
Views: 1251

Re: Problem when migrate storage to Amazon S3

The "ClassNotFoundException: javax.servlet.ServletContext" error indicates that the Tomcat jars haven't been included in your command. The instruction page says this: java -cp "WEB-INF/classes:../../lib/*:WEB-INF/lib/*:/path-to-tomcat/lib" \ org.cyclos.impl.storage.utils.StoredFileContentMigrator Pr...
by luis
Thu Nov 07, 2019 9:10 am
Forum: Bug - problem reporting
Topic: Cyclos bug in account information summary
Replies: 4
Views: 1762

Re: Cyclos bug in account information summary

Actually, this is a limitation up to 4.12.x, where chargebacks are accounted in the same way as the original transfer for the matter of summing the incoming / outflow. It is already fixed in the development version of 4.13, not 4.12.4. It took a significant refactoring in the code base, so it can't ...
by luis
Fri Oct 25, 2019 3:00 pm
Forum: Bug - problem reporting
Topic: Leak data by Intercept request
Replies: 1
Views: 1510

Re: Leak data by Intercept request

There are 2 issues: - You can see the id and display of other users because your user is allowed to do users search. You don't even need to intercept requests: just use the API (/api/users or via the legacy /web-rpc/users/search). You can set "Search users on groups" to "None" in the products, and u...
by luis
Fri Oct 25, 2019 1:57 pm
Forum: Bug - problem reporting
Topic: DOM Based XSS
Replies: 1
Views: 1281

Re: DOM Based XSS

Thanks for reporting.
This is a bug, to be fixed in 4.12.4.
by luis
Tue Aug 20, 2019 2:58 pm
Forum: Bug - problem reporting
Topic: Can not import a cvs file to a user record through REST-API
Replies: 5
Views: 1989

Re: Can not import a cvs file to a user record through REST-API

The content type is sent by the client in the multipart field.
The REST layer just forwards the received content type to the implementation.
Which client are you using? And which content type is being sent?
by luis
Tue Aug 20, 2019 1:19 pm
Forum: Bug - problem reporting
Topic: Can not import a cvs file to a user record through REST-API
Replies: 5
Views: 1989

Re: Can not import a cvs file to a user record through REST-API

In the custom field details page you can find the allowed file types.