RE: Discuss: Rest interface for UserRequestService

2013-01-28 Thread Jan Bernhardt
Hi Francesco,

> -Original Message-
> From: Francesco Chicchiriccò [mailto:ilgro...@apache.org]
> Sent: Freitag, 25. Januar 2013 17:08
> To: dev@syncope.apache.org
> Subject: Re: Discuss: Rest interface for UserRequestService
> 
> On 25/01/2013 16:56, Christian Schneider wrote:
> > When doing the CXF version of the UserRequestService I found that our
> > current UserRequestController does not really follow the rest ideas.
> >
> > The problem is that it does follow the idea of doing CRUD operations
> > on resources. Some methods work with userId others with requestId. So
> > for example the are create, update and delete operations but they do
> > not mean the UserRequest but the underlying user.
> >
> > So I worked out a new interface that purely works on UserRequest and
> > only supports POST, READ and DELETE. So basically if you want to
> > create or delete or update a user you will POST a UserRequestTO in all
> cases.
> 
> Problem: you've already made all these changes *without* discussing this
> before, 

IMHO I think it is OK to commit new features without discussing method 
signature in advanced. Most time it is not possible to think of best design in 
advanced, but only while implementing a feature it becomes clear how to 
optimize method signatures. Of course if I change something that effects other 
code also, this should be discusses previously. Do you expect all committers to 
start a discussion before they introduce a new method?

Since Core REST interface is an important topic for whole project we already 
agreed to discuss each REST interface one by one. But since new REST API will 
not be used in next syncope release I was expecting that it is more important 
to get a first (nice) implementation done and then start discussion and 
refactoring afterwards. As mentioned earlier, it is not easy to make a 
"perfect" design at first and then start a discussion.

WDYT?

> once again not taking into any account the domain requirements 

I don't understand this, can you please elaborate? Domain specific requirements 
are completely mapped. There is no functionality lost by making a service 
RESTful. IMHO I think it is best to preserve all current functionality while 
optimizing request behavior to best practices of used technology. Which domain 
requirement cannot be covered by using proper RESTful design?

> nor  the compatibility with existing components, but only the technology 
> aspects.

I also don't understand this. Could you please explain some more? We previously 
agreed, that new REST API does not need to be identically  with current REST 
URLs, only functional compatibility was required. That's why I started [1] to 
document how REST API will change from Spring to CXF migration. So people using 
their own Console client will have to migrate in any case. And if this is the 
case, why not using underlying technology according to best practices? This way 
we will avoid refactoring API at a later state, when we run into issues, that 
could have been avoided by directly applying best practices of used technology. 
Since we are using JAX-B and JAX-RS annotation in new interfaces, writing a 
custom client will become much easier, since client code can be generated based 
on annotations.

Best regards.
Jan

[1] 
https://cwiki.apache.org/confluence/display/SYNCOPE/REST+API+upgrade#RESTAPIupgrade-RoleService

> We must fix this ASAP.
> 
> Regards.
> 
> > I added constructors to the UserRequestTO to make the use cases simpler.
> >
> > request to create a user:  userRequestService.create(new
> > UserRequestTO(userTO)); request to update a user:
> > userRequestService.create(new UserRequestTO(userMod)); request to
> > delete a user:  userRequestService.create(new
> > UserRequestTO(userTO.getId()));
> >
> > So what do you think about this?
> >
> > The only thing I really struggled with is the old isCreateAllowed
> > method. I implemented this using @Options and return the boolean in a
> > custom header. I am not sure if this is really the best way to do this
> > but it follows the rest principles quite closely. The alternative
> > would be to do a get on a magic path like in the current spring
> > service.
> >
> > Best regards
> >
> > Christian
> >
> > --
> > Current Interface:
> > @RequestMapping(method = RequestMethod.POST, value = "/create")
> public
> > UserRequestTO create(@RequestBody final UserTO userTO);
> >
> > @RequestMapping(method = RequestMethod.POST, value = "/update")
> public
> > UserRequestTO update(@RequestBody final UserMod userMod);
> >
> > @RequestMapping(method = RequestMethod.GET, value =
> > "/delete/{userId}") public UserRequestTO
> > delete(@PathVariable("userId") final Long userId)
> >
> > @RequestMapping(method = RequestMethod.GET, value = "/list") public
> > List list();
> >
> > @RequestMapping(method = RequestMethod.GET, value =
> > "/read/{requestId}") public UserRequestTO
> > read(@PathVariable("requestId") final Long requestId);
> >
> >

Re: Discuss: Rest interface for UserRequestService

2013-01-28 Thread Francesco Chicchiriccò

On 28/01/2013 09:45, Jan Bernhardt wrote:

Hi Francesco,


-Original Message-
From: Francesco Chicchiriccò [mailto:ilgro...@apache.org]
Sent: Freitag, 25. Januar 2013 17:08
To: dev@syncope.apache.org
Subject: Re: Discuss: Rest interface for UserRequestService

On 25/01/2013 16:56, Christian Schneider wrote:

When doing the CXF version of the UserRequestService I found that our
current UserRequestController does not really follow the rest ideas.

The problem is that it does follow the idea of doing CRUD operations
on resources. Some methods work with userId others with requestId. So
for example the are create, update and delete operations but they do
not mean the UserRequest but the underlying user.

So I worked out a new interface that purely works on UserRequest and
only supports POST, READ and DELETE. So basically if you want to
create or delete or update a user you will POST a UserRequestTO in all cases.

cases.

Problem: you've already made all these changes *without* discussing this
before,

IMHO I think it is OK to commit new features without discussing method 
signature in advanced. Most time it is not possible to think of best design in 
advanced, but only while implementing a feature it becomes clear how to 
optimize method signatures. Of course if I change something that effects other 
code also, this should be discusses previously. Do you expect all committers to 
start a discussion before they introduce a new method?


Of course not, but the whole point was that such change *did* affected 
other code: console's Login page, in this case.



Since Core REST interface is an important topic for whole project we already agreed to 
discuss each REST interface one by one. But since new REST API will not be used in next 
syncope release I was expecting that it is more important to get a first (nice) 
implementation done and then start discussion and refactoring afterwards. As mentioned 
earlier, it is not easy to make a "perfect" design at first and then start a 
discussion.

WDYT?


I agree with this: the problem - now fixed, thanks Christian - was that 
the aforementioned refactoring did not consider the side effects on the 
admin console, leaving it completely inaccessible.

Maybe you don't realize the impact of this, but it was huge.

I am completely fine with improving API refactory, but I also think that 
we must *all* take care of the side effects of such actions.



once again not taking into any account the domain requirements

I don't understand this, can you please elaborate? Domain specific requirements 
are completely mapped. There is no functionality lost by making a service 
RESTful. IMHO I think it is best to preserve all current functionality while 
optimizing request behavior to best practices of used technology. Which domain 
requirement cannot be covered by using proper RESTful design?


I am referring to the match between proper RESTful design (i.e. how to 
give access to a service) and the service itself.
We can make a wonderful awarded RESTful interface, but if this doesn't 
cover the identity management use cases Syncope is meant to, such 
interface is useless.


Consider the discussion we've had recently about delete: RESTful best 
practice says "must return void", we need "must return delete entity". 
We ended up with "for anything but users and roles we will adhere 
completely to best practice, for users and roles the functional 
requirement is more weighted than pure best practice".

This is an example of how I'd think we should match these two aspects.


nor  the compatibility with existing components, but only the technology 
aspects.

I also don't understand this. Could you please explain some more? We previously 
agreed, that new REST API does not need to be identically  with current REST 
URLs, only functional compatibility was required. That's why I started [1] to 
document how REST API will change from Spring to CXF migration. So people using 
their own Console client will have to migrate in any case. And if this is the 
case, why not using underlying technology according to best practices? This way 
we will avoid refactoring API at a later state, when we run into issues, that 
could have been avoided by directly applying best practices of used technology.
Since we are using JAX-B and JAX-RS annotation in new interfaces, writing a 
custom client will become much easier, since client code can be generated based 
on annotations.


We already agreed on the migration path and [1] contains really nice and 
useful information for this purpose.
Problems arise when, with purpose of building the new REST interface, 
something breaks the old REST interface - that will stay as official 
interface for upcoming 1.1.0 as well.


As said above, the broken Login page was the trigger for my e-mail, not 
the proposal for changes to the new UserRequestInterface, not the fact 
that such proposal already modified all methods of the existing 
UserRequestController.


Regards.


[1

[jira] [Commented] (SYNCOPE-289) Prepare CXF Rest integration tests migration

2013-01-28 Thread JIRA

[ 
https://issues.apache.org/jira/browse/SYNCOPE-289?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13564151#comment-13564151
 ] 

Francesco Chicchiriccò commented on SYNCOPE-289:


Hi Andrei,
executing a single IT case is back, thanks.

About the jaxrs profile (with XML content type) I was able to run

mvn -Pjaxrs -Djaxrs.content.type=application/xml

even though I got 

Tests run: 99, Failures: 27, Errors: 31, Skipped: 0

Anyway, I guess this is the expected result anyhow, right?

Any news about the errors with JDK 1.7?

Thanks.

> Prepare CXF Rest integration tests migration
> 
>
> Key: SYNCOPE-289
> URL: https://issues.apache.org/jira/browse/SYNCOPE-289
> Project: Syncope
>  Issue Type: Sub-task
>  Components: console, core
>Reporter: Andrei Shakirin
>Assignee: Andrei Shakirin
> Fix For: 1.1.0
>
>
> Moving back to 1.1.0

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Comment Edited] (SYNCOPE-289) Prepare CXF Rest integration tests migration

2013-01-28 Thread JIRA

[ 
https://issues.apache.org/jira/browse/SYNCOPE-289?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13564151#comment-13564151
 ] 

Francesco Chicchiriccò edited comment on SYNCOPE-289 at 1/28/13 9:33 AM:
-

Hi Andrei,
executing a single IT case is back, thanks.

About the jaxrs profile (with XML content type) I was able to run

mvn -Pjaxrs -Djaxrs.content.type=application/xml

even though I got 

Tests run: 99, Failures: 27, Errors: 31, Skipped: 0

Anyway, I guess this is the expected result anyhow, right?

Thanks.

  was (Author: ilgrosso):
Hi Andrei,
executing a single IT case is back, thanks.

About the jaxrs profile (with XML content type) I was able to run

mvn -Pjaxrs -Djaxrs.content.type=application/xml

even though I got 

Tests run: 99, Failures: 27, Errors: 31, Skipped: 0

Anyway, I guess this is the expected result anyhow, right?

Any news about the errors with JDK 1.7?

Thanks.
  
> Prepare CXF Rest integration tests migration
> 
>
> Key: SYNCOPE-289
> URL: https://issues.apache.org/jira/browse/SYNCOPE-289
> Project: Syncope
>  Issue Type: Sub-task
>  Components: console, core
>Reporter: Andrei Shakirin
>Assignee: Andrei Shakirin
> Fix For: 1.1.0
>
>
> Moving back to 1.1.0

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (SYNCOPE-231) Using Standard JAX-RS API in Syncope (Replace Spring Webservice Stack with Apache CXF)

2013-01-28 Thread JIRA

[ 
https://issues.apache.org/jira/browse/SYNCOPE-231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13564152#comment-13564152
 ] 

Francesco Chicchiriccò commented on SYNCOPE-231:


Andrei,
any news about the errors with JDK 1.7?


> Using Standard JAX-RS API in Syncope (Replace Spring Webservice Stack with 
> Apache CXF)
> --
>
> Key: SYNCOPE-231
> URL: https://issues.apache.org/jira/browse/SYNCOPE-231
> Project: Syncope
>  Issue Type: Improvement
>  Components: console, core
>Reporter: Jan Bernhardt
>Assignee: Jan Bernhardt
> Fix For: 1.2.0
>
> Attachments: TaskService.patch
>
>
> Current REST Interfaces are based on Spring Webservice framework. 
> Goal of this task is to replace Spring with CXF and to relay on JAX-B and 
> JAX-RS annotations rather then Spring annotations.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (SYNCOPE-289) Prepare CXF Rest integration tests migration

2013-01-28 Thread Andrei Shakirin (JIRA)

[ 
https://issues.apache.org/jira/browse/SYNCOPE-289?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13564155#comment-13564155
 ] 

Andrei Shakirin commented on SYNCOPE-289:
-

Hi Francesco,

Yep, it is expected at the moment. Currently only ConfigurationITTestCaseJAXRS 
is green.
As I wrote in my commit comment, JAXRS tests are checked-in despite errors to 
be visible for all committers. 
We are working to fix them ASAP.
Currently you can use ConfigurationITTestCaseJAXRS to experiment with 
conetntType.

Regards,
Andrei.

> Prepare CXF Rest integration tests migration
> 
>
> Key: SYNCOPE-289
> URL: https://issues.apache.org/jira/browse/SYNCOPE-289
> Project: Syncope
>  Issue Type: Sub-task
>  Components: console, core
>Reporter: Andrei Shakirin
>Assignee: Andrei Shakirin
> Fix For: 1.1.0
>
>
> Moving back to 1.1.0

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[RESULT] [VOTE] Apache Syncope 1.0.5

2013-01-28 Thread Fabio Martelli
Hi all,
after 72 hours, the vote for Syncope 1.0.5 [1] *passes*
with 6 PMC + 3 non-PMC votes.

+1 (PMC / binding)
* Fabio Martelli
* Jean-Baptiste Onofré
* Francesco Chicchiriccò
* Massimiliano Perrone
* Marco Di Sabatino
* Colm O hEigeartaigh
* Jan Bernhardt
* Christian Schneider

+1 (non binding)
 * Denis Signoretto

Thanks to everyone participating.

I will now copy this release to Syncope' dist directory and promote the 
artifacts to the central Maven repository.

Best regards.

[1] 
http://syncope-dev.1063484.n5.nabble.com/VOTE-Apache-Syncope-1-0-5-td5712232.html

[jira] [Created] (SYNCOPE-291) Move NotFoundException to core.persistence.dao

2013-01-28 Thread Christian Schneider (JIRA)
Christian Schneider created SYNCOPE-291:
---

 Summary: Move NotFoundException to core.persistence.dao
 Key: SYNCOPE-291
 URL: https://issues.apache.org/jira/browse/SYNCOPE-291
 Project: Syncope
  Issue Type: Improvement
  Components: core
Affects Versions: 1.1.0
Reporter: Christian Schneider
Assignee: Christian Schneider
 Fix For: 1.1.0


The NotFoundException is currently located in util which is not such a
good place as it is part of the dao as well as service interfaces. 

Like discussed on the dev list we agree to move this exception to 
core.persistence.dao.
For the rest services the exception will be mapped to the rs.NotFoundException.



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[RESULT] [VOTE] Apache Syncope 1.0.5

2013-01-28 Thread Fabio Martelli
Errata corrige ...

Hi all,
after 72 hours, the vote for Syncope 1.0.5 [1] *passes*
with 6 PMC + 3 non-PMC votes.

