# What happens to database listeners when security rules reject an update?

DevFeed: [What happens to database listeners when security rules reject an update?](<https://devfeed.tech/articles/what-happens-to-database-listeners-when-security-rules-reject-an-update-16157.md>)

Original publisher: [Read original article](<https://firebase.blog/posts/2016/11/what-happens-to-database-listeners-when-security-rules-reject-an-update>)

Author: Doug Stevenson

Published: 2016-11-22T00:00:00Z

Content type: tutorial

Language: en

Sources: [Firebase Blog](<https://devfeed.tech/sources/firebase-blog.md>)

Topics: [Firebase](<https://devfeed.tech/topics/firebase.md>), [Database](<https://devfeed.tech/topics/database.md>), [Security](<https://devfeed.tech/topics/security.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [database](<https://devfeed.tech/tags/database.md>), [firebase](<https://devfeed.tech/tags/firebase.md>), [realtime-database](<https://devfeed.tech/tags/realtime-database.md>), [security-rules](<https://devfeed.tech/tags/security-rules.md>), [validation](<https://devfeed.tech/tags/validation.md>)

## AI overview

This Firebase tutorial explains how Realtime Database value listeners behave when security or validation rules reject a write. A listener may receive the attempted new value and then be triggered again with the original value before the write error is reported.

## Source excerpt

News, tutorials, and updates from the Firebase team.