Open tbonfort opened 12 years ago
Author: dmorissette Date: 2004/08/03 - 15:00
This has been brought up on the WFS-DEV list already on July 12th without much
success. You can try again if you like, but anyway that doesn't mean we cannot
put some security in place in MapServer to prevent server overload. This could
be done by adding a wfs_maxfeatures metadata. We should also take into
consideration whether the client can override the wfs_maxfeature by passing a
larger MAXFEATURES value in the request.
Author: bartvde@osgis.nl Date: 2004/08/16 - 15:17
Daniel, implementation will be difficult because of the following corresponding
bug report:
http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=551
or not?
This means that with the current implementation, a user could still extract the
whole database or shapefile. Although not everything will be sent to the user.
I think the server-side value should always overrule the client-side parameter,
otherwise the protection is not a 100% safe for a server.
Author: dmorissette Date: 2004/08/16 - 16:11
I don't think bug 551 makes the implementation more difficult, it just makes it
less efficient. For now you can at least limit the number of objects returned in
the GML response, that will solve the main problem. When bug 551 is fixed then
the maxfeature value can be propagated down to the query functions to get the
best possible performance.
I also agree that the server-side setting should take precedence over the
client-side maxfeatures parameter.
Author: assefa Date: 2004/10/25 - 20:17
Working on this.
Here are the changes that I am going to do
- use of wfs_maxfeatures metadata (set at the web level) to control the
number of elements returned.
- the wfs_maxfeatures has priority over the maxfeature parameter passed by
the user if latest is bigger that the one set with the metadata.
- if the wfs_maxfetaures is not set, the current behaviour is not changed.
Author: assefa Date: 2004/10/25 - 20:41
Corrected as described in comment#4.
Reassigning to Jeff for documenation update
Author: jmckenna@dmsolutions.ca Date: 2005/01/10 - 23:40
added wfs_maxfeatures metadata in the web object of the wfs-server doc.
committed to cvs.
Reporter: bartvde@osgis.nl Date: 2004/08/03 - 09:05