+1 (PMC / binding)
* Fabio Martelli
* Jean-Baptiste Onofré
* Francesco Chicchiriccò
* Massimiliano Perrone
* Marco Di Sabatino
* Colm O hEigeartaigh

+1 (non binding)
 * Denis Signoretto
* Jan Bernhardt
* Christian Schneider

Thanks to everyone participating.

I will now copy this release to Syncope' dist directory and promote the 
artifacts to the central Maven repository.

Best regards.

[1] 
http://syncope-dev.1063484.n5.nabble.com/VOTE-Apache-Syncope-1-0-5-td5712232.html

Re: Discuss: Moving core.util.NotFoundException

2013-01-28 Thread Christian Schneider
Ok. So I will move the NotFoundException to core.persistence.dao  and
make it a RuntimeException.

I created issue https://issues.apache.org/jira/browse/SYNCOPE-291 to
track this.

Christian

On 24.01.2013 12:33, Francesco Chicchiriccò wrote:
> On 24/01/2013 12:25, Christian Schneider wrote:
>> The NotFoundException is currently located in util which is not such a
>> good place as it is part of the dao as well as service interfaces.
>>
>> So I propose to move this exception either to
>> 1. common.services
>>  In this case the NotFoundException could also be used in the
>> service
>> interfaces. So we would not have to handle the http specific not found
>> exception
>> 2. core.persistence.dao
>>  In this case the NotFoundException would be private to the core and
>> we would have to use e.g. the jax rs NotFoundException in the service
>> interfaces
>
> I would opt for (2), guessing that "jax rs NotFoundException" has some
> sort of more natural mapping to HTTP 404.
>
>> I also propose to change the exception to be unchecked to not force each
>> caller to catch it.
>
> +1
>
> Regards.
>


-- 
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
http://www.talend.com



Re: [VOTE] Apache Syncope 1.0.5

2013-01-28 Thread Fabio Martelli
Sorry again, I have drunk too much beer this week end 

Hi all,
after 72 hours, the vote for Syncope 1.0.5 [1] *passes*
with 7 PMC + 2 non-PMC votes.

+1 (PMC / binding)
* Fabio Martelli
* Jean-Baptiste Onofré
* Francesco Chicchiriccò
* Massimiliano Perrone
* Marco Di Sabatino
* Colm O hEigeartaigh
* Jan Bernhardt

+1 (non binding)
* Denis Signoretto
* Christian Schneider

Thanks to everyone participating.

I will now copy this release to Syncope' dist directory and promote the 
artifacts to the central Maven repository.

Best regards.

[1] 
http://syncope-dev.1063484.n5.nabble.com/VOTE-Apache-Syncope-1-0-5-td5712232.html

Re: NPE in Console

2013-01-28 Thread Francesco Chicchiriccò

On 27/01/2013 18:00, Colm O hEigeartaigh wrote:

Hi Francesco,

I think this may be a genuine bug...I can reproduce the problem by
generating a new archetype for 1.1.0-SNAPSHOT, and copying the
"context.xml" from "core/src/main/resources" to "core/src/test/resources"
and then editing it to remove the "SyncPolicy" definition:



Starting the console in embedded mode gives the NPE in the "Configuration"
tab as I mentioned earlier. I should be able to start Syncope without
defining a SyncPolicy right?


Hi Colm,
I was just able to reproduce the bug you've reported above (only a minor 
typo, content.xml not context.xml).


I will check this on the 1_0_X and then open an issue.
Thanks for reporting.

Regards.


On Sun, Jan 27, 2013 at 2:10 PM, Francesco Chicchiriccò 
Colm O hEigeartaigh  ha scritto:


Hi guys,

I am getting a NPE in the console when I click on the "Configuration"
tab
using the latest trunk code:

Root cause:

java.lang.IllegalArgumentException: Argument 'modelObject' may not be
null.
 at org.apache.wicket.util.lang.Args.notNull(Args.java:41)
at org.apache.wicket.model.ChainingModel.(ChainingModel.java:44)
at
org.apache.wicket.model.CompoundPropertyModel.(CompoundPropertyModel.java:61)
at
org.apache.syncope.console.pages.panels.PoliciesPanel$PolicyDataProvider.model(PoliciesPanel.java:301)
at
org.apache.syncope.console.pages.panels.PoliciesPanel$PolicyDataProvider.model(PoliciesPanel.java:269)

Colm.

Check your content.xml or database. If possible start from an empty db by
copying the content.xml from SVN.

Due to recent refactory, in fact, many classes were moved or had their
name changed.

Hope this helps.
Regards.


--
Francesco Chicchiriccò

ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member
http://people.apache.org/~ilgrosso/



[jira] [Commented] (SYNCOPE-231) Using Standard JAX-RS API in Syncope (Replace Spring Webservice Stack with Apache CXF)

2013-01-28 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/SYNCOPE-231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13564165#comment-13564165
 ] 

Hudson commented on SYNCOPE-231:


Integrated in Syncope-trunk #14 (See 
[https://builds.apache.org/job/Syncope-trunk/14/])
SYNCOPE-231 Adding annotations to UserService interface for CXF (Revision 
1439306)

 Result = SUCCESS
cschneider : 
Files : 
* 
/syncope/trunk/common/src/main/java/org/apache/syncope/common/services/UserService.java


> Using Standard JAX-RS API in Syncope (Replace Spring Webservice Stack with 
> Apache CXF)
> --
>
> Key: SYNCOPE-231
> URL: https://issues.apache.org/jira/browse/SYNCOPE-231
> Project: Syncope
>  Issue Type: Improvement
>  Components: console, core
>Reporter: Jan Bernhardt
>Assignee: Jan Bernhardt
> Fix For: 1.2.0
>
> Attachments: TaskService.patch
>
>
> Current REST Interfaces are based on Spring Webservice framework. 
> Goal of this task is to replace Spring with CXF and to relay on JAX-B and 
> JAX-RS annotations rather then Spring annotations.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (SYNCOPE-289) Prepare CXF Rest integration tests migration

2013-01-28 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/SYNCOPE-289?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13564166#comment-13564166
 ] 

Hudson commented on SYNCOPE-289:


Integrated in Syncope-trunk #14 (See 
[https://builds.apache.org/job/Syncope-trunk/14/])
[SYNCOPE-289] Fixed parent class (Revision 1439316)
[SYNCOPE-289] JAXRS integration tests (currently not all tests are green, but 
shared to be visible for other committers) (Revision 1439300)

 Result = SUCCESS
ashakirin : 
Files : 
* 
/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/jaxrs/ConnectorTestITCaseJAXRS.java

ashakirin : 
Files : 
* 
/syncope/trunk/client/src/main/java/org/apache/syncope/client/rest/utils/RestClientExceptionMapper.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/rest/utils/RestServiceExceptionMapper.java
* 
/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/jaxrs/ConnectorTestITCaseJAXRS.java
* 
/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/jaxrs/EntitlementTestITCaseJAXRS.java
* 
/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/jaxrs/LoggerTestITCaseJAXRS.java
* 
/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/jaxrs/NotificationTestITCaseJAXRS.java
* 
/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/jaxrs/PolicyTestITCaseJAXRS.java
* 
/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/jaxrs/ReportTestITCaseJAXRS.java
* 
/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/jaxrs/ResourceTestITCaseJAXRS.java
* 
/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/jaxrs/RoleTestITCaseJAXRS.java
* 
/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/jaxrs/SchemaTestITCaseJAXRS.java
* 
/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/jaxrs/UserRequestTestITCaseJAXRS.java


> Prepare CXF Rest integration tests migration
> 
>
> Key: SYNCOPE-289
> URL: https://issues.apache.org/jira/browse/SYNCOPE-289
> Project: Syncope
>  Issue Type: Sub-task
>  Components: console, core
>Reporter: Andrei Shakirin
>Assignee: Andrei Shakirin
> Fix For: 1.1.0
>
>
> Moving back to 1.1.0

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


RE: Discuss: Rest interface for UserRequestService

2013-01-28 Thread Jan Bernhardt
OK, thanks for feedback Francesco!

So your concern/frustration was primarily about insufficient testing (and thus 
breaking console) rather than new API design.
I completely agree with you.

Best regards.
Jan


> -Original Message-
> From: Francesco Chicchiriccò [mailto:ilgro...@apache.org]
> Sent: Montag, 28. Januar 2013 10:13
> To: dev@syncope.apache.org
> Subject: Re: Discuss: Rest interface for UserRequestService
> 
> On 28/01/2013 09:45, Jan Bernhardt wrote:
> > Hi Francesco,
> >
> >> -Original Message-
> >> From: Francesco Chicchiriccò [mailto:ilgro...@apache.org]
> >> Sent: Freitag, 25. Januar 2013 17:08
> >> To: dev@syncope.apache.org
> >> Subject: Re: Discuss: Rest interface for UserRequestService
> >>
> >> On 25/01/2013 16:56, Christian Schneider wrote:
> >>> When doing the CXF version of the UserRequestService I found that
> >>> our current UserRequestController does not really follow the rest ideas.
> >>>
> >>> The problem is that it does follow the idea of doing CRUD operations
> >>> on resources. Some methods work with userId others with requestId.
> >>> So for example the are create, update and delete operations but they
> >>> do not mean the UserRequest but the underlying user.
> >>>
> >>> So I worked out a new interface that purely works on UserRequest and
> >>> only supports POST, READ and DELETE. So basically if you want to
> >>> create or delete or update a user you will POST a UserRequestTO in all
> cases.
> >> cases.
> >>
> >> Problem: you've already made all these changes *without* discussing
> >> this before,
> > IMHO I think it is OK to commit new features without discussing method
> signature in advanced. Most time it is not possible to think of best design in
> advanced, but only while implementing a feature it becomes clear how to
> optimize method signatures. Of course if I change something that effects
> other code also, this should be discusses previously. Do you expect all
> committers to start a discussion before they introduce a new method?
> 
> Of course not, but the whole point was that such change *did* affected
> other code: console's Login page, in this case.
> 
> > Since Core REST interface is an important topic for whole project we
> already agreed to discuss each REST interface one by one. But since new
> REST API will not be used in next syncope release I was expecting that it is
> more important to get a first (nice) implementation done and then start
> discussion and refactoring afterwards. As mentioned earlier, it is not easy to
> make a "perfect" design at first and then start a discussion.
> >
> > WDYT?
> 
> I agree with this: the problem - now fixed, thanks Christian - was that the
> aforementioned refactoring did not consider the side effects on the admin
> console, leaving it completely inaccessible.
> Maybe you don't realize the impact of this, but it was huge.
> 
> I am completely fine with improving API refactory, but I also think that we
> must *all* take care of the side effects of such actions.
> 
> >> once again not taking into any account the domain requirements
> > I don't understand this, can you please elaborate? Domain specific
> requirements are completely mapped. There is no functionality lost by
> making a service RESTful. IMHO I think it is best to preserve all current
> functionality while optimizing request behavior to best practices of used
> technology. Which domain requirement cannot be covered by using proper
> RESTful design?
> 
> I am referring to the match between proper RESTful design (i.e. how to give
> access to a service) and the service itself.
> We can make a wonderful awarded RESTful interface, but if this doesn't
> cover the identity management use cases Syncope is meant to, such
> interface is useless.
> 
> Consider the discussion we've had recently about delete: RESTful best
> practice says "must return void", we need "must return delete entity".
> We ended up with "for anything but users and roles we will adhere
> completely to best practice, for users and roles the functional requirement is
> more weighted than pure best practice".
> This is an example of how I'd think we should match these two aspects.
> 
> >> nor  the compatibility with existing components, but only the technology
> aspects.
> > I also don't understand this. Could you please explain some more? We
> previously agreed, that new REST API does not need to be identically  with
> current REST URLs, only functional compatibility was required. That's why I
> started [1] to document how REST API will change from Spring to CXF
> migration. So people using their own Console client will have to migrate in
> any case. And if this is the case, why not using underlying technology
> according to best practices? This way we will avoid refactoring API at a later
> state, when we run into issues, that could have been avoided by directly
> applying best practices of used technology.
> > Since we are using JAX-B and JAX-RS annotation in new interfaces, wr

[jira] [Commented] (SYNCOPE-231) Using Standard JAX-RS API in Syncope (Replace Spring Webservice Stack with Apache CXF)

2013-01-28 Thread Andrei Shakirin (JIRA)

[ 
https://issues.apache.org/jira/browse/SYNCOPE-231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13564170#comment-13564170
 ] 

Andrei Shakirin commented on SYNCOPE-231:
-

Hi Francesco,

I have used only JDK 1.6 for my tests before. Will check it for 1.7 as well.

Andrei.

> Using Standard JAX-RS API in Syncope (Replace Spring Webservice Stack with 
> Apache CXF)
> --
>
> Key: SYNCOPE-231
> URL: https://issues.apache.org/jira/browse/SYNCOPE-231
> Project: Syncope
>  Issue Type: Improvement
>  Components: console, core
>Reporter: Jan Bernhardt
>Assignee: Jan Bernhardt
> Fix For: 1.2.0
>
> Attachments: TaskService.patch
>
>
> Current REST Interfaces are based on Spring Webservice framework. 
> Goal of this task is to replace Spring with CXF and to relay on JAX-B and 
> JAX-RS annotations rather then Spring annotations.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Created] (SYNCOPE-292) NPE when accessing Configuration page with no global sync policy

2013-01-28 Thread JIRA
Francesco Chicchiriccò created SYNCOPE-292:
--

 Summary: NPE when accessing Configuration page with no global sync 
policy
 Key: SYNCOPE-292
 URL: https://issues.apache.org/jira/browse/SYNCOPE-292
 Project: Syncope
  Issue Type: Bug
  Components: console
Affects Versions: 1.1.0
Reporter: Francesco Chicchiriccò
 Fix For: 1.1.0


As reported in ML [1], there is an issue when no global sync policy exists.

[1] http://syncope-dev.1063484.n5.nabble.com/NPE-in-Console-tt5712327.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


Re: NPE in Console

2013-01-28 Thread Francesco Chicchiriccò

On 28/01/2013 10:55, Francesco Chicchiriccò wrote:

On 27/01/2013 18:00, Colm O hEigeartaigh wrote:

Hi Francesco,

I think this may be a genuine bug...I can reproduce the problem by
generating a new archetype for 1.1.0-SNAPSHOT, and copying the
"context.xml" from "core/src/main/resources" to 
"core/src/test/resources"

and then editing it to remove the "SyncPolicy" definition:

specification="%3Corg.apache.syncope.common.types.SyncPolicySpec%2F%3E"/> 



Starting the console in embedded mode gives the NPE in the 
"Configuration"

tab as I mentioned earlier. I should be able to start Syncope without
defining a SyncPolicy right?


Hi Colm,
I was just able to reproduce the bug you've reported above (only a 
minor typo, content.xml not context.xml).


I will check this on the 1_0_X and then open an issue.


No problems with 1.0.6-SNAPSHOT: guess then that this bug was introduced 
by new rest clients.


I've opened SYNCOPE-292.

Regards.

On Sun, Jan 27, 2013 at 2:10 PM, Francesco Chicchiriccò 



Colm O hEigeartaigh  ha scritto:


