| Ticket UUID: | 886457 | ||
| Title: | mode of transforms does not restrict channel ops | ||
| Type: | Bug | Created on: | 2004-01-28 20:04:10 |
| Submitter: | marcomaggi | Assigned to: | andreas_kupries |
| Subsystem: | 26. Channel Transforms | Severity: | |
| Priority: | 1 Zero | Last modified: | 2004-07-17 05:50:21 |
| Status: | Open | Closed by: | |
| Resolution: | None | Closed on: | |
| Version: | obsolete: 8.4.6 | ||
| Description: | ||||
When a transformation is registered, its open mode is validated against the open mode of the underlying channel by Tcl_StackChannel(). The transformation's open mode is not registered in the stack state. When a transformation is registered with RDONLY mode on top of a RDWR channel, its output function is invoked when an attempt to write data is performed; analogue behaviour is found when a transformation is registered with WRONLY mode on top of a RDWR channel. The fact that the responsibility to disallow the operation is delegated to the transformation's driver is not stated in the manual pages. | ||||
| User Comments: | ||||
andreas_kupries added on 2004-07-17 05:49:29:
Logged In: YES user_id=75003 This problem still exists for 8.4.6, and the head as well. To me this is more a bug in the code than in the documentation. The RW-mode is listed in the common state structure (part of the flags), and not changed based upon the transformation. It should be, and each transformation should save the underlying RW mode in its personal channel structure, set the common mode, and restore the old mode when unstacked. ... The private channel structure would have to change, would be larger. | ||||
