Comments (5)
Hey, i wanna fix this. Can I get some direction to do this?
from polypheny-db.
hi, I'm not sure about the progress of this project, but I'm very interested in it. My proposal is to first validate user input when adding a data source and prevent users from using reserved characters (such as ) as table names.
To address this concern, a validation rule supposed to be added to the addAdapter method of Crud.java. Specifically, before proceeding with the adapter addition process, the method checks if the unique name of the adapter is "".
AdapterModel a = gson.fromJson(body, AdapterModel.class); if (a.uniqueName.equals("*")) { ctx.json(new Result("Invalid adapter name: '*' is not allowed").setSuccess(false)); return; }
If it is, the method returns a Result object containing an appropriate error message indicating that creating an adapter with the name "" is not allowed. This validation rule ensures that no new entity named "" is created in the public schema.Hope my comment can receive further guidance and feedback for ongoing improvement;)
from polypheny-db.
@hennlo So what is the objective now, not allowing * (asterix) or implement the logic to select all the available db in the schema
If possible assign this issue to me I would be happy to contribute
from polypheny-db.
The issue is as pointed out by @dengjuan0721 that an * or other reserved keywords like already existing tables_names in that schema may break the entire schema. Therefore the input should be validated.
from polypheny-db.
My basic solution is provided in #479
Please review the proposed solution at your convenience so I can get some instruction in detail
from polypheny-db.
Related Issues (20)
- Configurable Container Registry & Artifact Repositories
- Allow Wildcards or 'All Tables' specification when adding Data Sources HOT 4
- Add 'Test Connection' on Data Sources HOT 3
- ODBC driver for Polypheny HOT 1
- Polypheny to ODBC adapter
- GIS capabilities
- Clarification and Documentation Request on Cross-Model Queries HOT 2
- Error with Launching Polypheny-DB: Error message about "Something went wrong while restoring query interfaces from the catalog." HOT 5
- Dynamic Reconfiguration for Any Adapter Integration in Polypheny HOT 2
- Issue: Unique Name Field Rejects Valid Input HOT 1
- port 4200 is already in use HOT 2
- Adding Swagger to the backend
- Duplicate registered cypher operator HOT 1
- Jupyter Plugin Initialization Failure in Polypheny DB Environment HOT 5
- Add "Indexes" Document
- Tutorial HOT 1
- Added namespace relationships in Polypheny documentation HOT 1
- Adding new tests for other functions of RequestParser.java file in Http-interface plugin and refactoring the old ones
- Adding tests for the Rest.java file in rest-interface.
- UI display error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from polypheny-db.