Hi guys,

I am getting a NPE in the console when I click on the "Configuration"
tab
using the latest trunk code:

Root cause:

java.lang.IllegalArgumentException: Argument 'modelObject' may not be
null.
 at org.apache.wicket.util.lang.Args.notNull(Args.java:41)
at org.apache.wicket.model.ChainingModel.(ChainingModel.java:44)
at
org.apache.wicket.model.CompoundPropertyModel.(CompoundPropertyModel.java:61) 


at
org.apache.syncope.console.pages.panels.PoliciesPanel$PolicyDataProvider.model(PoliciesPanel.java:301) 


at
org.apache.syncope.console.pages.panels.PoliciesPanel$PolicyDataProvider.model(PoliciesPanel.java:269) 



Colm.
Check your content.xml or database. If possible start from an empty 
db by

copying the content.xml from SVN.

Due to recent refactory, in fact, many classes were moved or had their
name changed.

Hope this helps.
Regards.



--
Francesco Chicchiriccò

ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member
http://people.apache.org/~ilgrosso/



[jira] [Created] (SYNCOPE-293) Modify version layout

2013-01-28 Thread Massimiliano Perrone (JIRA)
Massimiliano Perrone created SYNCOPE-293:


 Summary: Modify version layout
 Key: SYNCOPE-293
 URL: https://issues.apache.org/jira/browse/SYNCOPE-293
 Project: Syncope
  Issue Type: Improvement
  Components: console
Reporter: Massimiliano Perrone
Assignee: Massimiliano Perrone
 Fix For: 1.1.0


Actual layout has a static labels to core and console version.
Add a new Link to open a ModalPage with version and other project information 
(eg. link to license)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


Re: NPE in Console

2013-01-28 Thread Colm O hEigeartaigh
> No problems with 1.0.6-SNAPSHOT: guess then that this bug was introduced
by new rest clients.

> I've opened SYNCOPE-292.

Thanks!

Colm.

On Mon, Jan 28, 2013 at 10:08 AM, Francesco Chicchiriccò <
ilgro...@apache.org> wrote:

> On 28/01/2013 10:55, Francesco Chicchiriccň wrote:
>
>> On 27/01/2013 18:00, Colm O hEigeartaigh wrote:
>>
>>> Hi Francesco,
>>>
>>> I think this may be a genuine bug...I can reproduce the problem by
>>> generating a new archetype for 1.1.0-SNAPSHOT, and copying the
>>> "context.xml" from "core/src/main/resources" to "core/src/test/resources"
>>> and then editing it to remove the "SyncPolicy" definition:
>>>
>>> >> type="GLOBAL_SYNC"
>>>
>>> specification="%3Corg.apache.**syncope.common.types.**SyncPolicySpec%2F%3E"/>
>>>
>>>
>>> Starting the console in embedded mode gives the NPE in the
>>> "Configuration"
>>> tab as I mentioned earlier. I should be able to start Syncope without
>>> defining a SyncPolicy right?
>>>
>>
>> Hi Colm,
>> I was just able to reproduce the bug you've reported above (only a minor
>> typo, content.xml not context.xml).
>>
>> I will check this on the 1_0_X and then open an issue.
>>
>
> No problems with 1.0.6-SNAPSHOT: guess then that this bug was introduced
> by new rest clients.
>
> I've opened SYNCOPE-292.
>
> Regards.
>
>
>  On Sun, Jan 27, 2013 at 2:10 PM, Francesco Chicchiriccň <
>>> ilgro...@apache.org wrote:
>>>
>>>  Colm O hEigeartaigh  ha scritto:

  Hi guys,
>
> I am getting a NPE in the console when I click on the "Configuration"
> tab
> using the latest trunk code:
>
> Root cause:
>
> java.lang.**IllegalArgumentException: Argument 'modelObject' may not
> be
> null.
>  at org.apache.wicket.util.lang.**Args.notNull(Args.java:41)
> at org.apache.wicket.model.**ChainingModel.(**
> ChainingModel.java:44)
> at
> org.apache.wicket.model.**CompoundPropertyModel.(**CompoundPropertyModel.java:61)
>
> at
> org.apache.syncope.console.**pages.panels.PoliciesPanel$**
> PolicyDataProvider.model(**PoliciesPanel.java:301)
> at
> org.apache.syncope.console.**pages.panels.PoliciesPanel$**
> PolicyDataProvider.model(**PoliciesPanel.java:269)
>
> Colm.
>
 Check your content.xml or database. If possible start from an empty db
 by
 copying the content.xml from SVN.

 Due to recent refactory, in fact, many classes were moved or had their
 name changed.

 Hope this helps.
 Regards.

>>>
>>  --
> Francesco Chicchiriccň
>
>
> ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member
> http://people.apache.org/~**ilgrosso/
>
>


-- 
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com


[jira] [Updated] (SYNCOPE-293) Modify version layout

2013-01-28 Thread Massimiliano Perrone (JIRA)

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

Massimiliano Perrone updated SYNCOPE-293:
-

Description: 
Current layout has a static labels to core and console version.
Add a new Link to open a ModalPage with version and other project information 
(eg. link to license)

  was:
Actual layout has a static labels to core and console version.
Add a new Link to open a ModalPage with version and other project information 
(eg. link to license)


> Modify version layout
> -
>
> Key: SYNCOPE-293
> URL: https://issues.apache.org/jira/browse/SYNCOPE-293
> Project: Syncope
>  Issue Type: Improvement
>  Components: console
>Reporter: Massimiliano Perrone
>Assignee: Massimiliano Perrone
> Fix For: 1.1.0
>
>
> Current layout has a static labels to core and console version.
> Add a new Link to open a ModalPage with version and other project information 
> (eg. link to license)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (SYNCOPE-292) NPE when accessing Configuration page with no global sync policy

2013-01-28 Thread Jan Bernhardt (JIRA)

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

Jan Bernhardt updated SYNCOPE-292:
--

Assignee: Jan Bernhardt

> NPE when accessing Configuration page with no global sync policy
> 
>
> Key: SYNCOPE-292
> URL: https://issues.apache.org/jira/browse/SYNCOPE-292
> Project: Syncope
>  Issue Type: Bug
>  Components: console
>Affects Versions: 1.1.0
>Reporter: Francesco Chicchiriccò
>Assignee: Jan Bernhardt
> Fix For: 1.1.0
>
>
> As reported in ML [1], there is an issue when no global sync policy exists.
> [1] http://syncope-dev.1063484.n5.nabble.com/NPE-in-Console-tt5712327.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (SYNCOPE-292) NPE when accessing Configuration page with no global sync policy

2013-01-28 Thread Jan Bernhardt (JIRA)

[ 
https://issues.apache.org/jira/browse/SYNCOPE-292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13564174#comment-13564174
 ] 

Jan Bernhardt commented on SYNCOPE-292:
---

I'll check if new Service proxies are responsible for that.

> NPE when accessing Configuration page with no global sync policy
> 
>
> Key: SYNCOPE-292
> URL: https://issues.apache.org/jira/browse/SYNCOPE-292
> Project: Syncope
>  Issue Type: Bug
>  Components: console
>Affects Versions: 1.1.0
>Reporter: Francesco Chicchiriccò
>Assignee: Jan Bernhardt
> Fix For: 1.1.0
>
>
> As reported in ML [1], there is an issue when no global sync policy exists.
> [1] http://syncope-dev.1063484.n5.nabble.com/NPE-in-Console-tt5712327.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[ANN] Apache Syncope 1.0.5 released

2013-01-28 Thread Fabio Martelli
The Apache Syncope team is pleased to announce the release of Syncope 1.0.5.

Apache Syncope is an Open Source system for managing digital identities in 
enterprise environments, implemented in JEE technology .

The release will be available within 24h from:
http://syncope.apache.org/downloads.html

The full change log is available here:
http://s.apache.org/FE9

We welcome your help and feedback. For more information on how to report 
problems, and to get involved, visit the project website at

http://syncope.apache.org/

The Apache Syncope Team

Best regards,
F.

Re: Open Wiki pages for CXF migration

2013-01-28 Thread Francesco Chicchiriccò

Done.

Please remove any personal annotation from the wiki page (like as "TODO: 
Is this a good design decision? Should these activities be moved to 
WorkflowController?" or "In the near feature I would also like to 
replace the current search NodeCond with FIQL searchqueries.") and 
convert such items to issues / e-mails.

Thanks.

Regards.

On 24/01/2013 14:17, Jan Bernhardt wrote:

+1

Best regards.
Jan



-Original Message-
From: Francesco Chicchiriccò [mailto:ilgro...@apache.org]
Sent: Donnerstag, 24. Januar 2013 12:40
To: dev@syncope.apache.org
Subject: Re: Open Wiki pages for CXF migration

On 23/01/2013 15:33, Christian Schneider wrote:

Hi Syncopers,

the wiki pages about the rest api and the exception concept are
currently protected. I can not access them and as Francesco reported
some time ago we can not directly edit the group that protects the page.
So I propose to open these pages for the public and simply have a
disclaimer that this is work in progress.

See:
https://cwiki.apache.org/confluence/display/SYNCOPE/REST+API+upgrade

Agree: If no one has objections, I would unlock access to that wiki page (and
its children) + add a disclaimer.

Regards.


--
Francesco Chicchiriccò

ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member
http://people.apache.org/~ilgrosso/



[jira] [Commented] (SYNCOPE-291) Move NotFoundException to core.persistence.dao

2013-01-28 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/SYNCOPE-291?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13564193#comment-13564193
 ] 

Hudson commented on SYNCOPE-291:


Integrated in Syncope-trunk #15 (See 
[https://builds.apache.org/job/Syncope-trunk/15/])
SYNCOPE-291 Move NotFoundException to core.persistence.dao (Revision 
1439330)

 Result = SUCCESS
cschneider : 
Files : 
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/connid/ConnObjectUtil.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/init/ConnInstanceLoader.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/notification/NotificationManager.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/persistence/dao/ConnectorRegistry.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/persistence/dao/NotFoundException.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/persistence/dao/impl/ConnInstanceDAOImpl.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/persistence/dao/impl/ResourceDAOImpl.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/propagation/ConnectorFactory.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/propagation/impl/ConnectorFacadeProxy.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/propagation/impl/PropagationManager.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/rest/controller/ConnInstanceController.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/rest/controller/DerivedSchemaController.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/rest/controller/LoggerController.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/rest/controller/NotificationController.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/rest/controller/PolicyController.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/rest/controller/ReportController.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/rest/controller/ResourceController.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/rest/controller/RoleController.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/rest/controller/SchemaController.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/rest/controller/TaskController.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/rest/controller/UserController.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/rest/controller/UserRequestController.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/rest/controller/VirtualSchemaController.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/rest/controller/WorkflowController.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/rest/data/ConnInstanceDataBinder.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/rest/data/ResourceDataBinder.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/rest/data/RoleDataBinder.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/rest/data/TaskDataBinder.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/rest/data/UserDataBinder.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/rest/data/UserRequestDataBinder.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/rest/utils/RestServiceExceptionMapper.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/services/ConnectorServiceImpl.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/services/LoggerServiceImpl.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/services/NotificationServiceImpl.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/services/PolicyServiceImpl.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/services/ReportServiceImpl.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/services/ResourceServiceImpl.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/services/RoleServiceImpl.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/services/SchemaServiceImpl.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/services/UserRequestServiceImpl.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/sync/impl/SyncJob.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/sync/impl/SyncopeSyncResultHandler.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/util/ConnBundleManager.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/util/NotFoundException.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/workflow/WorkflowAdapter.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/workflow/role/AbstractRoleWorkflowAdapter.java
* 
/syncope/trunk/core/src/main/java/org/apache/synco

[jira] [Created] (SYNCOPE-294) User data not refreshed before edit

2013-01-28 Thread JIRA
Francesco Chicchiriccò created SYNCOPE-294:
--

 Summary: User data not refreshed before edit
 Key: SYNCOPE-294
 URL: https://issues.apache.org/jira/browse/SYNCOPE-294
 Project: Syncope
  Issue Type: Bug
  Components: console
Affects Versions: 1.0.5
Reporter: Francesco Chicchiriccò
Priority: Minor
 Fix For: 1.0.6, 1.1.0


As reported in ML [1] the user data are not refreshed before loading into edit 
modal page.

Does the same apply to other entities, mainly roles?

[1] http://syncope-dev.1063484.n5.nabble.com/Console-update-issue-tt5712329.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


Re: Console update issue

2013-01-28 Thread Francesco Chicchiriccò

On 27/01/2013 15:00, Colm O hEigeartaigh wrote:

Hi all,

I've noticed a (minor) issue when I create a new user in Syncope (1.0.5)
with a virtual attribute + propagage to a backend (H2 database). If I
change the virtual attribute in the backend, and then edit the user in
Syncope again, the old value of the virtual attribute is displayed. The
value only gets updated if I switch tab before editing the User in the
"Users" tab (or close the tab when editing the user and edit it again).

If I create a user and then edit it again without switching tabs, do the
user attributes not get reloaded or something?


Hi Colm,
I've verified the same misbehavior on the trunk as well and opened 
SYNCOPE-294.


Thanks for reporting.
Regards.

--
Francesco Chicchiriccò

ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member
http://people.apache.org/~ilgrosso/



[jira] [Updated] (SYNCOPE-293) Modify version layout

2013-01-28 Thread Massimiliano Perrone (JIRA)

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

Massimiliano Perrone updated SYNCOPE-293:
-

Attachment: Schermata.png

Guys,
do you like this?
If it's ok, I will commit it.

> Modify version layout
> -
>
> Key: SYNCOPE-293
> URL: https://issues.apache.org/jira/browse/SYNCOPE-293
> Project: Syncope
>  Issue Type: Improvement
>  Components: console
>Reporter: Massimiliano Perrone
>Assignee: Massimiliano Perrone
> Fix For: 1.1.0
>
> Attachments: Schermata.png
>
>
> Current layout has a static labels to core and console version.
> Add a new Link to open a ModalPage with version and other project information 
> (eg. link to license)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (SYNCOPE-231) Using Standard JAX-RS API in Syncope (Replace Spring Webservice Stack with Apache CXF)

2013-01-28 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/SYNCOPE-231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13564214#comment-13564214
 ] 

Hudson commented on SYNCOPE-231:


