Openbravo Issue Tracking System - POS2  | 
| View Issue Details | 
  | 
| ID | Project | Category | View Status | Date Submitted | Last Update | 
| 0056306 | POS2 | POS | public | 2024-08-13 07:12 | 2024-08-30 07:52 | 
  | 
| Reporter | sreehari |   | 
| Assigned To | sreehari |   | 
| Priority | immediate | Severity | critical | Reproducibility | random | 
| Status | closed | Resolution | fixed |   | 
| Platform |  | OS | 5 | OS Version |  | 
| Product Version |  |   | 
| Target Version | 24Q3.1 | Fixed in Version | 24Q3.1 |   | 
| Merge Request Status | approved | 
| Review Assigned To |  | 
| OBNetwork customer | No | 
| Support ticket | 56070 | 
| Regression level |  | 
| Regression date |  | 
| Regression introduced in release |  | 
| Regression introduced by commit |  | 
| Triggers an Emergency Pack | No | 
  | 
| Summary | 0056306: Implement second Mitigation for duplicating document sequence number | 
| Description | First Mitigation correctly detects if the state is incorrect 
 
Second Mitigation should detect that the state is consistent, but outdated 
 
 
 | 
| Steps To Reproduce | 1.Force a request to the backend, to retrieve "latest" sequence values 
 
2.Compare these latest sequence values with the current ones in the state 
 
Adding a else case to this if condition 
https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/2811/diffs#f4d041f0b1c18efe7cf1078a093ace355ae7efb7_141_145 [^] | 
| Proposed Solution | if at least one is greater in the backend -> something went wrong,  
and the state i outdated.  
In this case, force the regeneration of the sequence values from the ones in the backend. | 
| Additional Information |  | 
| Tags | No tags attached. | 
| Relationships | | blocks  | defect  | 0056246 |   | closed  | sreehari  | Implement second Mitigation for duplicating document sequence number  |  
  | 
| Attached Files |  | 
  | 
| Issue History | 
| Date Modified | Username | Field | Change | 
| 2024-08-27 08:20 | marvintm | Type | defect => backport | 
| 2024-08-27 08:20 | marvintm | Target Version |  => 24Q3.1 | 
| 2024-08-27 13:42 | hgbot | Note Added: 0168480 |  | 
| 2024-08-27 13:43 | hgbot | Note Added: 0168481 |  | 
| 2024-08-30 07:52 | hgbot | Note Added: 0168562 |  | 
| 2024-08-30 07:52 | hgbot | Note Added: 0168563 |  | 
| 2024-08-30 07:52 | hgbot | Note Added: 0168564 |  | 
| 2024-08-30 07:52 | hgbot | Resolution | open => fixed | 
| 2024-08-30 07:52 | hgbot | Status | scheduled => closed | 
| 2024-08-30 07:52 | hgbot | Fixed in Version |  => 24Q3.1 | 
| 2024-08-30 07:52 | hgbot | Note Added: 0168565 |  | 
	| 
		Notes	 | 
	
		 
	 | 
	
		
		
			| 
				(0168480)
			 | 
		 
		
			| 
				hgbot   
			 | 
		 
		
			| 
				2024-08-27 13:42   
							 | 
		 
		 
	 | 
	
		
	 | 
	
		 
	 | 
	
		
		
			| 
				(0168481)
			 | 
		 
		
			| 
				hgbot   
			 | 
		 
		
			| 
				2024-08-27 13:43   
							 | 
		 
		 
	 | 
	
		
	 | 
	
		 
	 | 
	
		
		
			| 
				(0168562)
			 | 
		 
		
			| 
				hgbot   
			 | 
		 
		
			| 
				2024-08-30 07:52   
							 | 
		 
		 
	 | 
	
		
	 | 
	
		 
	 | 
	
		
		
			| 
				(0168563)
			 | 
		 
		
			| 
				hgbot   
			 | 
		 
		
			| 
				2024-08-30 07:52   
							 | 
		 
		 
	 | 
	
		
	 | 
	
		 
	 | 
	
		
		
			| 
				(0168564)
			 | 
		 
		
			| 
				hgbot   
			 | 
		 
		
			| 
				2024-08-30 07:52   
							 | 
		 
		 
	 | 
	
		
	 | 
	
		 
	 | 
	
		
		
			| 
				(0168565)
			 | 
		 
		
			| 
				hgbot   
			 | 
		 
		
			| 
				2024-08-30 07:52   
							 | 
		 
		 
	 | 
	
		
	 |