Impetus / kundera

A JPA 2.1 compliant Polyglot Object-Datastore Mapping Library for NoSQL Datastores.Please subscribe to:
http://groups.google.com/group/kundera-discuss/subscribe
Apache License 2.0
903 stars 233 forks source link

Bug in com.impetus.kundera.classreading.Reader - getResourceIterator #1021

Open Kinle opened 6 years ago

Kinle commented 6 years ago

A Spring project was created with name that have spaces. When persistence.xml doesn't have any configured, it scans for entity classes in classpath. Since the path is URL encoded, spaces converts to %20 and the URL String doesn't seem to read the file. Suggestion: String urlString = url.toString(); can be changed to url.getFile() in Line 137

devender-yadav commented 6 years ago

@Kinle url.getFile() will also return string with spaces converts to %20

ccarpenter04 commented 6 years ago

I've also encountered this issue, it'd be nice if someone could look into resolving it.