Integrated in Syncope-trunk #16 (See 
[https://builds.apache.org/job/Syncope-trunk/16/])
[SYNCOPE-231] Fixing CXF Tests (Revision 1439342)

 Result = SUCCESS
jbernhardt : 
Files : 
* 
/syncope/trunk/client/src/main/java/org/apache/syncope/client/services/proxy/SchemaServiceProxy.java
* 
/syncope/trunk/common/src/main/java/org/apache/syncope/common/services/SchemaService.java
* /syncope/trunk/core/src/main/resources/restContext.xml
* 
/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/AbstractTest.java
* 
/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/jaxrs/EntitlementTestITCaseJAXRS.java
* 
/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/jaxrs/SchemaTestITCaseJAXRS.java


> Using Standard JAX-RS API in Syncope (Replace Spring Webservice Stack with 
> Apache CXF)
> --
>
> Key: SYNCOPE-231
> URL: https://issues.apache.org/jira/browse/SYNCOPE-231
> Project: Syncope
>  Issue Type: Improvement
>  Components: console, core
>Reporter: Jan Bernhardt
>Assignee: Jan Bernhardt
> Fix For: 1.2.0
>
> Attachments: TaskService.patch
>
>
> Current REST Interfaces are based on Spring Webservice framework. 
> Goal of this task is to replace Spring with CXF and to relay on JAX-B and 
> JAX-RS annotations rather then Spring annotations.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


RE: [jira] [Updated] (SYNCOPE-293) Modify version layout

2013-01-28 Thread Jan Bernhardt
Looks very nice. 

Textblock could need some padding.

Best regards.
Jan


> -Original Message-
> From: Massimiliano Perrone (JIRA) [mailto:j...@apache.org]
> Sent: Montag, 28. Januar 2013 12:35
> To: dev@syncope.apache.org
> Subject: [jira] [Updated] (SYNCOPE-293) Modify version layout
> 
> 
>  [ https://issues.apache.org/jira/browse/SYNCOPE-
> 293?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
> 
> Massimiliano Perrone updated SYNCOPE-293:
> -
> 
> Attachment: Schermata.png
> 
> Guys,
> do you like this?
> If it's ok, I will commit it.
> 
> > Modify version layout
> > -
> >
> > Key: SYNCOPE-293
> > URL: https://issues.apache.org/jira/browse/SYNCOPE-293
> > Project: Syncope
> >  Issue Type: Improvement
> >  Components: console
> >Reporter: Massimiliano Perrone
> >Assignee: Massimiliano Perrone
> > Fix For: 1.1.0
> >
> > Attachments: Schermata.png
> >
> >
> > Current layout has a static labels to core and console version.
> > Add a new Link to open a ModalPage with version and other project
> > information (eg. link to license)
> 
> --
> This message is automatically generated by JIRA.
> If you think it was sent incorrectly, please contact your JIRA administrators
> For more information on JIRA, see: http://www.atlassian.com/software/jira


Re: Schema mappings usability thought

2013-01-28 Thread Francesco Chicchiriccò

On 27/01/2013 15:06, Colm O hEigeartaigh wrote:

Hi all,

When creating schema mappings in the Console, if you select the "AccountId"
or "Password" checkbox the "external attributes" tab gets blanked out.
Should the "Mandatory" value also change to "true" by default for each of
these cases (but remain editable)? I would imagine that for most cases when
mapping a account name + password, it must be mandatory.


Hi Colm,

* for AccountId it does not make any sense to select a value other than 
true for "Mandatory", so +1 for your proposed change plus making not 
editable


 * for Password, in my experience generally this is propagated to one 
or two external resources (normally the Access Manager or its underlying 
user repository) and ignored for other external connected resources, so 
I would leave it as is ("false" by default, and editable).



Perhaps the "Mandatory" tab should be moved to the right of the passwords tab 
as part
of this, so that a user wouldn't have to change the value back if they want
it to be false.


+-0

Regards.

--
Francesco Chicchiriccò

ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member
http://people.apache.org/~ilgrosso/



[jira] [Commented] (SYNCOPE-293) Modify version layout

2013-01-28 Thread Jan Bernhardt (JIRA)

[ 
https://issues.apache.org/jira/browse/SYNCOPE-293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13564220#comment-13564220
 ] 

Jan Bernhardt commented on SYNCOPE-293:
---

Looks very nice. 

Textblock could need some padding.

Best regards.
Jan




> Modify version layout
> -
>
> Key: SYNCOPE-293
> URL: https://issues.apache.org/jira/browse/SYNCOPE-293
> Project: Syncope
>  Issue Type: Improvement
>  Components: console
>Reporter: Massimiliano Perrone
>Assignee: Massimiliano Perrone
> Fix For: 1.1.0
>
> Attachments: Schermata.png
>
>
> Current layout has a static labels to core and console version.
> Add a new Link to open a ModalPage with version and other project information 
> (eg. link to license)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


Re: Schema mappings usability thought

2013-01-28 Thread Fabio Martelli

Il giorno 28/gen/2013, alle ore 12.43, Francesco Chicchiriccò ha scritto:

> On 27/01/2013 15:06, Colm O hEigeartaigh wrote:
>> Hi all,
>> 
>> When creating schema mappings in the Console, if you select the "AccountId"
>> or "Password" checkbox the "external attributes" tab gets blanked out.
>> Should the "Mandatory" value also change to "true" by default for each of
>> these cases (but remain editable)? I would imagine that for most cases when
>> mapping a account name + password, it must be mandatory.
> 
> Hi Colm,
> 
> * for AccountId it does not make any sense to select a value other than true 
> for "Mandatory", so +1 for your proposed change plus making not editable
> 
> * for Password, in my experience generally this is propagated to one or two 
> external resources (normally the Access Manager or its underlying user 
> repository) and ignored for other external connected resources, so I would 
> leave it as is ("false" by default, and editable).

+1

> 
>> Perhaps the "Mandatory" tab should be moved to the right of the passwords 
>> tab as part
>> of this, so that a user wouldn't have to change the value back if they want
>> it to be false.

Probably you are right.
+1

> 
> +-0
> 
> Regards.
> 
> -- 
> Francesco Chicchiriccò
> 
> ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member
> http://people.apache.org/~ilgrosso/
> 



[jira] [Commented] (SYNCOPE-293) Modify version layout

2013-01-28 Thread fabio martelli (JIRA)

[ 
https://issues.apache.org/jira/browse/SYNCOPE-293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13564224#comment-13564224
 ] 

fabio martelli commented on SYNCOPE-293:


Yep, Textblock needs padding (why not a sort of justification?).
I like the modal window in general but I'd change the "version" link position. 
I'd prefer to have a sort of icon (something like 'i' or '?') onto the header 
of the page.

> Modify version layout
> -
>
> Key: SYNCOPE-293
> URL: https://issues.apache.org/jira/browse/SYNCOPE-293
> Project: Syncope
>  Issue Type: Improvement
>  Components: console
>Reporter: Massimiliano Perrone
>Assignee: Massimiliano Perrone
> Fix For: 1.1.0
>
> Attachments: Schermata.png
>
>
> Current layout has a static labels to core and console version.
> Add a new Link to open a ModalPage with version and other project information 
> (eg. link to license)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (SYNCOPE-293) Modify version layout

2013-01-28 Thread JIRA

[ 
https://issues.apache.org/jira/browse/SYNCOPE-293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13564223#comment-13564223
 ] 

Francesco Chicchiriccò commented on SYNCOPE-293:


Agree with Jan.
Moreover, I would rename "Version" to "Information": you are not providing just 
version number any more.

> Modify version layout
> -
>
> Key: SYNCOPE-293
> URL: https://issues.apache.org/jira/browse/SYNCOPE-293
> Project: Syncope
>  Issue Type: Improvement
>  Components: console
>Reporter: Massimiliano Perrone
>Assignee: Massimiliano Perrone
> Fix For: 1.1.0
>
> Attachments: Schermata.png
>
>
> Current layout has a static labels to core and console version.
> Add a new Link to open a ModalPage with version and other project information 
> (eg. link to license)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Resolved] (SYNCOPE-292) NPE when accessing Configuration page with no global sync policy

2013-01-28 Thread Jan Bernhardt (JIRA)

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

Jan Bernhardt resolved SYNCOPE-292.
---

Resolution: Fixed

> NPE when accessing Configuration page with no global sync policy
> 
>
> Key: SYNCOPE-292
> URL: https://issues.apache.org/jira/browse/SYNCOPE-292
> Project: Syncope
>  Issue Type: Bug
>  Components: console
>Affects Versions: 1.1.0
>Reporter: Francesco Chicchiriccò
>Assignee: Jan Bernhardt
> Fix For: 1.1.0
>
>
> As reported in ML [1], there is an issue when no global sync policy exists.
> [1] http://syncope-dev.1063484.n5.nabble.com/NPE-in-Console-tt5712327.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (SYNCOPE-292) NPE when accessing Configuration page with no global sync policy

2013-01-28 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/SYNCOPE-292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13564243#comment-13564243
 ] 

Hudson commented on SYNCOPE-292:


Integrated in Syncope-trunk #17 (See 
[https://builds.apache.org/job/Syncope-trunk/17/])
SYNCOPE-292 (Revision 1439361)

 Result = SUCCESS
jbernhardt : 
Files : 
* 
/syncope/trunk/console/src/main/java/org/apache/syncope/console/rest/PolicyRestClient.java


> NPE when accessing Configuration page with no global sync policy
> 
>
> Key: SYNCOPE-292
> URL: https://issues.apache.org/jira/browse/SYNCOPE-292
> Project: Syncope
>  Issue Type: Bug
>  Components: console
>Affects Versions: 1.1.0
>Reporter: Francesco Chicchiriccò
>Assignee: Jan Bernhardt
> Fix For: 1.1.0
>
>
> As reported in ML [1], there is an issue when no global sync policy exists.
> [1] http://syncope-dev.1063484.n5.nabble.com/NPE-in-Console-tt5712327.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (SYNCOPE-289) Prepare CXF Rest integration tests migration

2013-01-28 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/SYNCOPE-289?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13564244#comment-13564244
 ] 

Hudson commented on SYNCOPE-289:


Integrated in Syncope-trunk #17 (See 
[https://builds.apache.org/job/Syncope-trunk/17/])
[SYNCOPE-289] Notification with 101 isn't needed anymore. Removed 
parameterized from AbstractTest (Revision 1439358)

 Result = SUCCESS
ashakirin : 
Files : 
* 
/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/AbstractTest.java
* 
/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/NotificationTestITCase.java
* /syncope/trunk/core/src/test/resources/content.xml


> Prepare CXF Rest integration tests migration
> 
>
> Key: SYNCOPE-289
> URL: https://issues.apache.org/jira/browse/SYNCOPE-289
> Project: Syncope
>  Issue Type: Sub-task
>  Components: console, core
>Reporter: Andrei Shakirin
>Assignee: Andrei Shakirin
> Fix For: 1.1.0
>
>
> Moving back to 1.1.0

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (SYNCOPE-231) Using Standard JAX-RS API in Syncope (Replace Spring Webservice Stack with Apache CXF)

2013-01-28 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/SYNCOPE-231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13564242#comment-13564242
 ] 

Hudson commented on SYNCOPE-231:


Integrated in Syncope-trunk #17 (See 
[https://builds.apache.org/job/Syncope-trunk/17/])
[SYNCOPE-231] Fixing CXF Tests (Revision 1439366)

 Result = SUCCESS
jbernhardt : 
Files : 
* 
/syncope/trunk/common/src/main/java/org/apache/syncope/common/to/AccountPolicyTO.java
* 
/syncope/trunk/common/src/main/java/org/apache/syncope/common/to/PasswordPolicyTO.java
* /syncope/trunk/common/src/main/java/org/apache/syncope/common/to/PolicyTO.java
* 
/syncope/trunk/common/src/main/java/org/apache/syncope/common/to/SyncPolicyTO.java
* 
/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/jaxrs/PolicyTestITCaseJAXRS.java
* 
/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/jaxrs/SchemaTestITCaseJAXRS.java


> Using Standard JAX-RS API in Syncope (Replace Spring Webservice Stack with 
> Apache CXF)
> --
>
> Key: SYNCOPE-231
> URL: https://issues.apache.org/jira/browse/SYNCOPE-231
> Project: Syncope
>  Issue Type: Improvement
>  Components: console, core
>Reporter: Jan Bernhardt
>Assignee: Jan Bernhardt
> Fix For: 1.2.0
>
> Attachments: TaskService.patch
>
>
> Current REST Interfaces are based on Spring Webservice framework. 
> Goal of this task is to replace Spring with CXF and to relay on JAX-B and 
> JAX-RS annotations rather then Spring annotations.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (SYNCOPE-293) Modify version layout

2013-01-28 Thread Massimiliano Perrone (JIRA)

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

Massimiliano Perrone updated SYNCOPE-293:
-

Attachment: basepage.png
welcomepage.png

All requests sutisfied.

Other?

Is icon too small?

> Modify version layout
> -
>
> Key: SYNCOPE-293
> URL: https://issues.apache.org/jira/browse/SYNCOPE-293
> Project: Syncope
>  Issue Type: Improvement
>  Components: console
>Reporter: Massimiliano Perrone
>Assignee: Massimiliano Perrone
> Fix For: 1.1.0
>
> Attachments: basepage.png, Schermata.png, welcomepage.png
>
>
> Current layout has a static labels to core and console version.
> Add a new Link to open a ModalPage with version and other project information 
> (eg. link to license)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (SYNCOPE-293) Modify version layout

2013-01-28 Thread JIRA

[ 
https://issues.apache.org/jira/browse/SYNCOPE-293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13564264#comment-13564264
 ] 

Francesco Chicchiriccò commented on SYNCOPE-293:


I guess that the old screenshot "Schermata.png" could be removed or at least 
mentioned in your comments and that now you are referring to new attachments 
"basepage.png" / "welcomepage.png".

Please adjust the modal window default size to avoid scrollbar.

> Modify version layout
> -
>
> Key: SYNCOPE-293
> URL: https://issues.apache.org/jira/browse/SYNCOPE-293
> Project: Syncope
>  Issue Type: Improvement
>  Components: console
>Reporter: Massimiliano Perrone
>Assignee: Massimiliano Perrone
> Fix For: 1.1.0
>
> Attachments: basepage.png, Schermata.png, welcomepage.png
>
>
> Current layout has a static labels to core and console version.
> Add a new Link to open a ModalPage with version and other project information 
> (eg. link to license)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (SYNCOPE-293) Modify version layout

2013-01-28 Thread fabio martelli (JIRA)

[ 
https://issues.apache.org/jira/browse/SYNCOPE-293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13564266#comment-13564266
 ] 

fabio martelli commented on SYNCOPE-293:


Please, 
1. take care of the modal window size;
2. the icon seems to be too much big and, personally, I think that the chosen 
color doesn't fit the palette.


> Modify version layout
> -
>
> Key: SYNCOPE-293
> URL: https://issues.apache.org/jira/browse/SYNCOPE-293
> Project: Syncope
>  Issue Type: Improvement
>  Components: console
>Reporter: Massimiliano Perrone
>Assignee: Massimiliano Perrone
> Fix For: 1.1.0
>
> Attachments: basepage.png, Schermata.png, welcomepage.png
>
>
> Current layout has a static labels to core and console version.
> Add a new Link to open a ModalPage with version and other project information 
> (eg. link to license)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (SYNCOPE-293) Modify version layout

2013-01-28 Thread Massimiliano Perrone (JIRA)

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

Massimiliano Perrone updated SYNCOPE-293:
-

Attachment: (was: Schermata.png)

> Modify version layout
> -
>
> Key: SYNCOPE-293
> URL: https://issues.apache.org/jira/browse/SYNCOPE-293
> Project: Syncope
>  Issue Type: Improvement
>  Components: console
>Reporter: Massimiliano Perrone
>Assignee: Massimiliano Perrone
> Fix For: 1.1.0
>
> Attachments: basepage.png, welcomepage.png
>
>
> Current layout has a static labels to core and console version.
> Add a new Link to open a ModalPage with version and other project information 
> (eg. link to license)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (SYNCOPE-293) Modify version layout

2013-01-28 Thread Massimiliano Perrone (JIRA)

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

Massimiliano Perrone updated SYNCOPE-293:
-

Attachment: (was: basepage.png)

> Modify version layout
> -
>
> Key: SYNCOPE-293
> URL: https://issues.apache.org/jira/browse/SYNCOPE-293
> Project: Syncope
>  Issue Type: Improvement
>  Components: console
>Reporter: Massimiliano Perrone
>Assignee: Massimiliano Perrone
> Fix For: 1.1.0
>
> Attachments: bp.png, wp.png
>
>
> Current layout has a static labels to core and console version.
> Add a new Link to open a ModalPage with version and other project information 
> (eg. link to license)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (SYNCOPE-293) Modify version layout

2013-01-28 Thread Massimiliano Perrone (JIRA)

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

Massimiliano Perrone updated SYNCOPE-293:
-

Attachment: (was: welcomepage.png)

> Modify version layout
> -
>
> Key: SYNCOPE-293
> URL: https://issues.apache.org/jira/browse/SYNCOPE-293
> Project: Syncope
>  Issue Type: Improvement
>  Components: console
>Reporter: Massimiliano Perrone
>Assignee: Massimiliano Perrone
> Fix For: 1.1.0
>
> Attachments: bp.png, wp.png
>
>
> Current layout has a static labels to core and console version.
> Add a new Link to open a ModalPage with version and other project information 
> (eg. link to license)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (SYNCOPE-293) Modify version layout

2013-01-28 Thread Massimiliano Perrone (JIRA)

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

Massimiliano Perrone updated SYNCOPE-293:
-

Attachment: wp.png
bp.png

@Fabio:
IMHO I'll never find an icon that you like :)

> Modify version layout
> -
>
> Key: SYNCOPE-293
> URL: https://issues.apache.org/jira/browse/SYNCOPE-293
> Project: Syncope
>  Issue Type: Improvement
>  Components: console
>Reporter: Massimiliano Perrone
>Assignee: Massimiliano Perrone
> Fix For: 1.1.0
>
> Attachments: bp.png, wp.png
>
>
> Current layout has a static labels to core and console version.
> Add a new Link to open a ModalPage with version and other project information 
> (eg. link to license)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (SYNCOPE-293) Modify version layout

2013-01-28 Thread JIRA

[ 
https://issues.apache.org/jira/browse/SYNCOPE-293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13564282#comment-13564282
 ] 

Francesco Chicchiriccò commented on SYNCOPE-293:


Max, the modal page now looks good.

I would:
 * remove the link "Apache 2.0 license" and add the href to the beginning of 
the text "Licensed under the Apache License, version 2.0 "
 * reduce the icon size to the same height of the darker green band and move it 
next to the user name, on the rightmost edge

> Modify version layout
> -
>
> Key: SYNCOPE-293
> URL: https://issues.apache.org/jira/browse/SYNCOPE-293
> Project: Syncope
>  Issue Type: Improvement
>  Components: console
>Reporter: Massimiliano Perrone
>Assignee: Massimiliano Perrone
> Fix For: 1.1.0
>
> Attachments: bp.png, wp.png
>
>
> Current layout has a static labels to core and console version.
> Add a new Link to open a ModalPage with version and other project information 
> (eg. link to license)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (SYNCOPE-293) Modify version layout

2013-01-28 Thread Jan Bernhardt (JIRA)

[ 
https://issues.apache.org/jira/browse/SYNCOPE-293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13564283#comment-13564283
 ] 

Jan Bernhardt commented on SYNCOPE-293:
---

I agree with Fabio, Icon is to big ;-)

