[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: [PATCH] Request for adding internal meta-data support to KIO...
From:       Rolf Eike Beer <kde () opensource ! sf-tec ! de>
Date:       2010-04-28 15:57:57
Message-ID: 201004281758.02800.kde () opensource ! sf-tec ! de
[Download RAW message or body]


Am Mittwoch 28 April 2010 07:06:35 schrieb Dawit A:

> What was surprising here is that the above solution can be implemented very
> easily. With only one additional requirement to qualify meta-data as
> internal, we can use the existing method that ioslaves use to send
> meta-data back to applications to solve the issue. What is this
> requirement ? We simply state/assume that a meta-data whose key starts
> with the keyword
> "_kio_internal_" will be treated as an internal meta-data and handled
> separately from the regular meta-data container that holds values slated to
> be sent to applications. You can read the details of how this is supposed
> to work by either reading the attached patch or simply reading the changes
> I made to the DESIGN.metadata document which is included with the patch.

I suggest using something that must not be a valid metadata identifier. E.g. 
starting things with some (printable, ASCII) special character like space, # 
or whatever. That way we can avoid that a server can inject such things into 
the metadata cache. Otherwise you would have to filter out any metadata from 
the server that starts with _kio_internal to make sure it doesn't try to fool 
us into something.

Eike

["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic