Search found 189 matches

by luis
Fri Jul 10, 2020 8:01 am
Forum: Scripting & Webservices issues
Topic: How can i write log entries by a script?
Replies: 4
Views: 1389

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: 1364

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: 1364

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: 4
Views: 1389

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: 1306

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: 1830

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: 1830

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: 1124

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: 1591

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: 1381

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: 1170

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: 1776

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: 1776

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.
by luis
Thu Aug 08, 2019 3:28 pm
Forum: Bug - problem reporting
Topic: Can not import a cvs file to a user record through REST-API
Replies: 5
Views: 1776

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

If the custom field type is File, then you cannot set it as a path. Instead, you should first upload the file with a POST to /files/temp, passing the customFieldKind and customField parameters, and the content in a multipart/form-data. It will return an id as string. Then you have to set that id as ...
by luis
Tue Jun 25, 2019 11:01 am
Forum: Bug - problem reporting
Topic: Cyclos logs eating up all disk space
Replies: 3
Views: 1415

Re: Cyclos logs eating up all disk space

Ok, thanks for the info.
If the issue was happening before, it might have other users that were removed before being confirmed, and that is what caused the bug.
After 4.12.1 you can revert the change in cyclos.properties if you wish.