In general looks really nice. 

Maybe one more think. Link color is quite ugly. Maybe you could change this to 
white and :hover green (same colors as in menu-bar)

> Modify version layout
> -
>
> Key: SYNCOPE-293
> URL: https://issues.apache.org/jira/browse/SYNCOPE-293
> Project: Syncope
>  Issue Type: Improvement
>  Components: console
>Reporter: Massimiliano Perrone
>Assignee: Massimiliano Perrone
> Fix For: 1.1.0
>
> Attachments: bp.png, wp.png
>
>
> Current layout has a static labels to core and console version.
> Add a new Link to open a ModalPage with version and other project information 
> (eg. link to license)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (SYNCOPE-293) Modify version layout

2013-01-28 Thread fabio martelli (JIRA)

[ 
https://issues.apache.org/jira/browse/SYNCOPE-293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13564285#comment-13564285
 ] 

fabio martelli commented on SYNCOPE-293:


Better but you can do more 
I don't like size, position and brightness but doesn't matter: you'll never 
find one.

> Modify version layout
> -
>
> Key: SYNCOPE-293
> URL: https://issues.apache.org/jira/browse/SYNCOPE-293
> Project: Syncope
>  Issue Type: Improvement
>  Components: console
>Reporter: Massimiliano Perrone
>Assignee: Massimiliano Perrone
> Fix For: 1.1.0
>
> Attachments: bp.png, wp.png
>
>
> Current layout has a static labels to core and console version.
> Add a new Link to open a ModalPage with version and other project information 
> (eg. link to license)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


Discuss: Move InvalidSearchConditionException to common

2013-01-28 Thread Christian Schneider
Currently InvalidSearchConditionException is in core.persistence.dao and
is a checked exception.
If we want to make this exception part of the UserService interface to
have it available on the client we will have to move it to common.

Currently the console does not seem to use the exception on the client
side. So my preliminary solution to get it running is to make the
exception unchecked so I can pass it to the
exception mapper without having it in the interface.

So basically the two things to discuss are if we want to move the
exception to common and if we want to make it unchecked. I personally
would do both.

Christian

-- 
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
http://www.talend.com



Re: Discuss: Move InvalidSearchConditionException to common

2013-01-28 Thread Francesco Chicchiriccò

On 28/01/2013 15:36, Christian Schneider wrote:

Currently InvalidSearchConditionException is in core.persistence.dao and
is a checked exception.
If we want to make this exception part of the UserService interface to
have it available on the client we will have to move it to common.

Currently the console does not seem to use the exception on the client
side. So my preliminary solution to get it running is to make the
exception unchecked so I can pass it to the
exception mapper without having it in the interface.

So basically the two things to discuss are if we want to move the
exception to common and if we want to make it unchecked. I personally
would do both.


This exception is not used by the admin console because the code is done 
so that no invalid search conditions are sent to the core; however, 
other clients are likely to need this exception to be returned.


Hence: +1 for moving it to common, but don't see enough reason to make 
it unchecked.


Regards.

--
Francesco Chicchiriccò

ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member
http://people.apache.org/~ilgrosso/



[jira] [Commented] (SYNCOPE-292) NPE when accessing Configuration page with no global sync policy

2013-01-28 Thread Colm O hEigeartaigh (JIRA)

[ 
https://issues.apache.org/jira/browse/SYNCOPE-292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13564310#comment-13564310
 ] 

Colm O hEigeartaigh commented on SYNCOPE-292:
-


Thanks Jan! Fix confirmed.

However, I am seeing something else which is slightly odd. If I browse to the 
Configuration page, and to "Synchronization Policies", I see:

0 Synchronization Policy

Same goes for Account Policies + Password Policies. Instead of listing a policy 
with id of "0" for each case, it should just not list any policy right?

Colm.

> NPE when accessing Configuration page with no global sync policy
> 
>
> Key: SYNCOPE-292
> URL: https://issues.apache.org/jira/browse/SYNCOPE-292
> Project: Syncope
>  Issue Type: Bug
>  Components: console
>Affects Versions: 1.1.0
>Reporter: Francesco Chicchiriccò
>Assignee: Jan Bernhardt
> Fix For: 1.1.0
>
>
> As reported in ML [1], there is an issue when no global sync policy exists.
> [1] http://syncope-dev.1063484.n5.nabble.com/NPE-in-Console-tt5712327.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Comment Edited] (SYNCOPE-292) NPE when accessing Configuration page with no global sync policy

2013-01-28 Thread Colm O hEigeartaigh (JIRA)

[ 
https://issues.apache.org/jira/browse/SYNCOPE-292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13564310#comment-13564310
 ] 

Colm O hEigeartaigh edited comment on SYNCOPE-292 at 1/28/13 2:54 PM:
--


Thanks Jan! Fix confirmed.

However, I am seeing something else which is slightly odd. If I browse to the 
Configuration page, and to "Synchronization Policies", I see:

0 Synchronization Policy

Same goes for Account Policies + Password Policies. Instead of listing a policy 
with id of "0" for each case, it should just not list any policy right?

Colm.

Ps. An error appears in the logs:

SEVERE: Servlet.service() for servlet [syncope-core-rest] in context with path 
[/syncope] threw exception [Request processing failed; nested exception is 
org.apache.syncope.core.persistence.dao.NotFoundException: No account policy 
found] with root cause
org.apache.syncope.core.persistence.dao.NotFoundException: No account policy 
found
at 
org.apache.syncope.core.rest.controller.PolicyController.getGlobalAccountPolicy(PolicyController.java:205)


  was (Author: coheigea):

Thanks Jan! Fix confirmed.

However, I am seeing something else which is slightly odd. If I browse to the 
Configuration page, and to "Synchronization Policies", I see:

0 Synchronization Policy

Same goes for Account Policies + Password Policies. Instead of listing a policy 
with id of "0" for each case, it should just not list any policy right?

Colm.
  
> NPE when accessing Configuration page with no global sync policy
> 
>
> Key: SYNCOPE-292
> URL: https://issues.apache.org/jira/browse/SYNCOPE-292
> Project: Syncope
>  Issue Type: Bug
>  Components: console
>Affects Versions: 1.1.0
>Reporter: Francesco Chicchiriccò
>Assignee: Jan Bernhardt
> Fix For: 1.1.0
>
>
> As reported in ML [1], there is an issue when no global sync policy exists.
> [1] http://syncope-dev.1063484.n5.nabble.com/NPE-in-Console-tt5712327.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (SYNCOPE-231) Using Standard JAX-RS API in Syncope (Replace Spring Webservice Stack with Apache CXF)

2013-01-28 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/SYNCOPE-231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13564315#comment-13564315
 ] 

Hudson commented on SYNCOPE-231:


Integrated in Syncope-trunk #18 (See 
[https://builds.apache.org/job/Syncope-trunk/18/])
SYNCOPE-231 Adding UserServiceImpl for CXF (Revision 1439430)
SYNCOPE-231 Some refactorings in exception mapper (Revision 1439429)
[SYNCOPE-231] Fixing Notification CXF Test (Revision 1439425)
[SYNCOPE-231]
* Adding (fixing) JAX-B Annotations (Revision 1439402)

 Result = SUCCESS
cschneider : 
Files : 
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/persistence/dao/InvalidSearchConditionException.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/rest/controller/UserController.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/services/UserServiceImpl.java
* /syncope/trunk/core/src/main/resources/restContext.xml

cschneider : 
Files : 
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/rest/utils/RestServiceExceptionMapper.java

jbernhardt : 
Files : 
* 
/syncope/trunk/client/src/main/java/org/apache/syncope/client/services/proxy/NotificationServiceProxy.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/services/NotificationServiceImpl.java
* 
/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/NotificationTestITCase.java
* 
/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/TaskTestITCase.java

jbernhardt : 
Files : 
* 
/syncope/trunk/common/src/main/java/org/apache/syncope/common/search/AttributeCond.java
* 
/syncope/trunk/common/src/main/java/org/apache/syncope/common/search/EntitlementCond.java
* 
/syncope/trunk/common/src/main/java/org/apache/syncope/common/search/MembershipCond.java
* 
/syncope/trunk/common/src/main/java/org/apache/syncope/common/search/NodeCond.java
* 
/syncope/trunk/common/src/main/java/org/apache/syncope/common/search/ResourceCond.java
* 
/syncope/trunk/common/src/main/java/org/apache/syncope/common/services/NotificationService.java
* 
/syncope/trunk/common/src/main/java/org/apache/syncope/common/to/NotificationTO.java


> Using Standard JAX-RS API in Syncope (Replace Spring Webservice Stack with 
> Apache CXF)
> --
>
> Key: SYNCOPE-231
> URL: https://issues.apache.org/jira/browse/SYNCOPE-231
> Project: Syncope
>  Issue Type: Improvement
>  Components: console, core
>Reporter: Jan Bernhardt
>Assignee: Jan Bernhardt
> Fix For: 1.2.0
>
> Attachments: TaskService.patch
>
>
> Current REST Interfaces are based on Spring Webservice framework. 
> Goal of this task is to replace Spring with CXF and to relay on JAX-B and 
> JAX-RS annotations rather then Spring annotations.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Reopened] (SYNCOPE-292) NPE when accessing Configuration page with no global sync policy

2013-01-28 Thread Jan Bernhardt (JIRA)

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

Jan Bernhardt reopened SYNCOPE-292:
---


I agree with you Colm. If no global policy is available, it should not be 
listed as ("0") policy in console.

I'll fix this as well.

> NPE when accessing Configuration page with no global sync policy
> 
>
> Key: SYNCOPE-292
> URL: https://issues.apache.org/jira/browse/SYNCOPE-292
> Project: Syncope
>  Issue Type: Bug
>  Components: console
>Affects Versions: 1.1.0
>Reporter: Francesco Chicchiriccò
>Assignee: Jan Bernhardt
> Fix For: 1.1.0
>
>
> As reported in ML [1], there is an issue when no global sync policy exists.
> [1] http://syncope-dev.1063484.n5.nabble.com/NPE-in-Console-tt5712327.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[Question] Problem with test UsertTestITCase.issueSYNCOPE279

2013-01-28 Thread Andrei Shakirin
Hi,

I am analysing problem regarding UsertTestITCase.issueSYNCOPE279().
It is reproducible in following situations:

1)  Run it as single test: mvn -Pdev -DwaitForCheck=false -Dit.test= 
UserTestITCase# issueSYNCOPE279

Because of some reasons this test is succeed in case if 
AuthenticationTestITCase,ResourceTestITCase,RoleTestITCase,SchemaTestITCase,UserRequestTestITCase
 were executed before (interesting :) )

2)  If all core integration tests is running under JDK 1.7

3)  With some other conditions.

My analysis shows that the end reason is that SOAP connector (using CXF client) 
receives HTML as response for test() invocation:

15:47:46.041 DEBUG 
org.identityconnectors.framework.api.operations.GetApiOp.getObject Exception:
javax.xml.ws.soap.SOAPFaultException: Response was of unexpected text/html 
ContentType.  Incoming portion of HTML stream: OK
at 
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:156) 
~[cxf-rt-frontend-jaxws-2.7.0.jar:2.7.0]
at $Proxy196.checkAlive(Unknown Source) ~[na:na]
at 
org.connid.bundles.soap.WebServiceConnection.test(WebServiceConnection.java:89) 
~[na:na]
at 
org.connid.bundles.soap.WebServiceConnector.checkAlive(WebServiceConnector.java:169)
 ~[na:na]
