Exploit databaseDownload repository ZIP
GH-9a017fa45abc7e1f8f6ba6e1285cae54
iplayforsg/cve-2023-51444
Sources for CVE-2023-51444
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files17
iplayforsg/cve-2023-51444Revision 5cd0aeccb789
- ↑..Parent directory
- CatalogConfiguration.java
- CatalogLayerEventListener.java
- CatalogStyleChangeListener.java
- DefaultTileLayerCatalog.java
- DynamicGridSubset.java
- GWCGeoServerConfigurationProvider.java
- GWCGeoServerRESTConfigurationProvider.java
- GeoServerMetaTile.java
- GeoServerTileLayer.java
- GeoServerTileLayerInfo.java
- GeoServerTileLayerInfoImpl.java
- LegacyTileLayerInfoLoader.java
- StyleParameterFilter.java
- TileLayerCatalog.java
- TileLayerCatalogListener.java
- TileLayerInfoUtil.java
- TimeoutReadWriteLock.java
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
gwc/src/main/java/org/geoserver/gwc/layer/GeoServerTileLayerInfo.java
Java · 7,199 bytes/* (c) 2014 Open Source Geospatial Foundation - all rights reserved
* (c) 2001 - 2013 OpenPlans
* This code is licensed under the GPL 2.0 license, available at the root
* application directory.
*/
package org.geoserver.gwc.layer;
import com.google.common.collect.ImmutableSet;
import java.io.Serializable;
import java.util.List;
import java.util.Set;
import javax.annotation.Nullable;
import org.geoserver.catalog.CatalogInfo;
import org.geoserver.catalog.LayerGroupInfo;
import org.geoserver.catalog.LayerInfo;
import org.geoserver.gwc.config.GWCConfig;
import org.geoserver.util.DimensionWarning.WarningType;
import org.geowebcache.config.BlobStoreInfo;
import org.geowebcache.config.XMLGridSubset;
import org.geowebcache.filter.parameters.ParameterFilter;
import org.geowebcache.layer.ExpirationRule;
/**
* Delegate for {@link GeoServerTileLayer} configuration, for serialization.
*
* @see TileLayerInfoUtil#loadOrCreate(CatalogInfo, GWCConfig)
* @see TileLayerInfoUtil#loadOrCreate(LayerInfo, GWCConfig)
* @see TileLayerInfoUtil#loadOrCreate(LayerGroupInfo, GWCConfig)
*/
public interface GeoServerTileLayerInfo extends Serializable, Cloneable {
/** @return The id of the corresponding {@link LayerInfo} or {@link LayerGroupInfo} */
String getId();
/**
* Sets the id.
*
* @param id The id of the corresponding {@link LayerInfo} or {@link LayerGroupInfo}
*/
void setId(String id);
/** @return The name of the corresponding {@link GeoServerTileLayer} */
String getName();
/**
* Sets the name
*
* @param name The name of the corresponding {@link GeoServerTileLayer}
*/
void setName(String name);
/**
* @return The {@link BlobStoreInfo#getId() blob store id} for this layer's tiles, or {@code
* null} if whatever the default blob store is shall be used
*/
@Nullable
String getBlobStoreId();
/**
* @param blobStoreId the {@link BlobStoreInfo#getId() blob store id} for this layer's tiles, or
* {@code null} if whatever the default blob store is shall be used
*/
void setBlobStoreId(@Nullable String blobStoreId);
/** @return the X metatiling factor */
int getMetaTilingX();
/** @return the Y metatiling factor */
int getMetaTilingY();
/** @param metaTilingY the Y metatiling factor */
void setMetaTilingY(int metaTilingY);
/** @param metaTilingX the X metatiling factor */
void setMetaTilingX(int metaTilingX);
/**
* Gets the default expiration time for tiles in the cache.
*
* @return the expiration time for tiles in the cache
*/
int getExpireCache();
/**
* Sets the default expiration time for tiles in the cache.
*
* @param expireCache the expiration time
*/
void setExpireCache(int expireCache);
/**
* Gets a list of {@link ExpirationRule} defining expiration time by zoom level
*
* @return list expiration rules for tiles in the cache
*/
List<ExpirationRule> getExpireCacheList();
/**
* Sets the {@link ExpirationRule}s for expiring tiles in the cache
*
* @param expireCacheList the list of expiration rules
*/
void setExpireCacheList(List<ExpirationRule> expireCacheList);
/**
* Gets the expiration time to be declared to clients
*
* @return the expiration time, in seconds
*/
int getExpireClients();
/**
* Sets the expiration time to be declared to clients
*
* @param seconds the expiration time, in seconds
*/
void setExpireClients(int seconds);
/**
* Derived property from {@link #getParameterFilters()}, returns the configured allowable values
* for a parameter filter over the {@code STYLE} key, if exists, or the empty set.
*
* <p>The returned set is immutable and dettached from this object's internal state
*
* <p>The returned set shall not return the default style for the layer
*/
ImmutableSet<String> cachedStyles();
/**
* @see GeoServerTileLayer#getMimeTypes()
* @return set of MIME types supported by the tile layer
*/
Set<String> getMimeFormats();
/**
* Get the list of cached {@link org.geowebcache.grid.GridSubset}s for the {@link
* GeoServerTileLayer}
*
* @return The grid subsets
*/
Set<XMLGridSubset> getGridSubsets();
/**
* Set the list of cached {@link org.geowebcache.grid.GridSubset}s for the {@link
* GeoServerTileLayer}
*
* @param gridSubsets list of grid subsets to cache
*/
void setGridSubsets(Set<XMLGridSubset> gridSubsets);
/**
* Sets whether the tile layer is enabled
*
* @param enabled if the tile layer is enabled
*/
void setEnabled(boolean enabled);
/** @return true if the tile layer is enabled */
boolean isEnabled();
/**
* Sets the size of the gutter surrounding MetaTiles, in pixels.
*
* @see org.geowebcache.layer.MetaTile
* @param gutter the size of the gutter, in pixels
*/
void setGutter(int gutter);
/**
* Sets the size of the gutter surrounding MetaTiles, in pixels.
*
* @see org.geowebcache.layer.MetaTile
* @return the size of the gutter, in pixels
*/
int getGutter();
/**
* Is the tile layer configured to automatically cache all styles
*
* @return true if the tile layer automatically caches all styles
*/
boolean isAutoCacheStyles();
/**
* Set whether the tile layer should automaticaly cache all styles
*
* @param autoCacheStyles if the tile layer should automatically cache all styles
*/
void setAutoCacheStyles(boolean autoCacheStyles);
/** @return the parameterFilters */
Set<ParameterFilter> getParameterFilters();
/** Replace the set of parameter filters */
void setParameterFilters(Set<ParameterFilter> parameterFilters);
/**
* Add a parameter filter, replacing any existing filter with the same key.
*
* @return true if an existing filter was replaced, false otherwise.
*/
boolean addParameterFilter(ParameterFilter parameterFilter);
/**
* Remove the filter with the specified key
*
* @return true if the filter existed, false otherwise
*/
boolean removeParameterFilter(String key);
GeoServerTileLayerInfo clone();
/** Get the ParameterFilter with the specified key */
ParameterFilter getParameterFilter(String key);
/**
* Is the layer cached in-memory
*
* @return true if the layer is cached in-memory
*/
boolean isInMemoryCached();
/**
* Set whether or not the layer is cached in-memory
*
* @param inMemoryCached is the layer cached in-memory
*/
void setInMemoryCached(boolean inMemoryCached);
/**
* Set of dimension warnings that would cause the layer to avoid caching the tlie
*
* @return
*/
Set<WarningType> getCacheWarningSkips();
/**
* Sets the types of warning that would cause a cache skip
*
* @param skips
*/
void setCacheWarningSkips(Set<WarningType> skips);
}