[
https://issues.apache.org/jira/browse/EAGLE-687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15782395#comment-15782395
]
Jayesh commented on EAGLE-687:
------------------------------
It would be lot of refactoring if we want to change the accept signature, that
take exact parameters to be placed in PreparedStatement.
so I have placed the easier solution where any value can be null and it will
still be able to add site entry.
created this PR for the fix: https://github.com/apache/eagle/pull/758, Please
take a look.
> When creating sites in UI and metadata storaged as jdbc, the field
> "Description" can't be null
> -----------------------------------------------------------------------------------------------
>
> Key: EAGLE-687
> URL: https://issues.apache.org/jira/browse/EAGLE-687
> Project: Eagle
> Issue Type: Bug
> Reporter: Lingang Deng
> Priority: Minor
> Fix For: v0.5.0
>
>
> When creating sites in UI and metadata storaged as jdbc, the field
> "Description" can't be null, or we will get error
> {code}
> ERROR [2016-10-26 15:54:24,554]
> org.apache.eagle.metadata.store.jdbc.JDBCMetadataMetadataStoreServiceImpl:
> Error to insert batch: INSERT INTO sites (siteid, sitename, description,
> createdtime, modifiedtime, uuid) VALUES (?, ?, ?, ?, ?, ?)
> ! java.sql.SQLException: No value specified for parameter 6
> {code}
> The filed "Description" is checked in the background. So whether this field
> can be empty or validated in the front end , it's elective.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)