at 
org.identityconnectors.framework.impl.api.local.ConnectorPoolManager$ConnectorPoolHandler.testObject(ConnectorPoolManager.java:105)
 ~[framework-internal-1.3.2.jar:na]

Therefore propagation of resource "ws-target-resource-3" is failed with 
following error:

15:46:55.221 ERROR 
org.apache.syncope.core.propagation.impl.AbstractPropagationTaskExecutor - 
Exception during provision on resource ws-target-resource-3
org.apache.syncope.core.propagation.TimeoutException: Request timeout
at 
org.apache.syncope.core.propagation.impl.ConnectorFacadeProxy.getObject(ConnectorFacadeProxy.java:380)
 ~[ConnectorFacadeProxy.class:na]
at 
org.apache.syncope.core.propagation.impl.AbstractPropagationTaskExecutor.getRemoteObject(AbstractPropagationTaskExecutor.java:438)
 ~[AbstractPropagationTaskExecutor.class:na]
at 
org.apache.syncope.core.propagation.impl.AbstractPropagationTaskExecutor.execute(AbstractPropagationTaskExecutor.java:288)
 ~[AbstractPropagationTaskExecutor.class:na]

Could you give a hint how to investigate this connector invocation error?
To which instance SOAP connector sends test() request? Why it sometimes answers 
with HTML?

Regards,
Andrei.



Re: Schema mappings usability thought

2013-01-28 Thread Colm O hEigeartaigh
Thanks for the feedback! I'll merge a fix so that when AccountId is
selected, the "Mandatory" condition goes to "true" + non-editable. I will
leave the "Mandatory" field where it is in the display.

Colm.

On Mon, Jan 28, 2013 at 11:49 AM, Fabio Martelli
wrote:

>
> Il giorno 28/gen/2013, alle ore 12.43, Francesco Chicchiriccò ha scritto:
>
> > On 27/01/2013 15:06, Colm O hEigeartaigh wrote:
> >> Hi all,
> >>
> >> When creating schema mappings in the Console, if you select the
> "AccountId"
> >> or "Password" checkbox the "external attributes" tab gets blanked out.
> >> Should the "Mandatory" value also change to "true" by default for each
> of
> >> these cases (but remain editable)? I would imagine that for most cases
> when
> >> mapping a account name + password, it must be mandatory.
> >
> > Hi Colm,
> >
> > * for AccountId it does not make any sense to select a value other than
> true for "Mandatory", so +1 for your proposed change plus making not
> editable
> >
> > * for Password, in my experience generally this is propagated to one or
> two external resources (normally the Access Manager or its underlying user
> repository) and ignored for other external connected resources, so I would
> leave it as is ("false" by default, and editable).
>
> +1
>
> >
> >> Perhaps the "Mandatory" tab should be moved to the right of the
> passwords tab as part
> >> of this, so that a user wouldn't have to change the value back if they
> want
> >> it to be false.
>
> Probably you are right.
> +1
>
> >
> > +-0
> >
> > Regards.
> >
> > --
> > Francesco Chicchiriccò
> >
> > ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member
> > http://people.apache.org/~ilgrosso/
> >
>
>


-- 
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com


[jira] [Created] (SYNCOPE-295) If AccountId is selected when creating a Resource Mapping, then make it mandatory

2013-01-28 Thread Colm O hEigeartaigh (JIRA)
Colm O hEigeartaigh created SYNCOPE-295:
---

 Summary: If AccountId is selected when creating a Resource 
Mapping, then make it mandatory
 Key: SYNCOPE-295
 URL: https://issues.apache.org/jira/browse/SYNCOPE-295
 Project: Syncope
  Issue Type: Improvement
Reporter: Colm O hEigeartaigh
Assignee: Colm O hEigeartaigh
Priority: Trivial
 Fix For: 1.1.0



If AccountId is selected when creating a Resource Mapping, then make it 
mandatory + remove the ability to edit the Mandatory field. As an Account Id 
mapping is always mandatory, then this makes creating new resource mappings 
slightly quicker.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


Console Connector version

2013-01-28 Thread Colm O hEigeartaigh
Hi guys,

Another minor usability query in the trunk Console. When selecting a
Connector bundle name you still have to select the version even if only one
version is available. IMO it should default to selecting the given version
if only one is available. What do you think?

Colm.


-- 
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com


Re: Console Connector version

2013-01-28 Thread Francesco Chicchiriccò

On 28/01/2013 16:29, Colm O hEigeartaigh wrote:

Hi guys,

Another minor usability query in the trunk Console. When selecting a
Connector bundle name you still have to select the version even if only one
version is available. IMO it should default to selecting the given version
if only one is available. What do you think?


+1

Regards.

--
Francesco Chicchiriccò

ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member
http://people.apache.org/~ilgrosso/



Re: [Question] Problem with test UsertTestITCase.issueSYNCOPE279

2013-01-28 Thread Fabio Martelli
Hi Andrei, answers and comment inline.

Il giorno 28/gen/2013, alle ore 16.09, Andrei Shakirin ha scritto:

> Hi,
> 
> I am analysing problem regarding UsertTestITCase.issueSYNCOPE279().
> It is reproducible in following situations:
> 
> 1)  Run it as single test: mvn -Pdev -DwaitForCheck=false -Dit.test= 
> UserTestITCase# issueSYNCOPE279

Wow, strange, I implemented using these options ...

> Because of some reasons this test is succeed in case if 
> AuthenticationTestITCase,ResourceTestITCase,RoleTestITCase,SchemaTestITCase,UserRequestTestITCase
>  were executed before (interesting :) )

This is really strange. issueSYNCOPE279 shouldn't have any dependency.
Please, take a look at the code: it simply create a new profile giving it an 
ad-hoc resource (never used before).

> 2)  If all core integration tests is running under JDK 1.7
> 3)  With some other conditions.
> 
> My analysis shows that the end reason is that SOAP connector (using CXF 
> client) receives HTML as response for test() invocation:
> 
> 15:47:46.041 DEBUG 
> org.identityconnectors.framework.api.operations.GetApiOp.getObject Exception:
> javax.xml.ws.soap.SOAPFaultException: Response was of unexpected text/html 
> ContentType.  Incoming portion of HTML stream: OK
>at 
> org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:156) 
> ~[cxf-rt-frontend-jaxws-2.7.0.jar:2.7.0]
>at $Proxy196.checkAlive(Unknown Source) ~[na:na]
>at 
> org.connid.bundles.soap.WebServiceConnection.test(WebServiceConnection.java:89)
>  ~[na:na]
>at 
> org.connid.bundles.soap.WebServiceConnector.checkAlive(WebServiceConnector.java:169)
>  ~[na:na]
>at 
> org.identityconnectors.framework.impl.api.local.ConnectorPoolManager$ConnectorPoolHandler.testObject(ConnectorPoolManager.java:105)
>  ~[framework-internal-1.3.2.jar:na]

This exception occurs after the Timeout. It is thrown by the "zombie" task.

> Therefore propagation of resource "ws-target-resource-3" is failed with 
> following error:
> 
> 15:46:55.221 ERROR 
> org.apache.syncope.core.propagation.impl.AbstractPropagationTaskExecutor - 
> Exception during provision on resource ws-target-resource-3
> org.apache.syncope.core.propagation.TimeoutException: Request timeout
>at 
> org.apache.syncope.core.propagation.impl.ConnectorFacadeProxy.getObject(ConnectorFacadeProxy.java:380)
>  ~[ConnectorFacadeProxy.class:na]
>at 
> org.apache.syncope.core.propagation.impl.AbstractPropagationTaskExecutor.getRemoteObject(AbstractPropagationTaskExecutor.java:438)
>  ~[AbstractPropagationTaskExecutor.class:na]
>at 
> org.apache.syncope.core.propagation.impl.AbstractPropagationTaskExecutor.execute(AbstractPropagationTaskExecutor.java:288)
>  ~[AbstractPropagationTaskExecutor.class:na]

This is the expected exception: it should be handled and returned as a 
SyncopeClientErrorException.

> Could you give a hint how to investigate this connector invocation error?
> To which instance SOAP connector sends test() request? Why it sometimes 
> answers with HTML?

It is not a really soap resource: it is a servlet returning "OK" after a delay 
of 60 seconds.
Syncope shouldn't take care of the result because it comes after the timeout.

Regards,
F.





Console Resource User Mapping error

2013-01-28 Thread Colm O hEigeartaigh
Hi guys,

I'm getting a strange error when adding some Resource User Mappings in the
Console on trunk. I have a H2 backend, and I configure a Connector for it.
I am adding a Username/Password/User Schema attribute mapping. When I try
to save it, I see an "Error:null" on the top of the screen + the following
error in the logs:

15:43:51.031 ERROR org.apache.syncope.console.pages.AbstractBasePage -
Failure managing resource org.apache.syncope.common.to.ResourceTO@d0bbe47.

The weird thing is when I cancel the Resource creation it still appears in
the table, and when I edit it again and look at the User mappings, I see
that the Username + Password (AccountId + Password) mappings show up with
an external attribute configured from the table in the backend.

Can someone confirm this is a bug?

Thanks,

Colm.


-- 
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com


[jira] [Resolved] (SYNCOPE-292) NPE when accessing Configuration page with no global sync policy

2013-01-28 Thread Jan Bernhardt (JIRA)

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

Jan Bernhardt resolved SYNCOPE-292.
---

Resolution: Fixed

> NPE when accessing Configuration page with no global sync policy
> 
>
> Key: SYNCOPE-292
> URL: https://issues.apache.org/jira/browse/SYNCOPE-292
> Project: Syncope
>  Issue Type: Bug
>  Components: console
>Affects Versions: 1.1.0
>Reporter: Francesco Chicchiriccò
>Assignee: Jan Bernhardt
> Fix For: 1.1.0
>
>
> As reported in ML [1], there is an issue when no global sync policy exists.
> [1] http://syncope-dev.1063484.n5.nabble.com/NPE-in-Console-tt5712327.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


Re: Console Resource User Mapping error

2013-01-28 Thread Francesco Chicchiriccò

On 28/01/2013 16:48, Colm O hEigeartaigh wrote:

Hi guys,

I'm getting a strange error when adding some Resource User Mappings in the
Console on trunk. I have a H2 backend, and I configure a Connector for it.
I am adding a Username/Password/User Schema attribute mapping. When I try
to save it, I see an "Error:null" on the top of the screen + the following
error in the logs:

15:43:51.031 ERROR org.apache.syncope.console.pages.AbstractBasePage -
Failure managing resource org.apache.syncope.common.to.ResourceTO@d0bbe47.

The weird thing is when I cancel the Resource creation it still appears in
the table, and when I edit it again and look at the User mappings, I see
that the Username + Password (AccountId + Password) mappings show up with
an external attribute configured from the table in the backend.

Can someone confirm this is a bug?


At least it smells like that :-)

You should take a deeper log to both console's and core's logs to 
understand what's happening.


Are you creating the H2 connector in the same session as the associated 
resource or is the connector pre-existing? My guess is that the schema() 
call on the connector is failing for some reason.


Regards.

--
Francesco Chicchiriccò

ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member
http://people.apache.org/~ilgrosso/



[jira] [Commented] (SYNCOPE-292) NPE when accessing Configuration page with no global sync policy

2013-01-28 Thread Colm O hEigeartaigh (JIRA)

[ 
https://issues.apache.org/jira/browse/SYNCOPE-292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13564376#comment-13564376
 ] 

Colm O hEigeartaigh commented on SYNCOPE-292:
-


Thanks, fix confirmed.

Colm.

> NPE when accessing Configuration page with no global sync policy
> 
>
> Key: SYNCOPE-292
> URL: https://issues.apache.org/jira/browse/SYNCOPE-292
> Project: Syncope
>  Issue Type: Bug
>  Components: console
>Affects Versions: 1.1.0
>Reporter: Francesco Chicchiriccò
>Assignee: Jan Bernhardt
> Fix For: 1.1.0
>
>
> As reported in ML [1], there is an issue when no global sync policy exists.
> [1] http://syncope-dev.1063484.n5.nabble.com/NPE-in-Console-tt5712327.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


Re: Console Resource User Mapping error

2013-01-28 Thread Colm O hEigeartaigh
Hi Francesco,

I am creating the new Connector from scratch + adding the new Resource.
Looking at core-rest.log I see the following:

16:24:39.799 DEBUG
org.apache.syncope.core.rest.controller.AbstractController - Resource
creation: org.apache.syncope.common.to.ResourceTO@1e2fce9c[
  name=H2 Resource
  connectorId=1000
  umapping=org.apache.syncope.common.to.MappingTO@54a5733f[
  accountLink=
  items=[org.apache.syncope.common.to.MappingItemTO@3a315883[
  id=
  intAttrName=
  intMappingType=Username
  extAttrName=
  accountid=true
  password=false
  mandatoryCondition=true
], org.apache.syncope.common.to.MappingItemTO@2bab91af[
  id=
  intAttrName=
  intMappingType=Password
  extAttrName=
  accountid=false
  password=true
  mandatoryCondition=true
], org.apache.syncope.common.to.MappingItemTO@398e54e8[
  id=
  intAttrName=surname
  intMappingType=UserSchema
  extAttrName=SURNAME
  accountid=false
  password=false
  mandatoryCondition=true
], org.apache.syncope.common.to.MappingItemTO@6fbc9d7b[
  id=
  intAttrName=
  intMappingType=Username
  extAttrName=__NAME__
  accountid=true
  password=false
  mandatoryCondition=true
], org.apache.syncope.common.to.MappingItemTO@48072f8c[
  id=
  intAttrName=
  intMappingType=Password
  extAttrName=__PASSWORD__
  accountid=false
  password=true
  mandatoryCondition=true
]]


Unless I am mistaken, it appears to be creating 5 mappings here?

a) Username -> AccountId
b) Password -> Password
c) surname -> SURNAME

and the extra:

d) Username -> AccountId (with extAttrName=__NAME__)
e) Password -> Password (with extAttrName=__PASSWORD__)

Colm.


On Mon, Jan 28, 2013 at 4:13 PM, Francesco Chicchiriccò  wrote:

> On 28/01/2013 16:48, Colm O hEigeartaigh wrote:
>
>> Hi guys,
>>
>> I'm getting a strange error when adding some Resource User Mappings in the
>> Console on trunk. I have a H2 backend, and I configure a Connector for it.
>> I am adding a Username/Password/User Schema attribute mapping. When I try
>> to save it, I see an "Error:null" on the top of the screen + the following
>> error in the logs:
>>
>> 15:43:51.031 ERROR org.apache.syncope.console.**pages.AbstractBasePage -
>> Failure managing resource org.apache.syncope.common.to.**
>> ResourceTO@d0bbe47.
>>
>> The weird thing is when I cancel the Resource creation it still appears in
>> the table, and when I edit it again and look at the User mappings, I see
>> that the Username + Password (AccountId + Password) mappings show up with
>> an external attribute configured from the table in the backend.
>>
>> Can someone confirm this is a bug?
>>
>
> At least it smells like that :-)
>
> You should take a deeper log to both console's and core's logs to
> understand what's happening.
>
> Are you creating the H2 connector in the same session as the associated
> resource or is the connector pre-existing? My guess is that the schema()
> call on the connector is failing for some reason.
>
> Regards.
>
> --
> Francesco Chicchiriccò
>
> ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member
> http://people.apache.org/~**ilgrosso/
>
>


