Ridwan Afwan K. F.

Results issues of Ridwan Afwan K. F.

## What kind of change does this PR introduce? Bug fix. ## What is the current behavior? Fixes #2665. `UserUpdate` derefs `session` at lines 106 and 172 without checking it,...

## Describe the bug If a project runs a `customize_access_token` hook that writes `session_id`, Auth will issue a token that then 500s when you send it back to `PUT /user`....

bug

`ObjectReader.ContentLength()` returns `-1` for every object storage response that has a valid `Content-Length` header, because of an inverted error check. https://github.com/imgproxy/imgproxy/blob/faf382077474eee3c406fa85e8007d340619be12/storage/reader.go#L96-L110 ```go p, err := strconv.ParseInt(h, 10, 64) if err...

When a request handler panics with a value that is not an `error` (for example a bare `panic("...")`), the panic recovery in `WithPanic` logs and reports it as: ``` panic:...

### Description On `version/4.0`, a request whose path reduces to an empty string after path redenormalization triggers an `index out of range [0] with length 0` panic in `signatureFor`. It...

### Summary [`getApnsClient`](https://github.com/appleboy/gorush/blob/891b4530db8f5db2beeb44b42665999ab802799f/notify/notification_apns.go#L455-L469) selects the APNs environment by calling `Production()` / `Development()` on the shared global `ApnsClient`. Those two apns2 methods mutate their receiver rather than returning a configured copy,...

### Describe the bug Loop in `removeByCondition` (scheduler.go) will keep iterating by the original value because the range loop copies the values from the slice to a local variable n;...

bug

## Summary When resource-based tuning is enabled with a non-zero `RampThrottle` (the default for activities is 50ms), the non-blocking `TryReserveSlot` -- used for **eager** activity/workflow dispatch -- can block for...

bug

## Expected Behavior `SlotSupplier.ReserveSlot` returns `context.Canceled` when its context is cancelled, so that the poller goroutine calling it can exit during worker shutdown. That is what the interface documents: ```go...

bug

## Expected Behavior `worker.Stop()` returns promptly and does not leak goroutines, including for a session worker that is at its `MaxConcurrentSessionExecutionSize` when it is stopped. ## Actual Behavior Stop a...

bug