[JBoss JIRA] (ARTIF-633) Work around RESTEasy issues affecting batch upload support in Wildfly
by Brett Meyer (JIRA)
[ https://issues.jboss.org/browse/ARTIF-633?page=com.atlassian.jira.plugin.... ]
Brett Meyer closed ARTIF-633.
-----------------------------
Resolution: Out of Date
For now, simply downgraded the RESTEasy dep versions
> Work around RESTEasy issues affecting batch upload support in Wildfly
> ---------------------------------------------------------------------
>
> Key: ARTIF-633
> URL: https://issues.jboss.org/browse/ARTIF-633
> Project: Artificer
> Issue Type: Bug
> Reporter: Brett Meyer
> Assignee: Brett Meyer
>
> RESTEASY-1119 affects batch upload support in Wildfly. Part of the reason is that we're using deprecated code (ClientExecutor, etc.). As suggested, something like the following is a workaround:
> {code}
> ResteasyProviderFactory factory = ResteasyProviderFactory.getInstance();
> ResteasyProviderFactory.pushContext(javax.ws.rs.ext.Providers.class, factory);
> ResteasyClientBuilder resteasyClientBuilder = new
> ResteasyClientBuilder().providerFactory(factory);
> ResteasyClient client = resteasyClientBuilder.build();
> {code}
> But, that's only available in RE 3. We might have to pull the client-creation code into s-ramp-server/eap and s-ramp-server/wildfly (or upgrade wildfly in eap)
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 11 months
[JBoss JIRA] (ARTIF-625) Support Target#otherAttributes
by Brett Meyer (JIRA)
[ https://issues.jboss.org/browse/ARTIF-625?page=com.atlassian.jira.plugin.... ]
Brett Meyer resolved ARTIF-625.
-------------------------------
Fix Version/s: 0.8.0.Final
Resolution: Done
> Support Target#otherAttributes
> ------------------------------
>
> Key: ARTIF-625
> URL: https://issues.jboss.org/browse/ARTIF-625
> Project: Artificer
> Issue Type: Enhancement
> Reporter: Brett Meyer
> Assignee: Brett Meyer
> Fix For: 0.8.0.Final
>
>
> Target is currently mapped directly on the sramp:relationship node type, through the following:
> {code}
> - sramp:targetType (string) multiple
> - sramp:relationshipTarget (weakreference) multiple < 'sramp:baseArtifactType'
> {code}
> Instead, that needs pulled out into a separate sramp:target type. Then, also include the following, necessary for Target#otherAttributes:
> {code}
> - * (string)
> - * (string) multiple
> {code}
> Add support for storing Target#otherAttributes in the visitors. See Relationship#otherAttributes and SRAMP-622.
> This needs to wait till 1.0 as it's a breaking change in the CND.
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 11 months
[JBoss JIRA] (ARTIF-625) Support Target#otherAttributes
by Brett Meyer (JIRA)
[ https://issues.jboss.org/browse/ARTIF-625?page=com.atlassian.jira.plugin.... ]
Brett Meyer updated ARTIF-625:
------------------------------
Fix Version/s: (was: 1.0)
> Support Target#otherAttributes
> ------------------------------
>
> Key: ARTIF-625
> URL: https://issues.jboss.org/browse/ARTIF-625
> Project: Artificer
> Issue Type: Enhancement
> Reporter: Brett Meyer
> Assignee: Brett Meyer
>
> Target is currently mapped directly on the sramp:relationship node type, through the following:
> {code}
> - sramp:targetType (string) multiple
> - sramp:relationshipTarget (weakreference) multiple < 'sramp:baseArtifactType'
> {code}
> Instead, that needs pulled out into a separate sramp:target type. Then, also include the following, necessary for Target#otherAttributes:
> {code}
> - * (string)
> - * (string) multiple
> {code}
> Add support for storing Target#otherAttributes in the visitors. See Relationship#otherAttributes and SRAMP-622.
> This needs to wait till 1.0 as it's a breaking change in the CND.
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 11 months
[JBoss JIRA] (ARTIF-627) Re-work the S-RAMP->JCR query visitor using ModeShape JCR-JQOM
by Brett Meyer (JIRA)
[ https://issues.jboss.org/browse/ARTIF-627?page=com.atlassian.jira.plugin.... ]
Brett Meyer updated ARTIF-627:
------------------------------
Description:
SrampToJcrSql2QueryVisitor is extremely brittle and inflexible. See SRAMP-622 for an example. The following query is next to impossible:
/s-ramp/xsd/XsdDocument[relWithAttr[s-ramp:getRelationshipAttribute(., 'FooKey') = 'FooValue' and @FooProperty = 'FooValue']]
Note that the getRelationshipAttribute predicate function affects the relWithAttr *relationship* itself, while the @FooProperty check must go in the target artifact sub-query. Correctly handling this query will require a Builder pattern to be introduced.
Attempt to use ModeShape's JCR-JQOM:
https://docs.jboss.org/author/display/MODE40/JCR-JQOM
ModeShape also has a builder class, but it's not public and may pose additional issues.
{quote}
(10:00:16 AM) rhauch: brmeyer: well, it's not public: https://github.com/ModeShape/modeshape/blob/master/modeshape-jcr/src/main... and https://github.com/ModeShape/modeshape/blob/master/modeshape-jcr/src/test...
(10:01:39 AM) rhauch: brmeyer: that builder is somewhat limited, and it is really meant for hard-coded code. For example, there are places where you'd have to build strings (e.g., using "AS" for aliases)
{quote}
was:
SrampToJcrSql2QueryVisitor is extremely brittle and inflexible. See SRAMP-622 for an example. The following query is next to impossible:
/s-ramp/xsd/XsdDocument[relWithAttr[s-ramp:getRelationshipAttribute(., 'FooKey') = 'FooValue' and @FooProperty = 'FooValue']]
Note that the getRelationshipAttribute predicate function affects the relWithAttr *relationship* itself, while the @FooProperty check must go in the target artifact sub-query. Correctly handling this query will require a Builder pattern to be introduced.
Attempt to use ModeShape's JCR-JQOM:
https://docs.jboss.org/author/display/MODE40/JCR-JQOM
Also switch to using an Antlr grammar
ModeShape also has a builder class, but it's not public and may pose additional issues.
{quote}
(10:00:16 AM) rhauch: brmeyer: well, it's not public: https://github.com/ModeShape/modeshape/blob/master/modeshape-jcr/src/main... and https://github.com/ModeShape/modeshape/blob/master/modeshape-jcr/src/test...
(10:01:39 AM) rhauch: brmeyer: that builder is somewhat limited, and it is really meant for hard-coded code. For example, there are places where you'd have to build strings (e.g., using "AS" for aliases)
{quote}
> Re-work the S-RAMP->JCR query visitor using ModeShape JCR-JQOM
> --------------------------------------------------------------
>
> Key: ARTIF-627
> URL: https://issues.jboss.org/browse/ARTIF-627
> Project: Artificer
> Issue Type: Enhancement
> Reporter: Brett Meyer
> Assignee: Brett Meyer
>
> SrampToJcrSql2QueryVisitor is extremely brittle and inflexible. See SRAMP-622 for an example. The following query is next to impossible:
> /s-ramp/xsd/XsdDocument[relWithAttr[s-ramp:getRelationshipAttribute(., 'FooKey') = 'FooValue' and @FooProperty = 'FooValue']]
> Note that the getRelationshipAttribute predicate function affects the relWithAttr *relationship* itself, while the @FooProperty check must go in the target artifact sub-query. Correctly handling this query will require a Builder pattern to be introduced.
> Attempt to use ModeShape's JCR-JQOM:
> https://docs.jboss.org/author/display/MODE40/JCR-JQOM
> ModeShape also has a builder class, but it's not public and may pose additional issues.
> {quote}
> (10:00:16 AM) rhauch: brmeyer: well, it's not public: https://github.com/ModeShape/modeshape/blob/master/modeshape-jcr/src/main... and https://github.com/ModeShape/modeshape/blob/master/modeshape-jcr/src/test...
> (10:01:39 AM) rhauch: brmeyer: that builder is somewhat limited, and it is really meant for hard-coded code. For example, there are places where you'd have to build strings (e.g., using "AS" for aliases)
> {quote}
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 11 months