-- 
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com


Re: Console Resource User Mapping error

2013-01-28 Thread Francesco Chicchiriccò

On 28/01/2013 17:32, Colm O hEigeartaigh wrote:

Hi Francesco,

I am creating the new Connector from scratch + adding the new Resource.
Looking at core-rest.log I see the following:

[...]
Unless I am mistaken, it appears to be creating 5 mappings here?

a) Username -> AccountId
b) Password -> Password
c) surname -> SURNAME

and the extra:

d) Username -> AccountId (with extAttrName=__NAME__)
e) Password -> Password (with extAttrName=__PASSWORD__)


That's wrong, it seems like (d) and (e) are some sort of "preliminary" 
version of (a) and (b).


Anyway, this should generate an error for "invalid mapping", since there 
must be exactly a single AccountId per resource (and user / role).


Is this reported in the logs? Is the mapping created on the core?

Regards.


On Mon, Jan 28, 2013 at 4:13 PM, Francesco Chicchiriccò 
wrote:
On 28/01/2013 16:48, Colm O hEigeartaigh wrote:


Hi guys,

I'm getting a strange error when adding some Resource User Mappings in the
Console on trunk. I have a H2 backend, and I configure a Connector for it.
I am adding a Username/Password/User Schema attribute mapping. When I try
to save it, I see an "Error:null" on the top of the screen + the following
error in the logs:

15:43:51.031 ERROR org.apache.syncope.console.**pages.AbstractBasePage -
Failure managing resource org.apache.syncope.common.to.**
ResourceTO@d0bbe47.

The weird thing is when I cancel the Resource creation it still appears in
the table, and when I edit it again and look at the User mappings, I see
that the Username + Password (AccountId + Password) mappings show up with
an external attribute configured from the table in the backend.

Can someone confirm this is a bug?


At least it smells like that :-)

You should take a deeper log to both console's and core's logs to
understand what's happening.

Are you creating the H2 connector in the same session as the associated
resource or is the connector pre-existing? My guess is that the schema()
call on the connector is failing for some reason.

Regards.


--
Francesco Chicchiriccò

ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member
http://people.apache.org/~ilgrosso/



[jira] [Updated] (SYNCOPE-293) Modify version layout

2013-01-28 Thread Massimiliano Perrone (JIRA)

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

Massimiliano Perrone updated SYNCOPE-293:
-

Attachment: wp.png
bp.png

Latest version :)

> Modify version layout
> -
>
> Key: SYNCOPE-293
> URL: https://issues.apache.org/jira/browse/SYNCOPE-293
> Project: Syncope
>  Issue Type: Improvement
>  Components: console
>Reporter: Massimiliano Perrone
>Assignee: Massimiliano Perrone
> Fix For: 1.1.0
>
> Attachments: bp.png, bp.png, wp.png, wp.png
>
>
> Current layout has a static labels to core and console version.
> Add a new Link to open a ModalPage with version and other project information 
> (eg. link to license)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


Re: Console Resource User Mapping error

2013-01-28 Thread Colm O hEigeartaigh
Apologies, for the noise, I've found the error:

java.lang.IllegalArgumentException
at java.net.URI.create(URI.java:841)
at
org.apache.syncope.client.services.proxy.ResourceServiceProxy.create(ResourceServiceProxy.java:48)
at
org.apache.syncope.console.rest.ResourceRestClient.create(ResourceRestClient.java:65)

...

Caused by: java.net.URISyntaxException: Illegal character in path at index
51: http://localhost:9080/syncope/rest/resource/read/H2 Resource.json
at java.net.URI$Parser.fail(URI.java:2810)

It can't handle a space in the name of the Resource.

Colm.

On Mon, Jan 28, 2013 at 4:37 PM, Francesco Chicchiriccò  wrote:

> On 28/01/2013 17:32, Colm O hEigeartaigh wrote:
>
>> Hi Francesco,
>>
>> I am creating the new Connector from scratch + adding the new Resource.
>> Looking at core-rest.log I see the following:
>>
>> [...]
>>
>> Unless I am mistaken, it appears to be creating 5 mappings here?
>>
>> a) Username -> AccountId
>> b) Password -> Password
>> c) surname -> SURNAME
>>
>> and the extra:
>>
>> d) Username -> AccountId (with extAttrName=__NAME__)
>> e) Password -> Password (with extAttrName=__PASSWORD__)
>>
>
> That's wrong, it seems like (d) and (e) are some sort of "preliminary"
> version of (a) and (b).
>
> Anyway, this should generate an error for "invalid mapping", since there
> must be exactly a single AccountId per resource (and user / role).
>
> Is this reported in the logs? Is the mapping created on the core?
>
> Regards.
>
>  On Mon, Jan 28, 2013 at 4:13 PM, Francesco Chicchiriccò <
>> ilgro...@apache.org
>>
>>> wrote:
>>> On 28/01/2013 16:48, Colm O hEigeartaigh wrote:
>>>
>>>  Hi guys,

 I'm getting a strange error when adding some Resource User Mappings in
 the
 Console on trunk. I have a H2 backend, and I configure a Connector for
 it.
 I am adding a Username/Password/User Schema attribute mapping. When I
 try
 to save it, I see an "Error:null" on the top of the screen + the
 following
 error in the logs:

 15:43:51.031 ERROR org.apache.syncope.console.pages.AbstractBasePage
 -
 Failure managing resource org.apache.syncope.common.to.

 ResourceTO@d0bbe47.

 The weird thing is when I cancel the Resource creation it still appears
 in
 the table, and when I edit it again and look at the User mappings, I see
 that the Username + Password (AccountId + Password) mappings show up
 with
 an external attribute configured from the table in the backend.

 Can someone confirm this is a bug?

  At least it smells like that :-)
>>>
>>> You should take a deeper log to both console's and core's logs to
>>> understand what's happening.
>>>
>>> Are you creating the H2 connector in the same session as the associated
>>> resource or is the connector pre-existing? My guess is that the schema()
>>> call on the connector is failing for some reason.
>>>
>>> Regards.
>>>
>>
> --
> Francesco Chicchiriccò
>
> ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member
> http://people.apache.org/~**ilgrosso/
>
>


-- 
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com


[jira] [Updated] (SYNCOPE-293) Modify version layout

2013-01-28 Thread Massimiliano Perrone (JIRA)

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

Massimiliano Perrone updated SYNCOPE-293:
-

Attachment: (was: bp.png)

> Modify version layout
> -
>
> Key: SYNCOPE-293
> URL: https://issues.apache.org/jira/browse/SYNCOPE-293
> Project: Syncope
>  Issue Type: Improvement
>  Components: console
>Reporter: Massimiliano Perrone
>Assignee: Massimiliano Perrone
> Fix For: 1.1.0
>
> Attachments: bp.png, wp.png
>
>
> Current layout has a static labels to core and console version.
> Add a new Link to open a ModalPage with version and other project information 
> (eg. link to license)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (SYNCOPE-293) Modify version layout

2013-01-28 Thread Massimiliano Perrone (JIRA)

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

Massimiliano Perrone updated SYNCOPE-293:
-

Attachment: (was: wp.png)

> Modify version layout
> -
>
> Key: SYNCOPE-293
> URL: https://issues.apache.org/jira/browse/SYNCOPE-293
> Project: Syncope
>  Issue Type: Improvement
>  Components: console
>Reporter: Massimiliano Perrone
>Assignee: Massimiliano Perrone
> Fix For: 1.1.0
>
> Attachments: bp.png, wp.png
>
>
> Current layout has a static labels to core and console version.
> Add a new Link to open a ModalPage with version and other project information 
> (eg. link to license)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


Re: Console Resource User Mapping error

2013-01-28 Thread Francesco Chicchiriccò

On 28/01/2013 17:41, Colm O hEigeartaigh wrote:

Apologies, for the noise, I've found the error:

java.lang.IllegalArgumentException
 at java.net.URI.create(URI.java:841)
 at
org.apache.syncope.client.services.proxy.ResourceServiceProxy.create(ResourceServiceProxy.java:48)
 at
org.apache.syncope.console.rest.ResourceRestClient.create(ResourceRestClient.java:65)

...

Caused by: java.net.URISyntaxException: Illegal character in path at index
51: http://localhost:9080/syncope/rest/resource/read/H2 Resource.json
 at java.net.URI$Parser.fail(URI.java:2810)

It can't handle a space in the name of the Resource.


Are we just missing a good old URLEncoder.encode() in 
ConnectorRestClient,java on console side?


Regards.


On Mon, Jan 28, 2013 at 4:37 PM, Francesco Chicchiriccò 
wrote:
On 28/01/2013 17:32, Colm O hEigeartaigh wrote:


Hi Francesco,

I am creating the new Connector from scratch + adding the new Resource.
Looking at core-rest.log I see the following:

[...]

Unless I am mistaken, it appears to be creating 5 mappings here?

a) Username -> AccountId
b) Password -> Password
c) surname -> SURNAME

and the extra:

d) Username -> AccountId (with extAttrName=__NAME__)
e) Password -> Password (with extAttrName=__PASSWORD__)


That's wrong, it seems like (d) and (e) are some sort of "preliminary"
version of (a) and (b).

Anyway, this should generate an error for "invalid mapping", since there
must be exactly a single AccountId per resource (and user / role).

Is this reported in the logs? Is the mapping created on the core?

Regards.

  On Mon, Jan 28, 2013 at 4:13 PM, Francesco Chicchiriccò <

ilgro...@apache.org


wrote:
On 28/01/2013 16:48, Colm O hEigeartaigh wrote:

  Hi guys,

I'm getting a strange error when adding some Resource User Mappings in
the
Console on trunk. I have a H2 backend, and I configure a Connector for
it.
I am adding a Username/Password/User Schema attribute mapping. When I
try
to save it, I see an "Error:null" on the top of the screen + the
following
error in the logs:

15:43:51.031 ERROR org.apache.syncope.console.pages.AbstractBasePage
-
Failure managing resource org.apache.syncope.common.to.

ResourceTO@d0bbe47.

The weird thing is when I cancel the Resource creation it still appears
in
the table, and when I edit it again and look at the User mappings, I see
that the Username + Password (AccountId + Password) mappings show up
with
an external attribute configured from the table in the backend.

Can someone confirm this is a bug?

  At least it smells like that :-)

You should take a deeper log to both console's and core's logs to
understand what's happening.

Are you creating the H2 connector in the same session as the associated
resource or is the connector pre-existing? My guess is that the schema()
call on the connector is failing for some reason.

Regards.


--
Francesco Chicchiriccò

ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member
http://people.apache.org/~ilgrosso/



Re: Console Resource User Mapping error

2013-01-28 Thread Colm O hEigeartaigh
Looks like it ;-)

It appears there is a second bug in that the ResourceModalPage is not
displaying errors properly, hence the "Error:null" display. I'll fix both.

Colm.

On Mon, Jan 28, 2013 at 4:45 PM, Francesco Chicchiriccò  wrote:

> On 28/01/2013 17:41, Colm O hEigeartaigh wrote:
>
>> Apologies, for the noise, I've found the error:
>>
>> java.lang.**IllegalArgumentException
>>  at java.net.URI.create(URI.java:**841)
>>  at
>> org.apache.syncope.client.**services.proxy.**ResourceServiceProxy.create(
>> **ResourceServiceProxy.java:48)
>>  at
>> org.apache.syncope.console.**rest.ResourceRestClient.**
>> create(ResourceRestClient.**java:65)
>>
>> ...
>>
>> Caused by: java.net.URISyntaxException: Illegal character in path at index
>> 51: 
>> http://localhost:9080/syncope/**rest/resource/read/H2Resource.json
>>  at java.net.URI$Parser.fail(URI.**java:2810)
>>
>> It can't handle a space in the name of the Resource.
>>
>
> Are we just missing a good old URLEncoder.encode() in
> ConnectorRestClient,java on console side?
>
> Regards.
>
>  On Mon, Jan 28, 2013 at 4:37 PM, Francesco Chicchiriccò <
>> ilgro...@apache.org
>>
>>> wrote:
>>> On 28/01/2013 17:32, Colm O hEigeartaigh wrote:
>>>
>>>  Hi Francesco,

 I am creating the new Connector from scratch + adding the new Resource.
 Looking at core-rest.log I see the following:

 [...]

 Unless I am mistaken, it appears to be creating 5 mappings here?

 a) Username -> AccountId
 b) Password -> Password
 c) surname -> SURNAME

 and the extra:

 d) Username -> AccountId (with extAttrName=__NAME__)
 e) Password -> Password (with extAttrName=__PASSWORD__)

  That's wrong, it seems like (d) and (e) are some sort of "preliminary"
>>> version of (a) and (b).
>>>
>>> Anyway, this should generate an error for "invalid mapping", since there
>>> must be exactly a single AccountId per resource (and user / role).
>>>
>>> Is this reported in the logs? Is the mapping created on the core?
>>>
>>> Regards.
>>>
>>>   On Mon, Jan 28, 2013 at 4:13 PM, Francesco Chicchiriccò <
>>>
 ilgro...@apache.org

  wrote:
> On 28/01/2013 16:48, Colm O hEigeartaigh wrote:
>
>   Hi guys,
>
>> I'm getting a strange error when adding some Resource User Mappings in
>> the
>> Console on trunk. I have a H2 backend, and I configure a Connector for
>> it.
>> I am adding a Username/Password/User Schema attribute mapping. When I
>> try
>> to save it, I see an "Error:null" on the top of the screen + the
>> following
>> error in the logs:
>>
>> 15:43:51.031 ERROR org.apache.syncope.console.*
>> *pages.AbstractBasePage
>> -
>> Failure managing resource org.apache.syncope.common.to.**
>>
>>
>> ResourceTO@d0bbe47.
>>
>> The weird thing is when I cancel the Resource creation it still
>> appears
>> in
>> the table, and when I edit it again and look at the User mappings, I
>> see
>> that the Username + Password (AccountId + Password) mappings show up
>> with
>> an external attribute configured from the table in the backend.
>>
>> Can someone confirm this is a bug?
>>
>>   At least it smells like that :-)
>>
> You should take a deeper log to both console's and core's logs to
> understand what's happening.
>
> Are you creating the H2 connector in the same session as the associated
> resource or is the connector pre-existing? My guess is that the
> schema()
> call on the connector is failing for some reason.
>
> Regards.
>

> --
> Francesco Chicchiriccò
>
> ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member
> http://people.apache.org/~**ilgrosso/
>
>


-- 
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com


[jira] [Commented] (SYNCOPE-293) Modify version layout

2013-01-28 Thread JIRA

[ 
https://issues.apache.org/jira/browse/SYNCOPE-293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13564403#comment-13564403
 ] 

Francesco Chicchiriccò commented on SYNCOPE-293:


I like the icon in the header of internal pages.

About welcome page, I would move the icon in the darker green band, possibly 
centered like as the Syncope logo is, or right aligned.

About the text for the license link, please consider Jan suggestion and don't 
link the first two words ("Licensed under").

> Modify version layout
> -
>
> Key: SYNCOPE-293
> URL: https://issues.apache.org/jira/browse/SYNCOPE-293
> Project: Syncope
>  Issue Type: Improvement
>  Components: console
>Reporter: Massimiliano Perrone
>Assignee: Massimiliano Perrone
> Fix For: 1.1.0
>
> Attachments: bp.png, wp.png
>
>
> Current layout has a static labels to core and console version.
> Add a new Link to open a ModalPage with version and other project information 
> (eg. link to license)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (SYNCOPE-231) Using Standard JAX-RS API in Syncope (Replace Spring Webservice Stack with Apache CXF)

2013-01-28 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/SYNCOPE-231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13564416#comment-13564416
 ] 

Hudson commented on SYNCOPE-231:


Integrated in Syncope-trunk #19 (See 
[https://builds.apache.org/job/Syncope-trunk/19/])
SYNCOPE-231 Removing explicit Exception handling where ExceptionMapper 
should work (Revision 1439474)
[SYNCOPE-231]
* Adding (fixing) JAX-B Annotations (Revision 1439469)
SYNCOPE-231 Changing return of UserService.create to Response, making params 
final (Revision 1439455)

 Result = SUCCESS
cschneider : 
Files : 
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/services/ConfigurationServiceImpl.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/services/ConnectorServiceImpl.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/services/ContextAware.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/services/LoggerServiceImpl.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/services/NotificationServiceImpl.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/services/PolicyServiceImpl.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/services/ReportServiceImpl.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/services/ResourceServiceImpl.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/services/RoleServiceImpl.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/services/SchemaServiceImpl.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/services/UserRequestServiceImpl.java

jbernhardt : 
Files : 
* 
/syncope/trunk/common/src/main/java/org/apache/syncope/common/report/StaticReportletConf.java
* 
/syncope/trunk/common/src/main/java/org/apache/syncope/common/report/UserReportletConf.java
* 
/syncope/trunk/console/src/main/java/org/apache/syncope/console/rest/PolicyRestClient.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/services/ReportServiceImpl.java
* 
/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/AbstractTest.java
* 
/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/ReportTestITCase.java
* 
/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/jaxrs/EntitlementTestITCaseJAXRS.java
* 
/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/jaxrs/PolicyTestITCaseJAXRS.java
* 
/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/jaxrs/ReportTestITCaseJAXRS.java
* 
/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/jaxrs/SchemaTestITCaseJAXRS.java

cschneider : 
Files : 
* 
/syncope/trunk/client/src/main/java/org/apache/syncope/client/services/proxy/UserServiceProxy.java
* 
/syncope/trunk/common/src/main/java/org/apache/syncope/common/services/UserService.java
* 
/syncope/trunk/console/src/main/java/org/apache/syncope/console/rest/UserRestClient.java
* 
/syncope/trunk/core/src/main/java/org/apache/syncope/core/services/UserServiceImpl.java
* 
/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/AbstractTest.java
* 
/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/AuthenticationTestITCase.java
* 
/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/SchemaTestITCase.java
* 
/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/TaskTestITCase.java
* 
/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/UserRequestTestITCase.java
* 
/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/UserTestITCase.java


> Using Standard JAX-RS API in Syncope (Replace Spring Webservice Stack with 
> Apache CXF)
> --
>
> Key: SYNCOPE-231
> URL: https://issues.apache.org/jira/browse/SYNCOPE-231
> Project: Syncope
>  Issue Type: Improvement
>  Components: console, core
>Reporter: Jan Bernhardt
>Assignee: Jan Bernhardt
> Fix For: 1.2.0
>
> Attachments: TaskService.patch
>
>
> Current REST Interfaces are based on Spring Webservice framework. 
> Goal of this task is to replace Spring with CXF and to relay on JAX-B and 
> JAX-RS annotations rather then Spring annotations.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (SYNCOPE-292) NPE when accessing Configuration page with no global sync policy

2013-01-28 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/SYNCOPE-292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13564417#comment-13564417
 ] 

Hudson commented on SYNCOPE-292:


Integrated in Syncope-trunk #19 (See 
[https://builds.apache.org/job/Syncope-trunk/19/])
SYNCOPE-292 (Revision 1439466)

 Result = SUCCESS
jbernhardt : 
Files : 
* 
/syncope/trunk/client/src/main/java/org/apache/syncope/client/services/proxy/ReportServiceProxy.java


> NPE when accessing Configuration page with no global sync policy
> 
>
> Key: SYNCOPE-292
> URL: https://issues.apache.org/jira/browse/SYNCOPE-292
> Project: Syncope
>  Issue Type: Bug
>  Components: console
>Affects Versions: 1.1.0
>Reporter: Francesco Chicchiriccò
>Assignee: Jan Bernhardt
> Fix For: 1.1.0
>
>
> As reported in ML [1], there is an issue when no global sync policy exists.
> [1] http://syncope-dev.1063484.n5.nabble.com/NPE-in-Console-tt5712327.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


Re: Console Connector version

2013-01-28 Thread Massimiliano Perrone

Il 28/01/2013 16:29, Colm O hEigeartaigh ha scritto:

Hi guys,

Another minor usability query in the trunk Console. When selecting a
Connector bundle name you still have to select the version even if only one
version is available. IMO it should default to selecting the given version
if only one is available. What do you think?
   


+1

Massimiliano


Colm.


   



--
Massimiliano Perrone
Tel +39 393 9121310

Tirasa S.r.l.
Viale D'Annunzio 267 - 65127 Pescara
Tel +39 0859116307 / FAX +39 085973
http://www.tirasa.net

Apache Syncope PMC Member
http://people.apache.org/~massi/

"L'apprendere molte cose non insegna l'intelligenza"
(Eraclito)



[jira] [Assigned] (SYNCOPE-210) Provide suggestions / help / examples for JEXL-based input fields

2013-01-28 Thread Massimiliano Perrone (JIRA)

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

Massimiliano Perrone reassigned SYNCOPE-210:


Assignee: Massimiliano Perrone

> Provide suggestions / help / examples for JEXL-based input fields
> -
>
> Key: SYNCOPE-210
> URL: https://issues.apache.org/jira/browse/SYNCOPE-210
> Project: Syncope
>  Issue Type: Improvement
>  Components: console
>Reporter: Francesco Chicchiriccò
>Assignee: Massimiliano Perrone
> Fix For: 1.1.0
>
>
> There are many input text fields accepting JEXL syntax:
>  * derived schema definition (user / role / membership)
>  * values for defining synchronization user template
>  * schema mapping's mandatory condition
>  * ...
> Users would benefit from some examples, help, suggestions, link to JEXL 
> reference to be displayed in (or linked from) the web forms containing such 
> input fields.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Resolved] (SYNCOPE-293) Modify version layout

2013-01-28 Thread Massimiliano Perrone (JIRA)

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

Massimiliano Perrone resolved SYNCOPE-293.
--

Resolution: Fixed

Resolved with: http://svn.apache.org/viewvc?rev=1439514&view=rev

> Modify version layout
> -
>
> Key: SYNCOPE-293
> URL: https://issues.apache.org/jira/browse/SYNCOPE-293
> Project: Syncope
>  Issue Type: Improvement
>  Components: console
>Reporter: Massimiliano Perrone
>Assignee: Massimiliano Perrone
> Fix For: 1.1.0
>
> Attachments: bp.png, wp.png
>
>
> Current layout has a static labels to core and console version.
> Add a new Link to open a ModalPage with version and other project information 
> (eg. link to license)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


RE: [Question] Problem with test UsertTestITCase.issueSYNCOPE279

2013-01-28 Thread Andrei Shakirin
Hi Fabio,

Investigated a little bit more and found the following:

1. TimeoutException
> This is the expected exception: it should be handled and returned as a
> SyncopeClientErrorException.

Not really. As far as I can see TimeoutException thrown by 
ConnectorFacadeProxy.getObject() is never wrapped to 
SyncopeClientErrorException.
Check the whole chain: UserController.create() -> 
UserController.createInternal() -> taskExecutor.execute() -> 
PriorityPropagationTaskExecutor.execute() -> 
AbstractPropagationTaskExecutor.getRemoteObject() -> 
ConnectorFacadeProxy.getObject();

AbstractPropagationTaskExecutor.getRemoteObject() just re-throws the Timeout 
exception.
syncopeClientError.jsp doesn't handle the TimeoutException and returns 
InternalServerError that I get from my test.

That explains why this test doesn't work. Why it works during the build? - see 
topic (2)

2. Why UserTestITCase. issueSYNCOPE279() works sometimes.
 If UserTestITCase executed after some previous tests (or under some other 
conditions: JDK, OS, etc), it throws other exception BEFORE execute the task:

18:23:41.946 ERROR org.apache.syncope.core.rest.controller.AbstractController - 
Exception thrown by REST methods
org.springframework.dao.DataIntegrityViolationException: The transaction has 
been rolled back.  See the nested exceptions for details on the errors that 
occurred.; nested exception is  org.apache.openjpa.persistence.EntityExistsException: The transaction 
has been rolled back.  See the nested exceptions for details on the errors that 
occurred.
FailedObject: org.apache.syncope.core.persistence.beans.user.UVirAttr@cd0cca3
at 
org.springframework.orm.jpa.EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(EntityManagerFactoryUtils.java:313)
 ~[spring-orm-3.2.1.RELEASE.jar:3.2.1.RELEASE]
at 
org.springframework.orm.jpa.DefaultJpaDialect.translateExceptionIfPossible(DefaultJpaDialect.java:121)
 ~[spring-orm-3.2.1.RELEASE.jar:3.2.1.RELEASE]
at 
org.springframework.orm.jpa.JpaTransactionManager.doCommit(JpaTransactionManager.java:517)
 ~[spring-orm-3.2.1.RELEASE.jar:3.2.1.RELEASE]
at 
org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:755)
 ~[spring-tx-3.2.1.RELEASE.jar:3.2.1.RELEASE]
at 
org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:724)
 ~[spring-tx-3.2.1.RELEASE.jar:3.2.1.RELEASE]
at 
org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:387)
 ~[spring-tx-3.2.1.RELEASE.jar:3.2.1.RELEASE]
at 
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:120)
 ~[spring-tx-3.2.1.RELEASE.jar:3.2.1.RELEASE]
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
 ~[spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE]
at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
 ~[spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE]
at $Proxy137.create(Unknown Source) ~[na:na]
at 
org.apache.syncope.core.rest.controller.UserController.createInternal(UserController.java:306)
 ~[UserController.class:na]
at 
org.apache.syncope.core.rest.controller.UserController.create(UserController.java:284)
 ~[UserController.class:na]

Caused by: org.apache.openjpa.persistence.EntityExistsException: Eindeutiger 
Index oder Primärschlüssel verletzt: "PRIMARY_KEY_C4 ON PUBLIC.UVIRATTR(ID)"
Unique index or primary key violation: "PRIMARY_KEY_C4 ON PUBLIC.UVIRATTR(ID)"; 
SQL statement:
INSERT INTO PUBLIC.UVirAttr (ID, OWNER_ID, VIRTUALSCHEMA_NAME) VALUES (?, ?, ?) 
[23505-170] {prepstmnt 2122205967 INSERT INTO PUBLIC.UVirAttr (ID, OWNER_ID, 
VIRTUALSCHEMA_NAME) VALUES (?, ?, ?)} [code=23505, state=23505]

DataIntegrityViolationException is mapped to SyncopeClientCompositeError Type 
header in syncopeClientError.jsp and interpreted as SCCEE on the client side. 
Test is green just because this effect.
I think the reason of this DataIntegrityViolationException is AUTO generation 
strategy in AbstractVirtualAttribute entity.

It seems that this test runs successfully only occasionally because of another 
error. 
Could you confirm my findings?

If yes, we should fix the following:
1. Map TimeoutException to SCCEE
2. Fix DataIntegrityViolationException for AbstractVirtualAttribute

Generally I would propose to design integration tests as independent as 
possible. Dependencies between different test cases and individual tests makes 
error analyse extreme difficult and time consuming. Ideally integration test 
should leave environment unchanged or compensated.
WDYT?

Regards,
Andrei.

> -Original Message-
> From: Fabio Martelli [mailto:fabio.marte...@gmail.com]
> Sent: Montag, 28. Januar 2013 16:42
> To:

[jira] [Commented] (SYNCOPE-293) Modify version layout

2013-01-28 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/SYNCOPE-293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13564581#comment-13564581
 ] 

Hudson commented on SYNCOPE-293:


Integrated in Syncope-trunk #20 (See 
[https://builds.apache.org/job/Syncope-trunk/20/])
Fixed SYNCOPE-293 (Revision 1439514)

 Result = SUCCESS
massi : 
Files : 
* 
/syncope/trunk/console/src/main/java/org/apache/syncope/console/SyncopeApplication.java
* 
/syncope/trunk/console/src/main/java/org/apache/syncope/console/pages/InfoModalPage.java
* /syncope/trunk/console/src/main/resources/applicationContext.xml
* 
/syncope/trunk/console/src/main/resources/org/apache/syncope/console/pages/BasePage.html
* 
/syncope/trunk/console/src/main/resources/org/apache/syncope/console/pages/BasePage.properties
* 
/syncope/trunk/console/src/main/resources/org/apache/syncope/console/pages/BasePage_it.properties
* 
/syncope/trunk/console/src/main/resources/org/apache/syncope/console/pages/InfoModalPage.html
* 
/syncope/trunk/console/src/main/resources/org/apache/syncope/console/pages/InfoModalPage.properties
* 
/syncope/trunk/console/src/main/resources/org/apache/syncope/console/pages/InfoModalPage_it.properties
* 
/syncope/trunk/console/src/main/resources/org/apache/syncope/console/pages/WelcomePage.html
* 
/syncope/trunk/console/src/main/resources/org/apache/syncope/console/pages/WelcomePage.properties
* 
/syncope/trunk/console/src/main/resources/org/apache/syncope/console/pages/WelcomePage_it.properties
* /syncope/trunk/console/src/main/webapp/css/style.css
* /syncope/trunk/console/src/main/webapp/img/info.png
* /syncope/trunk/pom.xml


> Modify version layout
> -
>
> Key: SYNCOPE-293
> URL: https://issues.apache.org/jira/browse/SYNCOPE-293
> Project: Syncope
>  Issue Type: Improvement
>  Components: console
>Reporter: Massimiliano Perrone
>Assignee: Massimiliano Perrone
> Fix For: 1.1.0
>
> Attachments: bp.png, wp.png
>
>
> Current layout has a static labels to core and console version.
> Add a new Link to open a ModalPage with version and other project information 
> (eg. link to license)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira