manifoldcf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karl Wright (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CONNECTORS-1275) ES connector doesn't deal with dates properly
Date Thu, 11 Feb 2016 00:21:18 GMT

     [ https://issues.apache.org/jira/browse/CONNECTORS-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Karl Wright updated CONNECTORS-1275:
------------------------------------
    Description: 
The ES connector does not fill in JSON dates in the proper format.  For example:

{code}
{
  "took": 4,
  "timed_out": false,
  "_shards": {
    "total": 6,
    "successful": 6,
    "failed": 0
  },
  "hits": {
    "total": 1,
    "max_score": 0.15342641,
    "hits": [
      {
        "_index": "index",
        "_type": "sharepoint",
        "_id": "http://sample.net/Lists/mylist/DispForm.aspx?ID=1",
        "_score": 0.15342641,
        "_source": {
          "Modified": "2016-02-09 12:35:56", // <--- Wrong type, should be Date
          "App Created By": "",
          "GUID": "{D233EA70-CFA7-42DD-8243-AG5BDA3D475B}",
          "Title": "lorem ipsum bacon",
          "Edit": "",
          "App Modified By": "",
          "Attachments": "0",
          "Item Child Count": "",
          "Created": "2016-02-09 12:35:56",
          "Modified By": "",
          "Folder Child Count": "",
          "Type": "",
          "Version": "",
          "Content Type": "", // <-- Missing
          "Created By": "", // <- Missing
          "ID": "1",
          "allow_token_document": "AD+Authority+Group:",
          "deny_token_document": "AD+Authority+Group:DEAD_AUTHORITY",
          "allow_token_share": "__nosecurity__",
          "deny_token_share": "__nosecurity__",
          "allow_token_parent": "__nosecurity__",
          "deny_token_parent": "__nosecurity__",
          "contentfield": ""
        }
      }
    ]
  }
}
{code}

Not sure what the proper format is yet. [~AndreyL], can you fill this in?


  was:
The ES connector does not fill in JSON dates in the proper format.  For example:

{code}
{
  "took": 4,
  "timed_out": false,
  "_shards": {
    "total": 6,
    "successful": 6,
    "failed": 0
  },
  "hits": {
    "total": 1,
    "max_score": 0.15342641,
    "hits": [
      {
        "_index": "index",
        "_type": "sharepoint",
        "_id": "http://sample.net/Lists/mylist/DispForm.aspx?ID=1",
        "_score": 0.15342641,
        "_source": {
          "Modified": "2016-02-09 12:35:56", // <--- Wrong type, should be Date
          "App Created By": "",
          "GUID": "{D233EA70-CFA7-42DD-8243-AG5BDA3D475B}",
          "Title": "lorem ipsum bacon",
          "Edit": "",
          "App Modified By": "",
          "Attachments": "0",
          "Item Child Count": "",
          "Created": "2016-02-09 12:35:56",
          "Modified By": "",
          "Folder Child Count": "",
          "Type": "",
          "Version": "",
          "Content Type": "", // <-- Missing
          "Created By": "", // <- Missing
          "ID": "1",
          "allow_token_document": "AD+Authority+Group:",
          "deny_token_document": "AD+Authority+Group:DEAD_AUTHORITY",
          "allow_token_share": "__nosecurity__",
          "deny_token_share": "__nosecurity__",
          "allow_token_parent": "__nosecurity__",
          "deny_token_parent": "__nosecurity__",
          "contentfield": ""
        }
      }
    ]
  }
}
{code}

Not sure what the proper format is yet.



> ES connector doesn't deal with dates properly
> ---------------------------------------------
>
>                 Key: CONNECTORS-1275
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-1275
>             Project: ManifoldCF
>          Issue Type: Bug
>          Components: Elastic Search connector
>    Affects Versions: ManifoldCF 2.3
>            Reporter: Karl Wright
>            Assignee: Karl Wright
>             Fix For: ManifoldCF 2.4
>
>
> The ES connector does not fill in JSON dates in the proper format.  For example:
> {code}
> {
>   "took": 4,
>   "timed_out": false,
>   "_shards": {
>     "total": 6,
>     "successful": 6,
>     "failed": 0
>   },
>   "hits": {
>     "total": 1,
>     "max_score": 0.15342641,
>     "hits": [
>       {
>         "_index": "index",
>         "_type": "sharepoint",
>         "_id": "http://sample.net/Lists/mylist/DispForm.aspx?ID=1",
>         "_score": 0.15342641,
>         "_source": {
>           "Modified": "2016-02-09 12:35:56", // <--- Wrong type, should be Date
>           "App Created By": "",
>           "GUID": "{D233EA70-CFA7-42DD-8243-AG5BDA3D475B}",
>           "Title": "lorem ipsum bacon",
>           "Edit": "",
>           "App Modified By": "",
>           "Attachments": "0",
>           "Item Child Count": "",
>           "Created": "2016-02-09 12:35:56",
>           "Modified By": "",
>           "Folder Child Count": "",
>           "Type": "",
>           "Version": "",
>           "Content Type": "", // <-- Missing
>           "Created By": "", // <- Missing
>           "ID": "1",
>           "allow_token_document": "AD+Authority+Group:",
>           "deny_token_document": "AD+Authority+Group:DEAD_AUTHORITY",
>           "allow_token_share": "__nosecurity__",
>           "deny_token_share": "__nosecurity__",
>           "allow_token_parent": "__nosecurity__",
>           "deny_token_parent": "__nosecurity__",
>           "contentfield": ""
>         }
>       }
>     ]
>   }
> }
> {code}
> Not sure what the proper format is yet. [~AndreyL], can you fill this in?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message