Project

General

Profile

Actions

Task #652

closed

Groovy sandbox default allowed types

Added by Ondřej Kopr over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Ondřej Kopr
Category:
Scripts
Target version:
-
Start date:
08/14/2017
Due date:
% Done:

0%

Estimated time:
Owner:

Description

Summary ticket for adding new allowed type to groovy script filter.

Actual default allowed types:

java.math.BigDecimal;
java.sql.Date;
java.util.ArrayList;
java.util.HashMap;
java.util.HashSet;
java.util.List;
java.util.Map;
java.util.Set;
java.util.UUID;
org.codehaus.groovy.runtime.GStringImpl;
org.joda.time.DateTime;
org.joda.time.LocalDateTime;
org.joda.time.format.DateTimeFormat;
org.joda.time.format.DateTimeFormatter;
org.slf4j.Logger;
org.slf4j.LoggerFactory;
eu.bcvsolutions.idm.core.security.api.domain.GuardedString;

If you want to add some default type add comment with class (full package) + some description why.

Actions #1

Updated by Ondřej Kopr over 6 years ago

  • Assignee deleted (Ondřej Kopr)
Actions #2

Updated by Jan Helbich over 6 years ago

java.time.* (at least Instant, ZoneId, ZoneRegion, LocalDate, LocalTime, LocalDateTime, OffsetTime, OffsetDateTime and possible transitive dependencies)
java.util.Date

Ideally make the GroovySandboxFilter easily overridable in CzechIdM modules, please.

Actions #3

Updated by Ondřej Kopr over 6 years ago

java.util.Date.class was added into hotfix/7.3.2,

Added into develop, beware in Czech IdM product, we don't use Date from java.time, but from org.joda.time;
java.time.LocalDate;
java.time.LocalTime;
java.time.OffsetDateTime;
java.time.OffsetTime;
java.time.ZoneId;

Actions #4

Updated by Vít Švanda over 6 years ago

  • Status changed from New to Resolved
  • Assignee set to Ondřej Kopr
Actions #5

Updated by Ondřej Kopr over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF