Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 194 #195

Closed
wants to merge 3 commits into from
Closed

Issue 194 #195

wants to merge 3 commits into from

Conversation

bpross-52n
Copy link
Member

Fix for #194. Measurement limit for shapefile export: 500 (configurable) Everything above that will result in a HTTP 500 error:
2014-06-24-tracktoolongexception

@bpross-52n bpross-52n closed this Jun 24, 2014
this.properties = new Properties();
InputStream in = null;
try {
in = EEAPhenomenonLinker.class.getResourceAsStream(PROPERTIES);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like that import ;-)

@bpross-52n
Copy link
Member Author

Oops, c&p mistake... I will correct this. We moved to #196, btw ;) The first (this) PR was aimed at the master branch...

private final String shapefileExportThresholdPropertyName = "shapefile.export.measurement.threshold";
private Track track;
private Properties properties;
private static final String PROPERTIES = "/export.properties";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess, depending on the ClassLoader implementation, this may always read the jar-packaged export.properties, thus prohibiting configuration at deployment time (WEB-INF/classes/export.properties).

I would recommend a fail-safe method: package an export.default.properties and only load it whenever Class.getResourceAsStream("/export.properties") returns null.

@matthesrieke matthesrieke mentioned this pull request Jun 24, 2014
bpross-52n added a commit to bpross-52n/enviroCar-server that referenced this pull request Jun 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants