miha-x64
10/27/2016, 6:21 PM= null
)? What's in the class's bytecode?mohsenk
10/28/2016, 11:07 AMmohsenk
10/28/2016, 11:13 AMnfrankel
10/28/2016, 12:21 PMnfrankel
10/28/2016, 12:22 PMmohsenk
10/28/2016, 12:30 PMmichael.barker
10/28/2016, 7:27 PMfun updateEnrollment(enroll: Boolean) {
// The method with the around advice is called with what should be a primitive boolean since it's not nullable
service.updateEnrollment(enroll)
}
@Around(value = "@annotation(replicate)")
fun wrapCall(pjp: ProceedingJoinPoint, replicate: Replicate) {
val args = pjp.args
// it.javaClass returns java.lang.Boolean instead of the primitive type
val argClass = pjp.args.map { it.javaClass }.toTypedArray()
...
}
// getMethod fails because the type is java.lang.Boolean but the method signature is a boolean primitive
service.getClass().getMethod(methodName, types);
dh44t
10/28/2016, 11:27 PMmichael.barker
10/29/2016, 4:14 PMmichael.barker
10/29/2016, 4:18 PMstarbuxman
11/01/2016, 9:50 PMstarbuxman
11/01/2016, 9:51 PMstarbuxman
11/01/2016, 9:51 PMmichael.barker
11/01/2016, 9:55 PMval ref = object : ParameterizedTypeReference<Foo<Bar>>() {}
nfrankel
11/02/2016, 7:45 AMnfrankel
11/02/2016, 7:47 AMroborative
11/04/2016, 4:37 PMCaused by: java.io.NotSerializableException: kotlin.reflect.jvm.internal.KParameterImpl
.roborative
11/04/2016, 4:39 PMroborative
11/04/2016, 4:58 PMdh44t
11/04/2016, 6:53 PMroborative
11/04/2016, 6:57 PMpayload
is what can't be serialized.dh44t
11/04/2016, 6:58 PMdh44t
11/04/2016, 6:58 PMroborative
11/04/2016, 6:59 PMroborative
11/04/2016, 7:00 PMcause
is my guess)roborative
11/04/2016, 7:01 PMmiha-x64
11/12/2016, 6:50 PM@Entity
public class Something {
@Id
@GeneratedValue(generator = "uuid2")
@GenericGenerator(name = "uuid2", strategy = "uuid2")
public UUID id;
@NotNull @Column(columnDefinition = "TEXT")
public String text;
}
, a form with the only field text
, and a controller method:
String addSomething(@ModelAttribute Something something) { somethingRepository.save(something); }
If a user adds id=00000000-0000-0000-0000-000000000000
to his request, and a model with such id already exists, will Hibernate update an existing model? How we can close this security hole?
michael.barker
11/12/2016, 7:02 PMmiha-x64
11/12/2016, 7:04 PM@Entity
public class Something {
protected Something() { }
public Something(HttpSomething source) {
…
?michael.barker
11/12/2016, 7:05 PM