pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/opensourceBIM/BIMserver/pull/1368

global-94620c216484da1f.css" /> Issue #1353, fixed NullCall in GetProjectByUuidDatabaseAction.java by LordofthePickle · Pull Request #1368 · opensourceBIM/BIMserver · GitHub
Skip to content

Issue #1353, fixed NullCall in GetProjectByUuidDatabaseAction.java#1368

Open
LordofthePickle wants to merge 1 commit intoopensourceBIM:masterfrom
LordofthePickle:issue#1359-NullCall_GetProjectByUuidDatabaseAction
Open

Issue #1353, fixed NullCall in GetProjectByUuidDatabaseAction.java#1368
LordofthePickle wants to merge 1 commit intoopensourceBIM:masterfrom
LordofthePickle:issue#1359-NullCall_GetProjectByUuidDatabaseAction

Conversation

@LordofthePickle
Copy link
Contributor

This commit is aimed towards fixing Issue #1353. In it, two files are changed, DatabaseSession.java and GetProjectByUuidDatabaseAction.java. The former introduces a new queryUuid() method which follows the previous query() method; however, it maps the IdEObject value to a uuid key (this is aimed to improve the O time complexity by allowing for the use of .contains within a hashmap in GetProjectByUuidDatabaseAction.execute()). Furthermore, if wanted, this function can also be used for other objects if one needs to query for a uuid mapping. In the latter, logic is added to call this new queryUuid() method, perform authentication checks, make a uuid comparison to find a potential match, and throw an exception if something goes wrong (i.e. authentication, project not found, or invalid input).

…ction.java

In this commit, a new query method was added to DatabaseSession.java
which returns a hashmap of an IdEObject value with a UUID key (this
allows for a faster run time via using HashMap.contains()
and allows for the use of this query with other IdEObjects).
In GetProjectByUuidDatabaseAction.java, logic was added to
execute the new queryUuid() method while also performing
authorization checks.

Reported-By: zaqifathis
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.

1 participant

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy