Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cleaned up some issues in finishSave() #12

Merged
merged 1 commit into from
Apr 20, 2012
Merged

cleaned up some issues in finishSave() #12

merged 1 commit into from
Apr 20, 2012

Conversation

lsmith77
Copy link
Member

some parts were not refactored properly .. not 100% about the changes. seems like because of jsop we cannot map a few error cases anymore.

@dbu can you have a look?

// TODO: this will need to be changed when we refactor transport to use the diff format to store changes.
if (strpos($e->getMessage(), "405") !== false && strpos($e->getMessage(), "MKCOL") !== false) {
// TODO: can the 405 exception be thrown for other reasons too?
throw new ItemExistsException('This node probably already exists: '.$node->getPath(), $e->getCode(), $e);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hm, this is the only thing that really changed, right? would have helped if you had committed the whitespace fix separatly ;-)

we should look at the network traffic when we try to create something that exists. the information must be somewhere, probably in the response content. maybe its all handled already by the request class evaluating the xml contained in an error reply from the backend - otherwise we would get failing tests. or did we disable some test for the jsop change?

@lsmith77
Copy link
Member Author

any reason though to not merge this?
we can open a ticket on the rest .. the current code is broken.

@dbu
Copy link
Member

dbu commented Apr 20, 2012

ok

dbu added a commit that referenced this pull request Apr 20, 2012
cleaned up some issues in finishSave()
@dbu dbu merged commit e4be987 into master Apr 20, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants